-
Notifications
You must be signed in to change notification settings - Fork 667
Add alerts card #1884
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
Add alerts card #1884
Conversation
|
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 Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
9dc8889 to
accb171
Compare
frontend/public/components/dashboard/alerts-card/alert-item.tsx
Outdated
Show resolved
Hide resolved
frontend/public/components/dashboard/alerts-card/alerts-card.scss
Outdated
Show resolved
Hide resolved
frontend/public/components/dashboards-page/overview-dashboard/alerts-card.tsx
Outdated
Show resolved
Hide resolved
frontend/public/components/dashboard/alerts-card/alerts-card.scss
Outdated
Show resolved
Hide resolved
frontend/public/components/dashboard/alerts-card/alerts-card.scss
Outdated
Show resolved
Hide resolved
accb171 to
eb5fcb9
Compare
eb5fcb9 to
a21cfd6
Compare
frontend/public/components/dashboard/health-card/health-card.scss
Outdated
Show resolved
Hide resolved
frontend/public/components/dashboards-page/overview-dashboard/health-card.tsx
Outdated
Show resolved
Hide resolved
|
/approve |
|
/ok-to-test |
frontend/public/components/dashboards-page/with-dashboard-resources.tsx
Outdated
Show resolved
Hide resolved
frontend/public/components/dashboards-page/with-dashboard-resources.tsx
Outdated
Show resolved
Hide resolved
d9084de to
3154dbe
Compare
|
/lgtm |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
frontend/public/components/dashboards-page/overview-dashboard/health-card.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.
can we move this to common place so other component leverage this? @rawagner @pcbailey
| const getAlerts = (alertsResults: any): Alert[] => { | |
| const getAlerts = (alertsResults: any): Alert[] => { | |
| const alertsResponse = alertsResults ? alertsResults.getIn([ALERTS_KEY, 'result'], []) : []; | |
| return Array.isArray(alertsResponse) ? alertsResponse : []; | |
| }; |
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.
@cloudbehl Do you have any suggestions on a good location for it?
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.
i'd suggest dashboard/health-card/utils.ts
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.
I thought about that, but I wasn't sure if that was "common" enough.
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.
I have moved it to dashboard/health-card/utils.ts.
3154dbe to
5eab673
Compare
5eab673 to
3c83668
Compare
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.
please alphabetize these classes/rules
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.
alpha
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.
can you alphabetize these too ?
3c83668 to
4945e6b
Compare
|
/lgtm |
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
@pcbailey: The following test failed, say
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. 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/test-infra repository. I understand the commands that are listed here. |
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:

Alerts card in loading state:

@rawagner