-
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
change: [UIE-7308] - Notifications for database resize events #10262
change: [UIE-7308] - Notifications for database resize events #10262
Conversation
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 solid PR!
a few things overall:
- make sure to use strict equality
- You have unit test failures (run
yarn test
or look at GH action report - this is lacking coverage (unit test in this PR, and is there any plan to add e2e coverage?)
- You need to rebase this PR to get the latest changes from develop
- Make sure to add screenshots about what I am expected to see in the UI in your PR description
Am not seeing the progress bar. Is it only in alpha? If so, please add that the PR needs to be tested with alpha
packages/manager/src/features/Databases/DatabaseDetail/DatabaseResize/DatabaseResize.tsx
Outdated
Show resolved
Hide resolved
.../src/features/Databases/DatabaseDetail/DatabaseResize/DatabaseResizeCurrentConfiguration.tsx
Outdated
Show resolved
Hide resolved
...rc/features/Databases/DatabaseDetail/DatabaseSummary/DatabaseSummaryClusterConfiguration.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/components/PlansPanel/PlanContainer.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/components/PlansPanel/PlanSelection.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Databases/DatabaseDetail/DatabaseResize/DatabaseResize.tsx
Outdated
Show resolved
Hide resolved
@abailly-akamai thank you for your review! I'll make the necessary changes. |
c7fcb73
to
b6f35f6
Compare
Coverage Report: ❌ |
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 @mpolotsk-akamai the PR is looking good.
- Please add to the description that this needs to be tested on DEV/ALPHA (I imagine this is not going live for a while and still behind a feature flag?
- Left some code clean up comments
Was able to confirm the events and the progress bar however, I am getting an error in the console about an unknown API event received, which seems to be directly related to the resize event. Can you look into it?
packages/manager/src/features/Databases/DatabaseDetail/DatabaseStatusDisplay.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/components/PlansPanel/PlanContainer.tsx
Outdated
Show resolved
Hide resolved
sizeTooSmall: boolean, | ||
planIsDisabled?: boolean, | ||
disabledToolTip?: string | ||
): string | undefined => { |
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.
nitpick: above 2 arguments, use named args
packages/manager/src/features/components/PlansPanel/PlanSelection.tsx
Outdated
Show resolved
Hide resolved
@abailly-akamai, thank you for the review! I encountered the same issue. It occurs when we have old events in the dropdown menu. Sam Klock provided an explanation: One of the ways to resolve this is by keeping the copy defined for "database_scale" in the code, as there will be users who have event records for it in production. So, I will add database_scale to eventMessageGenerator. |
packages/manager/src/features/Databases/DatabaseDetail/DatabaseResize/DatabaseResize.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/components/PlansPanel/PlanContainer.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Databases/DatabaseDetail/DatabaseResize/DatabaseResize.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Databases/DatabaseDetail/DatabaseResize/DatabaseResize.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.
.../src/features/Databases/DatabaseDetail/DatabaseResize/DatabaseResizeCurrentConfiguration.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Databases/DatabaseDetail/DatabaseStatusDisplay.test.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Databases/DatabaseDetail/DatabaseStatusDisplay.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Databases/DatabaseDetail/DatabaseStatusDisplay.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Databases/DatabaseDetail/DatabaseStatusDisplay.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/components/PlansPanel/PlanSelection.tsx
Outdated
Show resolved
Hide resolved
@mpolotsk-akamai looks like there are merge conflicts that need to be addressed |
…hich disappears after resize complete, update status from Active to Resizing, show resizing progress in percentage, and revert to Active status when finished. Option to switch between dedicated and shared plans, with the exception of switching from dedicated plan to a shared plan of the same size.
c135d39
to
7b980d7
Compare
@hana-linode , merge conflicts have been resolved |
Thanks for making the changes. |
Description 📝
Needs to be tested on DEV/ALPHA
Bell icon / Alert changes:
System notify users when database resizing starts, display a progress bar which disappears upon completion, update status from 'Active' to 'Resizing', show resizing progress in percentage, and revert to 'Active' status when finished.
Option to switch between dedicated and shared plans, with the exception of switching from dedicated plan to a shared plan of the same size.
Changes 🔄
Target release date 🗓️
Release date 3/18/24
Preview 📷
How to test 🧪
Needs to be tested in Alpha.
Open application, navigate to /databases, select the database cluster. Go to the Resize tab, choose a plan, and click the 'Resize Database Cluster' button. In the popup window, confirm the resizing by entering the name of the database cluster, then click 'Resize Cluster' button. You can monitor the resizing status in the Summary and Resize tabs, as well as in a table on the Databases page. Additionally, notification about scheduled resizing and a progress bar which disappears upon completion in bell icon dropdown.