[DataViews] Remove No matching indices found toasts 🍞#151788
Merged
kertal merged 6 commits intoelastic:mainfrom Mar 6, 2023
Merged
[DataViews] Remove No matching indices found toasts 🍞#151788kertal merged 6 commits intoelastic:mainfrom
No matching indices found toasts 🍞#151788kertal merged 6 commits intoelastic:mainfrom
Conversation
onMissingIndices to DataViews API handing the state of missing indices seperately
onMissingIndices to DataViews API handing the state of missing indices seperatelyNo matching indices toasts 🍞
No matching indices toasts 🍞No matching indices found toasts 🍞
Contributor
|
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
Closed
9 tasks
Merged
1 task
mattkime
approved these changes
Feb 24, 2023
Contributor
mattkime
left a comment
There was a problem hiding this comment.
Changes look good and work well!
Contributor
|
Is there a plan to remove |
Contributor
|
@neptunian I think it still preserves the field list if its saved to the data view. That said, there's some |
💚 Build Succeeded
Metrics [docs]Page load bundle
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @kertal |
bmorelli25
pushed a commit
to bmorelli25/kibana
that referenced
this pull request
Mar 10, 2023
## Summary This PR removes the `No matching indices found ` toasts, part of some toast storms . The toasts were triggered when there were no matching indices of a given data view's index pattern. If indication is needed, that there are no available matching indices (it could also be an issue of lack of permissions to the requested indices), it's easy to check following property of an existing data view, if the length of matchedIndices is 0, this equals a 'indices are missing condition`.
1 task
mattkime
added a commit
that referenced
this pull request
Mar 24, 2023
… empty field list (#152059) ## Summary Part of #151670 and follow up to #151788 When a data view is loaded, it automatically loads its field list. Previously, it would error if the index pattern failed to match an index. Going forward, this will be treated as a valid empty state - `allowNoIndices` is being passed to the field_caps requests. When `allowNoIndices` is set to true, ES will return a valid empty set rather than a 404 error. ### Checklist - [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 --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
jennypavlova
pushed a commit
to jennypavlova/kibana
that referenced
this pull request
Mar 24, 2023
… empty field list (elastic#152059) ## Summary Part of elastic#151670 and follow up to elastic#151788 When a data view is loaded, it automatically loads its field list. Previously, it would error if the index pattern failed to match an index. Going forward, this will be treated as a valid empty state - `allowNoIndices` is being passed to the field_caps requests. When `allowNoIndices` is set to true, ES will return a valid empty set rather than a 404 error. ### Checklist - [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 --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
mattkime
added a commit
that referenced
this pull request
Mar 27, 2023
## Summary #151788 established that data views would no longer error when they failed to retrieve a field list. This index pattern validation code exists since previously ALL index pattern segments needed to match in order to avoid an error response from field caps, rather than just one. Now we can remove the validation code and simply pass the index pattern to field caps directly. ### 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 --------- Co-authored-by: shahzad31 <shahzad31comp@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
drewdaemon
added a commit
that referenced
this pull request
Mar 30, 2023
## Summary Since #151788 landed, there's no need to insert `allowNoIndex` at the Lens level. Still no toasts: <img width="1901" alt="Screenshot 2023-03-29 at 4 30 58 PM" src="https://user-images.githubusercontent.com/315764/228676314-b9ba2add-a404-43ec-a9d8-b1d3b562ba2f.png"> Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is a toast-flavored SDH investigation that became a PR ...
Fixes #151670
This PR removes the
No matching indices foundtoasts, part of some toast storms . The toasts were triggered when there were no matching indices of a given data view's index pattern.If indication is needed, that there are no available matching indices (it could also be an issue of lack of permissions to the requested indices), it's easy to check following property of an existing data view, if the length of matchedIndices is 0, this equals a 'indices are missing condition`.
kibana/src/plugins/data_views/common/data_views/data_view.ts
Lines 151 to 153 in c7b742c
Examples for 🍞 not being displayed because of this:


Testing
Transforms, create a transform based on one of demo data sets, more transforms based on different data views ... more toastsConsole, but not the data viewsTransforms... no toastsChecklist