-
Notifications
You must be signed in to change notification settings - Fork 23
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-71): Show upgrade risks table #547
feat(OCPADVISOR-71): Show upgrade risks table #547
Conversation
fbdfd72
to
04c790b
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.
Thanks a lot, great work with the tests
), | ||
'successful, alerts empty': () => { | ||
const fixtures = upgradeRisksFixtures; | ||
fixtures.upgrade_recommendation.upgrade_risks_predictors.alerts = []; |
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.
will not this modify the inner object for any subsequent uses? Don't we need a copy?
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.
Great work, didnt find any issues, LGTM!
After the update for the mock server, I see every type of table that is on the mocks. Great job. LGTM |
data?.upgrade_recommendation?.upgrade_risks_predictors || {}; | ||
|
||
return ( | ||
<TableComposable |
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.
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.
good catch. there is no final agreement on the docs URL, so I'd wait for folks first to decide and then will add it via separate PR most probably
# [1.13.0](v1.12.1...v1.13.0) (2023-04-18) ### Features * **OCPADVISOR-71:** Show upgrade risks table ([#547](#547)) ([f9e3031](f9e3031))
🎉 This PR is included in version 1.13.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Implements https://issues.redhat.com/browse/OCPADVISOR-71.
Mocked at https://www.sketch.com/s/c5c07e06-f4a1-4c64-9cdf-8b12d8ac9ad5/a/25OY5ve.
This introduces the upgrade risks table that is shown under the "Upgrade risks" tab on the cluster details view.
v1/cluster/%id/upgrade-risks-prediction
.How to test
The real endpoint will serve no data for real clusters, thus it is better to run this PR together with the mock service:
https://stage.foo.redhat.com:1337/beta/openshift/insights/advisor/clusters/%ID
.00000003-eeee-eeee-eeee-000000000001
must show firing alerts and cluster operators).Screenshots