Skip to content

Conversation

@pcbailey
Copy link
Contributor

@pcbailey pcbailey commented Jul 2, 2019

This PR adds the alerts card to the dashboard overview page. The alerts card does not display if alert-manager is not available.

Loaded alerts card:
Selection_567

Alerts card in loading state:
Selection_568

@rawagner

@openshift-ci-robot
Copy link
Contributor

Hi @pcbailey. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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/test-infra repository.

@openshift-ci-robot openshift-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 2, 2019
@pcbailey pcbailey force-pushed the add-alerts-dashboard-card branch from 9dc8889 to accb171 Compare July 2, 2019 12:11
@spadgett spadgett added this to the v4.2 milestone Jul 2, 2019
@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 2, 2019
@pcbailey pcbailey force-pushed the add-alerts-dashboard-card branch from accb171 to eb5fcb9 Compare July 3, 2019 12:27
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 3, 2019
@pcbailey pcbailey force-pushed the add-alerts-dashboard-card branch from eb5fcb9 to a21cfd6 Compare July 3, 2019 12:47
@spadgett
Copy link
Member

spadgett commented Jul 3, 2019

/approve
/assign @rawagner

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 3, 2019
@rawagner
Copy link
Contributor

rawagner commented Jul 4, 2019

/ok-to-test

@openshift-ci-robot openshift-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 4, 2019
@pcbailey pcbailey force-pushed the add-alerts-dashboard-card branch 2 times, most recently from d9084de to 3154dbe Compare July 8, 2019 13:33
@rawagner
Copy link
Contributor

rawagner commented Jul 8, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 8, 2019
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

Copy link
Contributor

@cloudbehl cloudbehl Jul 8, 2019

Choose a reason for hiding this comment

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

can we move this to common place so other component leverage this? @rawagner @pcbailey

Suggested change
const getAlerts = (alertsResults: any): Alert[] => {
const getAlerts = (alertsResults: any): Alert[] => {
const alertsResponse = alertsResults ? alertsResults.getIn([ALERTS_KEY, 'result'], []) : [];
return Array.isArray(alertsResponse) ? alertsResponse : [];
};

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cloudbehl Do you have any suggestions on a good location for it?

Copy link
Contributor

Choose a reason for hiding this comment

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

i'd suggest dashboard/health-card/utils.ts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought about that, but I wasn't sure if that was "common" enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have moved it to dashboard/health-card/utils.ts.

@pcbailey pcbailey force-pushed the add-alerts-dashboard-card branch from 3154dbe to 5eab673 Compare July 8, 2019 19:43
@openshift-ci-robot openshift-ci-robot removed lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 8, 2019
@openshift-ci-robot openshift-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jul 8, 2019
@pcbailey pcbailey force-pushed the add-alerts-dashboard-card branch from 5eab673 to 3c83668 Compare July 9, 2019 10:30
@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jul 9, 2019
Copy link
Contributor

Choose a reason for hiding this comment

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

please alphabetize these classes/rules

Copy link
Contributor

Choose a reason for hiding this comment

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

alpha

Copy link
Contributor

Choose a reason for hiding this comment

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

can you alphabetize these too ?

@pcbailey pcbailey force-pushed the add-alerts-dashboard-card branch from 3c83668 to 4945e6b Compare July 9, 2019 11:27
@rawagner
Copy link
Contributor

rawagner commented Jul 9, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 9, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pcbailey, rawagner, spadgett

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

The pull request process is described here

Details 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

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 25cf470 into openshift:master Jul 9, 2019
@openshift-ci-robot
Copy link
Contributor

@pcbailey: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/frontend 4945e6b link /test frontend

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

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/test-infra repository. I understand the commands that are listed here.

@pcbailey pcbailey deleted the add-alerts-dashboard-card branch October 26, 2022 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants