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

CNV-55987: Aggregated alerts #348

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

upalatucci
Copy link
Contributor

@upalatucci upalatucci commented Feb 14, 2025

Demo

Screen.Recording.2025-02-14.at.10.29.49.mov

Fix for inner table sticky header

Screen.Recording.2025-02-17.at.12.43.38.mov

@openshift-ci openshift-ci bot requested review from kyoto and zhuje February 14, 2025 09:37
@upalatucci upalatucci changed the title Aggregated alerts CNV-54399: Aggregated alerts Feb 14, 2025
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 14, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 14, 2025

@upalatucci: This pull request references CNV-54399 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target the "4.19.0" version, but no target version was set.

In response to this:

Demo

Screen.Recording.2025-02-14.at.10.29.49.mov

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.

@upalatucci upalatucci force-pushed the aggregated-alerts branch 3 times, most recently from 47126cd to 6a49da3 Compare February 14, 2025 09:40
@upalatucci upalatucci changed the title CNV-54399: Aggregated alerts CNV-55987: Aggregated alerts Feb 14, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 14, 2025

@upalatucci: This pull request references CNV-55987 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set.

In response to this:

Demo

Screen.Recording.2025-02-14.at.10.29.49.mov

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.

@upalatucci
Copy link
Contributor Author

/retest

@jgbernalp
Copy link
Contributor

@fkargbo can you please take a look?

@fkargbo
Copy link

fkargbo commented Feb 17, 2025

Hi @upalatucci I've reviewed the implementation and it looks good! I have some comments listed below:L

  1. It would be nice to have the header section inside the collapsible row, "sticky". In other words, it should not scroll with the alerts. For example, if we have 20 alerts the user will still have the context of the column title visible.
  2. For the "Total" column, we are using a badge to indicate the number of "Alerts" inside the collapsible row—Reference PF link here.
  3. For the same "Total" column I notice the alert count is "1" but the row has "4" alerts inside.

I hope this helps. Please let me know if you have any questions. Thanks!
deisgn review specs

@upalatucci
Copy link
Contributor Author

Thank you @fkargbo yes the total amount is not right as I just created fake data for the demo video :D

I'll fix everything thanks

@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 17, 2025

@upalatucci: This pull request references CNV-55987 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set.

In response to this:

Demo

Screen.Recording.2025-02-14.at.10.29.49.mov

Fix for inner table sticky header

Screen.Recording.2025-02-17.at.12.43.38.mov

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.

@upalatucci
Copy link
Contributor Author

@fkargbo fixed. Now you can see the video in the pr description

@fkargbo
Copy link

fkargbo commented Feb 17, 2025

@fkargbo fixed. Now you can see the video in the pr description

Looks good, thanks!

@upalatucci
Copy link
Contributor Author

/retest

<td className={tableAggregatedAlertClasses[0]} title={title}>
<MonitoringResourceIcon resource={AlertResource} />
<Link
to={getAlertUrl(
Copy link
Contributor

@PeterYurkovich PeterYurkovich Feb 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it makes sense to link to the first alert on the outside of expanded area, as each alert in the expanded area has it's own detail page that won't be linked to anymore. In addition, the alert rule for each of the items in the expanded area will be the same.

I think instead what would make sense is to make the link on the outside of the expanded area be the alert rule and then in expanded area change the dropdown for each alert from "View Alerting Rule" to instead just be "View alert".

cc: @fkargbo does that change sound good to you?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @PeterYurkovich, your suggestion sounds good if each alert has its own details page. I'll research it a bit and run it by @sradco to confirm. Thanks for the feedback! 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have the virt sync later today, maybe we can touch on it briefly

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @PeterYurkovich . The link should be to the "Alerting rule details" page.

Copy link
Contributor

openshift-ci bot commented Feb 18, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: upalatucci
Once this PR has been reviewed and has the lgtm label, please ask for approval from peteryurkovich. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

openshift-ci bot commented Feb 18, 2025

@upalatucci: all tests passed!

Full PR test history. Your PR dashboard.

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants