-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: 🐛 correctly create error on no_matching_indices #61257
Conversation
Pinging @elastic/kibana-app-arch (Team:AppArch) |
retest |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
Thanks. This messaging is an improvement, but I am thinking it might make sense to remove this error altogether. It's not uncommon after the Ingest Manager is released that this scenario occurs. When the user installs a package we create some index patterns by default that the user might not actually be using but go look at. We also install dashboards and if they click on one where no data yet exists, it looks like this: It seems like the messaging "No data to display.." on the dashboards is enough. For the index patterns page in the Management app, they can't make an index pattern through the UI so if they create one manually where no data exists, it may have been intentional (like Ingest Management) and no error is necessary. Thoughts? |
I can remove this "No matching indices found..." warning. Will ping people in Slack to comment on this. |
i think we might not want to just swallow the errors, as else user will not know why the dashboard is empty. what would be nice however (not in this pr) would be to update our notification service so it would group errors together (no need to see no index pattern 10 times) |
I agree with @ppisljar. We shouldn't swallow the errors. Not every usecase will have index patterns that don't match simply because the index hasn't been created yet - in some cases it will be an actual configuration problem and we'd want to point it out. Grouping the errors seems like the right direction to me. |
Could we make it a config option on the index pattern if it should show errors if no index exists or not so we can adjust it to the different use cases? @alexh97 Could you share the use case where this error is useful? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes LGTM; tested Chrome macOS & verified the error is displaying as described.
@elasticmachine merge upstream |
@ppisljar @alexh97 @ruflin I'll merge this once CI is green as this PR fixes a regression. For further discussion and improving these warning messages I've created an issue here—please continue discussion there. |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* master: (36 commits) [data.search.aggs] Remove service getters from agg types (elastic#61628) fixing APM internationalization (elastic#62757) fix: 🐛 correctly create error on no_matching_indices (elastic#61257) [Lens] Remove all legacy imports (elastic#62596) Add label for ace editor (elastic#62588) [ML] Show better file structure finder explanations (elastic#62316) Fix old pathes in eslintrc (elastic#62580) [Uptime] Improve Telemetry test (elastic#62428) [SIEM] Adds sort rules Cypress test (elastic#62700) [Uptime]Abstracted 'access:uptime-read' tag into a wrapper for… (elastic#62576) fixing bug (elastic#62577) [Maps] Allow updating requestType for ESGeoGridSource (elastic#62365) [Maps] do not show circle border when symbol size is zero (elastic#62644) [Maps] Always show current zoom level (elastic#62684) bc5 siem rules merge (elastic#62679) Revert "[Monitoring] Cluster state watch to Kibana alerting (elastic#61685)" Fix visual tests (elastic#62660) [Telemetry] update crypto packages (elastic#62469) [DOCS] Removed references to left (elastic#60807) [Maps] Move layers to np maps (elastic#61877) ...
* fix: 🐛 correctly create error on no_matching_indices * feat: 🎸 improve error type checking Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
* fix: 🐛 correctly create error on no_matching_indices * feat: 🎸 improve error type checking Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Closes #56189
no_matching_indices
was not used in the New Platform. This PR makesno_matching_indices
used again to create errors ofIndexPatternMissingIndices
class. It changes the behaviour to display warning like it used to before: