Browse Source
Bugfix/data provider status component incorrectly shows "Available" on API Error (#5466)
* Reorder map and catchError
* Update changelog
pull/5467/head^2
Kenrick Tandrian
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
9 additions and
3 deletions
-
CHANGELOG.md
-
apps/client/src/app/components/data-provider-status/data-provider-status.component.ts
|
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. |
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
|
|
|
|
|
|
|
|
|
## Unreleased |
|
|
|
|
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
|
|
|
|
- Fixed an issue related to the error handling in the data provider status component |
|
|
|
|
|
|
|
|
## 2.196.0 - 2025-09-04 |
|
|
## 2.196.0 - 2025-09-04 |
|
|
|
|
|
|
|
|
### Changed |
|
|
### Changed |
|
|
|
@ -33,12 +33,12 @@ export class GfDataProviderStatusComponent implements OnDestroy, OnInit { |
|
|
this.status$ = this.dataService |
|
|
this.status$ = this.dataService |
|
|
.fetchDataProviderHealth(this.dataSource) |
|
|
.fetchDataProviderHealth(this.dataSource) |
|
|
.pipe( |
|
|
.pipe( |
|
|
catchError(() => { |
|
|
|
|
|
return of({ isHealthy: false }); |
|
|
|
|
|
}), |
|
|
|
|
|
map(() => { |
|
|
map(() => { |
|
|
return { isHealthy: true }; |
|
|
return { isHealthy: true }; |
|
|
}), |
|
|
}), |
|
|
|
|
|
catchError(() => { |
|
|
|
|
|
return of({ isHealthy: false }); |
|
|
|
|
|
}), |
|
|
takeUntil(this.unsubscribeSubject) |
|
|
takeUntil(this.unsubscribeSubject) |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|