mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Infra] Change order of the errors shown on Infra pages (#200531)
Closes #200190 ## Summary This PR fixes the issue with the errors shown on the metrics explorer page - when the metrics indices can't be fetched we should show the error returned and if there is no fetch error and a remote cluster configured but no connection is possible we should show the remote cluster error: - Example with 504 error  - Example with remote cluster error  ## Testing Couldn't find a way to reproduce this so I "faked" the API response to be an error and checked several cases - API returns an error, we should show the error: https://github.com/user-attachments/assets/c1086b22-1ff5-4333-97a5-b3d1dca16afe - API doesn't return an error but the remote cluster connection wasn't possible, we should show the remote cluster error: https://github.com/user-attachments/assets/151b3ae4-5ca1-4d54-bd58-2729db202cdb - If no remote cluster is used/or a remote cluster is connected and the API response is not returning an error the page should load correctly: https://github.com/user-attachments/assets/f9ef1066-3dfd-4957-8b46-878bf58d2f1c
This commit is contained in:
parent
47100291a8
commit
46d4c84f2c
1 changed files with 4 additions and 4 deletions
|
@ -98,12 +98,12 @@ export const InfraPageTemplate = ({
|
|||
});
|
||||
}, [hasData, setScreenContext, source]);
|
||||
|
||||
if (!isSourceLoading && !remoteClustersExist) {
|
||||
return <NoRemoteCluster />;
|
||||
if (sourceError) {
|
||||
return <SourceErrorPage errorMessage={sourceError} retry={loadSource} />;
|
||||
}
|
||||
|
||||
if (sourceError) {
|
||||
<SourceErrorPage errorMessage={sourceError} retry={loadSource} />;
|
||||
if (!isSourceLoading && !remoteClustersExist) {
|
||||
return <NoRemoteCluster />;
|
||||
}
|
||||
|
||||
if (dataViewLoadError) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue