Skip to content
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

Merged
merged 2 commits into from
Jun 19, 2019

Conversation

cjcenizal
Copy link
Contributor

@cjcenizal cjcenizal commented Jun 13, 2019

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.

image

@cjcenizal cjcenizal added release_note:enhancement Feature:Console Dev Tools Console Feature Feature:Dev Tools v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.3.0 labels Jun 13, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui

@elasticmachine
Copy link
Contributor

💔 Build Failed

  - Add button for manually refreshing the suggestions.
  - Change buttons to use the EUI classes.
@cjcenizal cjcenizal force-pushed the console/turn-off-polling branch from 71e055e to 4282795 Compare June 17, 2019 18:40
@cjcenizal cjcenizal marked this pull request as ready for review June 17, 2019 18:41
@elasticmachine
Copy link
Contributor

💔 Build Failed

@cjcenizal
Copy link
Contributor Author

Retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@alisonelizabeth alisonelizabeth left a 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()) {
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@cjcenizal
Copy link
Contributor Author

CC @jbudz

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@cjcenizal cjcenizal merged commit 085f65d into elastic:master Jun 19, 2019
@cjcenizal cjcenizal deleted the console/turn-off-polling branch June 19, 2019 00:40
cjcenizal added a commit that referenced this pull request Jun 19, 2019
* Add ability to turn autocomplete suggestions polling on and off.
  - Add button for manually refreshing the suggestions.
  - Change buttons to use the EUI classes.
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Console Dev Tools Console Feature Feature:Dev Tools release_note:enhancement Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.3.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove/modify Console long polling
3 participants