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

NETOBSERV-678 Health dashboard link #305

Merged

Conversation

OlivierCazade
Copy link
Collaborator

Fix alert id calculation after monitoring operator update and add health dashboard link:

image

and here (bottom right):

image

Please note that this PR should be tested with the health dashboard PR

@codecov
Copy link

codecov bot commented Mar 16, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@f8014aa). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 343c0ca differs from pull request most recent head 29971ec. Consider uploading reports for the commit 29971ec to get more accurate results

@@           Coverage Diff           @@
##             main     #305   +/-   ##
=======================================
  Coverage        ?   58.78%           
=======================================
  Files           ?      147           
  Lines           ?     6461           
  Branches        ?      769           
=======================================
  Hits            ?     3798           
  Misses          ?     2450           
  Partials        ?      213           
Flag Coverage Δ
uitests 59.46% <0.00%> (?)
unittests 56.84% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@stleerh
Copy link
Contributor

stleerh commented Mar 16, 2023

/lgtm

@memodi
Copy link
Contributor

memodi commented Mar 20, 2023

/ok-to-test

@openshift-ci openshift-ci bot added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Mar 20, 2023
@github-actions
Copy link

New image: ["quay.io/netobserv/network-observability-console-plugin:d9f5302"]. It will expire after two weeks.

@@ -32,7 +36,8 @@ export const AlertBanner: React.FC<{
actionClose={<AlertActionCloseButton onClose={onDelete} />}
actionLinks={
<React.Fragment>
<AlertActionLink onClick={routeChange}>{t('View alert details')}</AlertActionLink>
<AlertActionLink onClick={routeAlert}>{t('View alert details')}</AlertActionLink>
<AlertActionLink onClick={routeDashboard}>{t('View health dashboard')}</AlertActionLink>
Copy link
Member

Choose a reason for hiding this comment

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

I guess you forgot to run make i18n, but also I'm surprised, isn't that part of the CI checks? I need to check

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@@ -32,7 +36,8 @@ export const AlertBanner: React.FC<{
actionClose={<AlertActionCloseButton onClose={onDelete} />}
actionLinks={
<React.Fragment>
<AlertActionLink onClick={routeChange}>{t('View alert details')}</AlertActionLink>
<AlertActionLink onClick={routeAlert}>{t('View alert details')}</AlertActionLink>
<AlertActionLink onClick={routeDashboard}>{t('View health dashboard')}</AlertActionLink>
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 please regenerate i18n for that ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

Comment on lines +210 to +215
<Button
onClick={() => history.push('/monitoring/dashboards/grafana-dashboard-netobserv-health')}
variant="link"
>
{t('Show health dashboard')}
</Button>
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a way to check that the dashboard exists before showing the button ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since it does not consume any resource by itself, as long as monitoring-operator is deployed, the dashboard is always deployed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Update: monitoring-operator is part of openshift core. So we should be fine here.

Copy link
Contributor

Choose a reason for hiding this comment

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

as discussed, let's keep this as is

@openshift-ci openshift-ci bot removed the lgtm label Mar 21, 2023
@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Mar 21, 2023
Copy link
Contributor

@jpinsonneau jpinsonneau left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @OlivierCazade

@OlivierCazade
Copy link
Collaborator Author

/approve

@openshift-ci
Copy link

openshift-ci bot commented Mar 22, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: OlivierCazade

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

The pull request process is described 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

@openshift-merge-robot openshift-merge-robot merged commit 0c794b5 into netobserv:main Mar 22, 2023
@memodi
Copy link
Contributor

memodi commented Mar 23, 2023

/ok-to-test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants