-
Notifications
You must be signed in to change notification settings - Fork 367
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
fix: [UIE-8194] dbaas maintenance pending updates state should display when any pending updates are available #11387
Conversation
febef64
to
4c771ae
Compare
Coverage Report: ✅ |
4c771ae
to
5e34741
Compare
…y when any pending updates are available and disable version upgrade
5e34741
to
a28bb9f
Compare
onClick={onUpgradeVersion} | ||
> | ||
Upgrade Version | ||
</StyledLinkButton> | ||
{hasUpdates && ( |
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.
@cpathipa The update was to have a Tooltip icon display when there are pending updates disabling the Upgrade Version button. Just pushed up another change to adjust the condition and I've updated the description.
Cloud Manager UI test results🔺 1 failing test on test run #4 ↗︎
Details
TroubleshootingUse this command to re-run the failing tests: yarn cy:run -s "cypress/e2e/core/billing/smoke-billing-activity.spec.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.
Thanks for the contribution @smans-akamai - code looks good
Could we maybe use a server handler (or updating the factory if already handled) to mock a pending update to easily verify the change for now and future proofing? I was unable to verify the change since there's no pending update for the DB instances I am creating.
Boolean( | ||
pendingUpdates?.some((update) => update.deadline || update.planned_for) | ||
); | ||
Boolean(pendingUpdates && pendingUpdates?.length > 0); |
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.
Boolean(pendingUpdates && pendingUpdates?.length > 0); | |
Boolean(pendingUpdates?.length > 0); |
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.
@abailly-akamai The pendingUpdates
param is optional and can be undefined. So this change throws a "possibly undefined" typescript error without the added check. I believe the function was intentionally written this way so I'd prefer to leave it the as is.
Also, for the components using this method, the property that gets provided for pendingUpdates
is optional. Perhaps because the data might not be available right away before making this check.
Since this just a fix for the existing behavior, can we leave it as is?
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.
sure thing, I just assumed the optional chaining was taking care of that 👍
Thanks @abailly-akamai! The pending update is already mocked in the ServerHandler. Pending updates are included in the DB factory by default. This was done when the feature was originally implemented. If you change the pending updates array in the factory to an empty array, it should toggle this behavior in your local. |
@smans-akamai that worked - It just won't do that with every cluster ID so I did not see it with the one I tried for reference, |
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.
✅ Changes look good - thanks @alban for the route to test 👍
Cloud Manager E2E Run #6961
Run Properties:
|
Project |
Cloud Manager E2E
|
Branch Review |
develop
|
Run status |
Passed #6961
|
Run duration | 28m 55s |
Commit |
15992df8c7: fix: [UIE-8194] dbaas maintenance pending updates state should display when any ...
|
Committer | smans-akamai |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
3
|
Pending |
2
|
Skipped |
0
|
Passing |
469
|
View all changes introduced in this branch ↗︎ |
Description 📝
For DBaaS maintenance feature, the pending updates state should display when there are any pending updates available for a DB cluster. It should also disable the option to upgrade the version while those updates are still pending.
Changes 🔄
List any change(s) relevant to the reviewer.
"Upgrades are disabled while maintenance updates are in progress."
Target release date 🗓️
1/14/25
Preview 📷
How to test 🧪
Prerequisites
Reproduction steps
Verification steps
Author Checklists
As an Author, to speed up the review process, I considered 🤔
👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support
As an Author, before moving this PR from Draft to Open, I confirmed ✅