-
Notifications
You must be signed in to change notification settings - Fork 364
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
upcoming: [M3-7978] - RegionSelect disabled option API updates #10373
Conversation
Coverage Report: ✅ |
packages/manager/src/features/PlacementGroups/PlacementGroupsCreateDrawer.tsx
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.
@hana-linode sorry I had forgotten the logic behind this. It's only customer tag based. Basically at the time of the region getting limited availability, the admin script looks at if the user has had any resource in said data-center in the last 3 months. If so, user can continue using that region to create resources. What I would recommend is create a new account (can be employee account) in order to have that region disabled |
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.
@dwiley-akamai would have to be a PROD account |
Gotcha, thanks for clarifying and updating the PR description |
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.
No regressions observed for legacy use cases ✅
Observed outlined behavior for PlacementGroupCreateDrawer
use case ✅
packages/manager/src/features/PlacementGroups/PlacementGroupsCreateDrawer.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.
LGTM!
…e#10373) * save progress * save progress * save progress * Save progress * fix tests * code cleanup * Improve coverage * moar cleanup * Added changeset: RegionSelect disabled option API updates * Address feedback * Address feedback 2 * fix test
Description 📝
This PR allows customizing the disabled RegionSelect option. Previously the disabling of a region (and its associated tooltip) we controlled statically, only based on the region capabilities.
With this update, we keep defaulting to the capability based disabling, and allow a custom handler to disable a region based on whatever logic needed. In this case, it is for the
PlacementGroupCreateDrawer
to allow disabling a region based on themaximum_pgs_per_customer
region limit.Changes 🔄
handleDisabledRegion
prop toRegionSelect
unavailable
front end code to take a newdisabledProps
so we can configure custom tooltip messages and dimensions as wellgetOptionDisabled
to reflect the newdisabledProps
propPlacementGroupCreateDrawer
to pass new option filtering logic based onmaximum_pgs_per_customer
Preview 📷
How to test 🧪
Verification steps
ℹ️ Use PROD
Legacy (no regression)
ℹ️ Use ALPHA
New Behavior (test the new
PlacementGroupCreateDrawer
behavior)As an Author I have considered 🤔
Check all that apply