-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[index pattern management] load index pattern list without loading field lists #108823
[index pattern management] load index pattern list without loading field lists #108823
Conversation
Pinging @elastic/kibana-app-services (Team:AppServices) |
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 LGTM, tested index pattern page
getIdsWithTitle = async ( | ||
refresh: boolean = false | ||
): Promise<Array<{ id: string; title: string }>> => { | ||
getIdsWithTitle = async (refresh: boolean = false): Promise<IndexPatternListItem[]> => { |
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.
Would be good to rename getIdsWithTitle
-> getIndexPatternList
maybe later
💛 Build succeeded, but was flaky
Test FailuresKibana Pipeline / general / X-Pack API Integration Tests.x-pack/test/api_integration/apis/security_solution/network_dns·ts.apis SecuritySolution Endpoints Network DNS With packetbeat Make sure that we get Dns data and sorting by uniqueDomains descendingStandard Out
Stack Trace
Metrics [docs]Async chunks
Page load bundle
Unknown metric groupsAPI count
API count missing comments
Non-exported public API item count
History
To update your PR or re-run it, just comment with: |
…eld lists (elastic#108823) * don't load field list for index pattern list
💔 Backport failed
Successful backport PRs will be merged automatically after passing CI. To backport manually run: |
…eld lists (elastic#108823) * don't load field list for index pattern list
…eld lists (#108823) (#108929) * don't load field list for index pattern list Co-authored-by: Matthew Kime <[email protected]>
Summary
closes: #100139
closes: #108529
Previously we were loading the full index pattern for each item in the index pattern management index pattern list. Obviously this isn't efficient but urgency was added by reports that the index pattern list may fail to load with problematic index patterns (hitting thousands of indices with RBAC enabled).
Release notes
In some circumstances involving Role Based Access Control and index patterns matching thousands of indices, the index pattern may fail to load. This affects the index pattern management index pattern list as well. This fix no longer longer loads the fields lists for the index patterns which sidesteps the loading error.