-
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
[Synthetics] Fix overview page vizs for large number of monitors !! #199512
Conversation
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
...c/apps/synthetics/components/monitors_page/management/monitor_errors/monitor_async_error.tsx
Show resolved
Hide resolved
...hetics/public/apps/synthetics/components/monitors_page/overview/overview/overview_alerts.tsx
Outdated
Show resolved
Hide resolved
...hetics/public/apps/synthetics/components/monitors_page/overview/overview/overview_alerts.tsx
Outdated
Show resolved
Hide resolved
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.
LGTM, I did ask for some unit tests in one part
}} | ||
</FixedSizeList> | ||
)} | ||
{({ onItemsRendered, ref }) => { |
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.
What lead to you making this change? Seems fine, just curious why this changed as part of this fix.
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.
it was throwing a console error in kibana
const { status: overviewStatus } = useSelector(selectOverviewStatus); | ||
const allIds = overviewStatus?.allIds ?? []; | ||
|
||
return [ |
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.
There's a lot of code branching in here, ideally we'd have some unit tests to make sure we avoid inadvertent modifications to the hook's output.
⏳ Build in-progress
History
|
Starting backport for target branches: 8.16, 8.17 https://github.com/elastic/kibana/actions/runs/11948560329 |
…lastic#199512) ## Summary Fixes elastic#187264 !! Apply filters directly instead of passing each monitor id !! ### Testing No special testing is needed, other than make sure, alerts/errors vizs continue to work as expected !! <img width="1726" alt="image" src="https://github.com/user-attachments/assets/9c1889a5-4822-442b-97af-c2a4084c4503"> --------- Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit 944e6fa)
…lastic#199512) ## Summary Fixes elastic#187264 !! Apply filters directly instead of passing each monitor id !! ### Testing No special testing is needed, other than make sure, alerts/errors vizs continue to work as expected !! <img width="1726" alt="image" src="https://github.com/user-attachments/assets/9c1889a5-4822-442b-97af-c2a4084c4503"> --------- Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit 944e6fa)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…rs !! (#199512) (#201080) # Backport This will backport the following commits from `main` to `8.16`: - [[Synthetics] Fix overview page vizs for large number of monitors !! (#199512)](#199512) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Shahzad","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-21T07:27:41Z","message":"[Synthetics] Fix overview page vizs for large number of monitors !! (#199512)\n\n## Summary\r\n\r\nFixes #187264 !!\r\n\r\nApply filters directly instead of passing each monitor id !!\r\n\r\n### Testing\r\n\r\nNo special testing is needed, other than make sure, alerts/errors vizs\r\ncontinue to work as expected !!\r\n\r\n<img width=\"1726\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/9c1889a5-4822-442b-97af-c2a4084c4503\">\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"944e6fa0376702342bb37c3c9893e1574689b211","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-management","v8.16.0","backport:version","v8.17.0"],"title":"[Synthetics] Fix overview page vizs for large number of monitors !!","number":199512,"url":"https://github.com/elastic/kibana/pull/199512","mergeCommit":{"message":"[Synthetics] Fix overview page vizs for large number of monitors !! (#199512)\n\n## Summary\r\n\r\nFixes #187264 !!\r\n\r\nApply filters directly instead of passing each monitor id !!\r\n\r\n### Testing\r\n\r\nNo special testing is needed, other than make sure, alerts/errors vizs\r\ncontinue to work as expected !!\r\n\r\n<img width=\"1726\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/9c1889a5-4822-442b-97af-c2a4084c4503\">\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"944e6fa0376702342bb37c3c9893e1574689b211"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199512","number":199512,"mergeCommit":{"message":"[Synthetics] Fix overview page vizs for large number of monitors !! (#199512)\n\n## Summary\r\n\r\nFixes #187264 !!\r\n\r\nApply filters directly instead of passing each monitor id !!\r\n\r\n### Testing\r\n\r\nNo special testing is needed, other than make sure, alerts/errors vizs\r\ncontinue to work as expected !!\r\n\r\n<img width=\"1726\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/9c1889a5-4822-442b-97af-c2a4084c4503\">\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"944e6fa0376702342bb37c3c9893e1574689b211"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Shahzad <[email protected]>
…lastic#199512) ## Summary Fixes elastic#187264 !! Apply filters directly instead of passing each monitor id !! ### Testing No special testing is needed, other than make sure, alerts/errors vizs continue to work as expected !! <img width="1726" alt="image" src="https://github.com/user-attachments/assets/9c1889a5-4822-442b-97af-c2a4084c4503"> --------- Co-authored-by: kibanamachine <[email protected]>
…rs !! (#199512) (#201081) # Backport This will backport the following commits from `main` to `8.17`: - [[Synthetics] Fix overview page vizs for large number of monitors !! (#199512)](#199512) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Shahzad","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-21T07:27:41Z","message":"[Synthetics] Fix overview page vizs for large number of monitors !! (#199512)\n\n## Summary\r\n\r\nFixes #187264 !!\r\n\r\nApply filters directly instead of passing each monitor id !!\r\n\r\n### Testing\r\n\r\nNo special testing is needed, other than make sure, alerts/errors vizs\r\ncontinue to work as expected !!\r\n\r\n<img width=\"1726\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/9c1889a5-4822-442b-97af-c2a4084c4503\">\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"944e6fa0376702342bb37c3c9893e1574689b211","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-management","v8.16.0","backport:version","v8.17.0"],"title":"[Synthetics] Fix overview page vizs for large number of monitors !!","number":199512,"url":"https://github.com/elastic/kibana/pull/199512","mergeCommit":{"message":"[Synthetics] Fix overview page vizs for large number of monitors !! (#199512)\n\n## Summary\r\n\r\nFixes #187264 !!\r\n\r\nApply filters directly instead of passing each monitor id !!\r\n\r\n### Testing\r\n\r\nNo special testing is needed, other than make sure, alerts/errors vizs\r\ncontinue to work as expected !!\r\n\r\n<img width=\"1726\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/9c1889a5-4822-442b-97af-c2a4084c4503\">\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"944e6fa0376702342bb37c3c9893e1574689b211"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199512","number":199512,"mergeCommit":{"message":"[Synthetics] Fix overview page vizs for large number of monitors !! (#199512)\n\n## Summary\r\n\r\nFixes #187264 !!\r\n\r\nApply filters directly instead of passing each monitor id !!\r\n\r\n### Testing\r\n\r\nNo special testing is needed, other than make sure, alerts/errors vizs\r\ncontinue to work as expected !!\r\n\r\n<img width=\"1726\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/9c1889a5-4822-442b-97af-c2a4084c4503\">\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"944e6fa0376702342bb37c3c9893e1574689b211"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Shahzad <[email protected]> Co-authored-by: Brad White <[email protected]>
…lastic#199512) ## Summary Fixes elastic#187264 !! Apply filters directly instead of passing each monitor id !! ### Testing No special testing is needed, other than make sure, alerts/errors vizs continue to work as expected !! <img width="1726" alt="image" src="https://github.com/user-attachments/assets/9c1889a5-4822-442b-97af-c2a4084c4503"> --------- Co-authored-by: kibanamachine <[email protected]>
…lastic#199512) ## Summary Fixes elastic#187264 !! Apply filters directly instead of passing each monitor id !! ### Testing No special testing is needed, other than make sure, alerts/errors vizs continue to work as expected !! <img width="1726" alt="image" src="https://github.com/user-attachments/assets/9c1889a5-4822-442b-97af-c2a4084c4503"> --------- Co-authored-by: kibanamachine <[email protected]>
Summary
Fixes #187264 !!
Apply filters directly instead of passing each monitor id !!
Testing
No special testing is needed, other than make sure, alerts/errors vizs continue to work as expected !!