forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Onboarding] Remove retrying when fetch index API query fails (elasti…
…c#193634) ## Summary This Pr set retrying to `false` when fetch Index api returns 404 status. For all other status code, the fetch index api is retried until failure count is 3. Also updated error component to show error message returned from elasticsearch ### screenshot **Status code: 404** <img width="1286" alt="Screenshot 2024-09-25 at 11 07 20 AM" src="https://github.com/user-attachments/assets/982b5037-b8a5-43d7-bd5f-874929a74ede"> **Status code: 500** <img width="1286" alt="Screenshot 2024-09-25 at 11 16 26 AM" src="https://github.com/user-attachments/assets/7b7ecbbe-14af-4d9d-8107-bcee9fa384bf"> **How to test:** 1. Enable searchIndices plugin in `kibana.dev.yml` as this plugin is behind Feature flag ``` xpack.searchIndices.enabled: true ``` 2. [Create new index](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html) 3. Navigate to `/app/elasticsearch/indices/index_details/${indexName}/data` 4. [ Delete index](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html) 5. Wait for the error screen to appear. Note error message is shown after one `/internal/index_management/indices/my-index` API is failed ### Checklist Delete any items that are not applicable to this PR. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed
- Loading branch information
1 parent
4323814
commit 2583b96
Showing
6 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters