Skip to content

Commit

Permalink
docs: changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
eikeland committed Oct 2, 2024
1 parent 07f584b commit fe2ebeb
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .changeset/mean-jobs-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
'@equinor/fusion-framework-cli': patch
---


### Changes

- Updated the service discovery URL in [`getEndpointUrl`](packages/cli/src/bin/utils/getEndpointUrl.ts) to use the production endpoint.
- Improved error handling in [`publishAppConfig`](packages/cli/src/bin/utils/publishAppConfig.ts) by changing the status code check from `> 399` to `>= 400`.
- Removed unnecessary `await` in JSON response parsing in [`publishAppConfig`](packages/cli/src/bin/utils/publishAppConfig.ts), [`tagAppBundle`](packages/cli/src/bin/utils/tagAppBundle.ts), and [`uploadAppBundle`](packages/cli/src/bin/utils/uploadAppBundle.ts).

### Detailed Changes

- **Service Discovery URL Update**:
- Changed the URL in `getEndpointUrl` from:
```diff
- `https://discovery.ci.fusion-dev.net/service-registry/environments/${fusionEnv}/services/apps`,
+ `https://discovery.fusion.equinor.com/service-registry/environments/${fusionEnv}/services/apps`,
```

- **Error Handling Improvement**:
- Updated the status code check in `publishAppConfig`:
```diff
- } else if (!requestConfig.ok || requestConfig.status > 399) {
+ } else if (!requestConfig.ok || requestConfig.status >= 400) {
```

- **Removed Unnecessary `await`**:
- In `publishAppConfig`:
```diff
- return await requestConfig.json();
+ return requestConfig.json();
```
- In `tagAppBundle`:
```diff
- return await requestTag.json();
+ return requestTag.json();
```
- In `uploadAppBundle`:
```diff
- return await requestBundle.json();
+ return requestBundle.json();
```

0 comments on commit fe2ebeb

Please sign in to comment.