Repository navigation
[release-4.21] OCPBUGS-133333: Cap rendered alerts in notification drawer and dashboards - #17429
Conversation
…ards Manually backport the alert rendering cap from openshift#17378 into release-4.21. Limit each drawer alert group and dashboard alert list to 50 entries to reduce rendering work under high alert volume, while preserving full counts and links to all alerts. Adapt the test to the jest 22 toolchain and 4.21 test infrastructure. Source commit: 85b6860 Original commit: 19d0e53 Jira: https://redhat.atlassian.net/browse/OCPBUGS-133333 Assisted-by: GLM 5.3
|
Pipeline controller notification This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration. Use |
|
@fsgreco: This pull request references Jira Issue OCPBUGS-133333, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: fsgreco The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/jira refresh |
|
@fsgreco: This pull request references Jira Issue OCPBUGS-133333, which is valid. The bug has been moved to the POST state. 7 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@fsgreco: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This is a manual backport of #17378 to release-4.21.
Jira: OCPBUGS-133333
Original implementation and discussion: #17324.
Analysis / Root cause:
The notification drawer and dashboard alert lists rendered every firing alert. Large alert volumes increase rendering work and can make the Console slow or unresponsive.
Solution description:
Render at most 50 alerts in each notification drawer group and dashboard alert list. When a list exceeds the cap, show its full alert count and a link to the complete alert list. Drawer and cluster dashboard links select all namespaces; the namespaced dashboard link preserves the selected namespace.
This backport retains release-4.21's drawer structure and test infrastructure. The test uses jest 22-compatible APIs and routes from react-router-dom-v5-compat. No dependencies or public SDK APIs change.
Test cases:
Passed locally:
I (@fsgreco) manually checked the drawer, cluster dashboard, and project dashboard alert cap with 156 firing alerts on a 4.21 development build against a live cluster and confirmed the smoke check passed. The temporary AlertingRule was removed afterward.
Full alert-list destination navigation could not be verified on this backport because the monitoring plugin is not included in the local development build. High-volume load testing beyond 156 alerts has not been checked on this backport.
Browser conformance:
Additional info: