-
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
[Infrastructure UI] Filter control re-rendering problem fix #159320
[Infrastructure UI] Filter control re-rendering problem fix #159320
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
💚 Build Succeeded
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
To update your PR or re-run it, just comment with: |
Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI) |
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.
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…159320) fixes elastic#159317 ## Summary This PR fixes a problem in the utilization of the `ControlGroupRenderer` component in the Hosts View. The problem originated from the need to manually compare changes in the `filterPanel` object, to prevent the page from making duplicate requests https://github.com/elastic/kibana/assets/2767137/b38f5691-0519-4ae2-aab2-daaf0f72cd0d After many changes that the code has been through, the comparison mentioned above has become unnecessary. ### How to test - Start a local Kibana instance - Navigate to `Infrastructure > Hosts` - Play with the filter controls (depending on how fast the user is, it might hang for a little while, but this won't slow the whole page down) (cherry picked from commit bcc4f11)
…59320) (#159458) # Backport This will backport the following commits from `main` to `8.8`: - [[Infrastructure UI] Filter control re-rendering problem fix (#159320)](#159320) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Carlos Crespo","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-06-12T12:30:23Z","message":"[Infrastructure UI] Filter control re-rendering problem fix (#159320)\n\nfixes #159317 \r\n\r\n## Summary\r\n\r\nThis PR fixes a problem in the utilization of the `ControlGroupRenderer`\r\ncomponent in the Hosts View. The problem originated from the need to\r\nmanually compare changes in the `filterPanel` object, to prevent the\r\npage from making duplicate requests\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/2767137/b38f5691-0519-4ae2-aab2-daaf0f72cd0d\r\n\r\nAfter many changes that the code has been through, the comparison\r\nmentioned above has become unnecessary.\r\n\r\n\r\n\r\n### How to test\r\n\r\n- Start a local Kibana instance\r\n- Navigate to `Infrastructure > Hosts`\r\n- Play with the filter controls (depending on how fast the user is, it\r\nmight hang for a little while, but this won't slow the whole page down)","sha":"bcc4f11e0b97e991d94f5e6368dfa154f753d2ca","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Metrics UI","Team:Infra Monitoring UI","release_note:skip","backport:prev-minor","Feature:ObsHosts","v8.9.0"],"number":159320,"url":"https://github.com/elastic/kibana/pull/159320","mergeCommit":{"message":"[Infrastructure UI] Filter control re-rendering problem fix (#159320)\n\nfixes #159317 \r\n\r\n## Summary\r\n\r\nThis PR fixes a problem in the utilization of the `ControlGroupRenderer`\r\ncomponent in the Hosts View. The problem originated from the need to\r\nmanually compare changes in the `filterPanel` object, to prevent the\r\npage from making duplicate requests\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/2767137/b38f5691-0519-4ae2-aab2-daaf0f72cd0d\r\n\r\nAfter many changes that the code has been through, the comparison\r\nmentioned above has become unnecessary.\r\n\r\n\r\n\r\n### How to test\r\n\r\n- Start a local Kibana instance\r\n- Navigate to `Infrastructure > Hosts`\r\n- Play with the filter controls (depending on how fast the user is, it\r\nmight hang for a little while, but this won't slow the whole page down)","sha":"bcc4f11e0b97e991d94f5e6368dfa154f753d2ca"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/159320","number":159320,"mergeCommit":{"message":"[Infrastructure UI] Filter control re-rendering problem fix (#159320)\n\nfixes #159317 \r\n\r\n## Summary\r\n\r\nThis PR fixes a problem in the utilization of the `ControlGroupRenderer`\r\ncomponent in the Hosts View. The problem originated from the need to\r\nmanually compare changes in the `filterPanel` object, to prevent the\r\npage from making duplicate requests\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/2767137/b38f5691-0519-4ae2-aab2-daaf0f72cd0d\r\n\r\nAfter many changes that the code has been through, the comparison\r\nmentioned above has become unnecessary.\r\n\r\n\r\n\r\n### How to test\r\n\r\n- Start a local Kibana instance\r\n- Navigate to `Infrastructure > Hosts`\r\n- Play with the filter controls (depending on how fast the user is, it\r\nmight hang for a little while, but this won't slow the whole page down)","sha":"bcc4f11e0b97e991d94f5e6368dfa154f753d2ca"}}]}] BACKPORT--> Co-authored-by: Carlos Crespo <[email protected]>
fixes #159317
Summary
This PR fixes a problem in the utilization of the
ControlGroupRenderer
component in the Hosts View. The problem originated from the need to manually compare changes in thefilterPanel
object, to prevent the page from making duplicate requestsfilter_control_fix.mov
After many changes that the code has been through, the comparison mentioned above has become unnecessary.
How to test
Infrastructure > Hosts