-
Notifications
You must be signed in to change notification settings - Fork 332
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: [M3-7746] - Fix $0 region price error in "Enable All Backups" drawer #10161
fix: [M3-7746] - Fix $0 region price error in "Enable All Backups" drawer #10161
Conversation
getMonthlyBackupsPrice({ | ||
region: linode.region, | ||
type, | ||
}) || 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.
This || undefined
caused monthly prices of 0 to get returned as undefined
here
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.
Nice!
Love the unit tests π§Ό
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.
Oh awesome catch, thanks @mjac0bs! I think this even warrants its own test case, so I'll handle that all at once tomorrow. Also totally agreed on that const name, I'll take care of that too π Thank you! |
@mjac0bs Just pushed a fix for that $0 total price issue, as well as some unit tests for the BackupDrawer component |
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.
Awesome, thanks for the unit test coverage of the drawer! Manually confirmed the total of the drawer now displays $0.00 for a total price of backups, as well. π’
β¦awer (linode#10161) * Remove error indicator for Linodes in $0 regions * Fix $0 total price display issue * Cover $0 pricing cases in Cypress backup tests * Add BackupLinodeRow tests to account for error states and $0 regions * Add unit tests for BackupDrawer component
β¦xes for release (#10177) * fix: [M3-7741] - Hide error notices for $0 regions in Resize Pool and Add a Node Pool drawers (#10157) * Allow -zsh LKE prices without error notices in Resize Pool and Add Pool drawers * Fix loading spinner displaying above what was supposed to be loading * Fix conditional to render notice if either price is invalid * Add test coverage * Added changeset: Hide error notices for /bin/sh regions for LKE Resize and Add Node Pools * Fix changeset wording * Address feedback: use invalid price util * fix: [M3-7746] - Fix $0 region price error in "Enable All Backups" drawer (#10161) * Remove error indicator for Linodes in $0 regions * Fix $0 total price display issue * Cover $0 pricing cases in Cypress backup tests * Add BackupLinodeRow tests to account for error states and $0 regions * Add unit tests for BackupDrawer component * fix: [M3-7747] - Fix Linode Migration dialog hidden $0 price (#10166) * Add unit tests for MigrationPricing component * Accounting for $0 prices in MigrationPricing component * fix: [M3-7739] - Fix error when enabling backups for Linodes in regions with $0 price (#10153) * Fix error when enabling backups for Linodes in regions with $0 price * Add unit tests for EnableBackupsDialog --------- Co-authored-by: Mariah Jacobs <114685994+mjac0bs@users.noreply.github.com> * Replace "toBeDisabled" with "toHaveAttribute" assertion --------- Co-authored-by: Mariah Jacobs <114685994+mjac0bs@users.noreply.github.com>
Description π
This fixes a couple issues in the "Enable All Backups" drawer when one or more Linodes are in a $0-priced region.
Changes π
List any change relevant to the reviewer.
Preview π·
Include a screenshot or screen recording of the change
π‘ Use
<video src="" />
tag when including recordings in table.How to test π§ͺ
We should be able to rely on the unit tests and Cypress tests to cover this, since getting the "Enable All Linode Backups" drawer to appear can be difficult depending on the state of your account.
As an Author I have considered π€
Check all that apply