-
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
Allow users to disable polling in Console #38949
Conversation
Pinging @elastic/es-ui |
💔 Build Failed |
- Add button for manually refreshing the suggestions. - Change buttons to use the EUI classes.
71e055e
to
4282795
Compare
💔 Build Failed |
Retest |
💔 Build Failed |
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.
Tested locally, LGTM. Left one minor comment.
|
||
// Retrieve autocomplete info if the user has changed one of the autocomplete settings or | ||
// has turned on polling. | ||
if (settingsDiff.length > 0 || getPolling()) { |
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.
I'm not sure the || getPolling()
is necessary. I think it's only going to refetch the autocomplete settings if any of them have changed (i.e., if settingsDiff.length > 0
). So if the user only turns on polling, it will be a no-op.
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.
Good catch! I forgot to address this before merging, so I'll fix it in #39114.
CC @jbudz |
💚 Build Succeeded |
💚 Build Succeeded |
Fixes #13052 and #36278, and replaces #32132.
Release note
By default, Console polls Elasticsearch to retrieve the latest mappings, aliases, etc to populate its autocomplete suggestions. This can cause performance problems for users with large clusters and pose a challenge for users with bandwidth constraints. This features addresses these issues by allowing users to disable this polling behavior. It also adds a button that the user can click to refresh the autocomplete suggestions manually.