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

feat(OCPADVISOR-72): Render upgrade risks banner #549

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

gkarat
Copy link
Collaborator

@gkarat gkarat commented Apr 18, 2023

Implements https://issues.redhat.com/browse/OCPADVISOR-72.
Mocked at https://www.sketch.com/s/c5c07e06-f4a1-4c64-9cdf-8b12d8ac9ad5/a/8ylYyDw.

This makes the cluster view render the upgrade risks banner which indicates whether there are any upgrade risks for this cluster.

  • Must render the warning alert if there is at least one upgrade risks.
  • Must render the success green alert if the are no upgrade risks for this cluster or the cluster is managed.
  • Must render the warning alert "not currently available" if back end returns 503.
  • Must not render the alert in any other cases.

How to test

The same as for #547 (comment): try to run the PR together with the mock service. For different clusters (scenarios), you should get different results.

Screenshots

Has some risks

image

Has no risks/is a managed cluster

image

Service is down (503 status code)

image

@gkarat gkarat added the enhancement New feature or request label Apr 18, 2023
@gkarat gkarat requested a review from ikerreyes April 18, 2023 13:11
@gkarat gkarat self-assigned this Apr 18, 2023
@gkarat gkarat marked this pull request as ready for review April 18, 2023 13:11
@gkarat gkarat requested a review from a team as a code owner April 18, 2023 13:11
@gkarat
Copy link
Collaborator Author

gkarat commented Apr 18, 2023

/retest

@codecov-commenter
Copy link

codecov-commenter commented Apr 18, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.31 🎉

Comparison is base (f9e3031) 87.82% compared to head (bf30d60) 88.14%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #549      +/-   ##
==========================================
+ Coverage   87.82%   88.14%   +0.31%     
==========================================
  Files          31       32       +1     
  Lines        1265     1282      +17     
  Branches      486      499      +13     
==========================================
+ Hits         1111     1130      +19     
+ Misses        154      152       -2     
Impacted Files Coverage Δ
src/Components/Cluster/Cluster.js 100.00% <100.00%> (ø)
.../Components/UpgradeRisksAlert/UpgradeRisksAlert.js 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

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

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@Fewwy Fewwy left a comment

Choose a reason for hiding this comment

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

LGTM

@gkarat gkarat merged commit 7898f04 into RedHatInsights:master Apr 19, 2023
gkarat pushed a commit that referenced this pull request Apr 19, 2023
# [1.14.0](v1.13.0...v1.14.0) (2023-04-19)

### Features

* **OCPADVISOR-72:** Render banner to show status of upgrade risks ([#549](#549)) ([cdda357](cdda357))
@JoaoFula
Copy link

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants