-
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
refactor: [M3-8071] - Rename Edge Regions to Distributed Regions #10452
Conversation
Coverage Report: β
|
alignSelf: 'start', | ||
marginLeft: 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.
No changes in the styles, just the name
const StyledTypography = styled(Typography)(({ theme }) => ({ | ||
fontSize: '0.875rem', | ||
marginTop: theme.spacing(1), | ||
})); |
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 file only contains a name change from EdgePlanTable
to DistributedRegionPlanTable
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.
"Edge" --> "Distributed" in Linode Create flow β
"Edge" --> "Distributed" in Linode Migrate modal β
Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com>
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.
packages/manager/src/components/RegionSelect/RegionSelect.utils.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/components/RegionSelect/RegionSelect.utils.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/components/RegionSelect/RegionSelect.utils.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Linodes/LinodesDetail/LinodeBackup/BackupsPlaceholder.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Linodes/LinodesDetail/LinodeNetworking/AddIPDrawer.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Linodes/LinodesLanding/LinodeActionMenu/LinodeActionMenu.test.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Linodes/LinodesLanding/LinodeActionMenu/LinodeActionMenu.tsx
Outdated
Show resolved
Hide resolved
packages/manager/src/features/Linodes/MigrateLinode/ConfigureForm.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Hana Xu <115299789+hana-linode@users.noreply.github.com>
Co-authored-by: Hana Xu <115299789+hana-linode@users.noreply.github.com>
β¦s.tsx Co-authored-by: Hana Xu <115299789+hana-linode@users.noreply.github.com>
β¦s.tsx Co-authored-by: Hana Xu <115299789+hana-linode@users.noreply.github.com>
β¦up/BackupsPlaceholder.tsx Co-authored-by: Hana Xu <115299789+hana-linode@users.noreply.github.com>
β¦orking/AddIPDrawer.tsx Co-authored-by: Hana Xu <115299789+hana-linode@users.noreply.github.com>
β¦ilities.test.ts Co-authored-by: Hana Xu <115299789+hana-linode@users.noreply.github.com>
β¦l.tsx Co-authored-by: Hana Xu <115299789+hana-linode@users.noreply.github.com>
β¦ent/FromBackupsContent.tsx Co-authored-by: Hana Xu <115299789+hana-linode@users.noreply.github.com>
β¦ent/FromLinodeContent.tsx Co-authored-by: Hana Xu <115299789+hana-linode@users.noreply.github.com>
packages/api-v4/src/linodes/types.ts
Outdated
@@ -333,7 +333,8 @@ export type LinodeTypeClass = | |||
| 'metal' | |||
| 'prodedicated' | |||
| 'premium' | |||
| 'edge'; | |||
| 'edge' | |||
| 'distributed'; |
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.
Seems like the class is going to be dedicated
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.
Agreed, we can remove distributed
now (Left comment below)
(type) => | ||
type.id.includes('dedicated-edge') || | ||
type.id.includes('nanode-edge') || | ||
type.class === 'edge' | ||
); |
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.
Since the SLUGs are changing we can't rely on the class
to determine if the plan type is included in the distributed region. The API used to look at the second element of the SLUG to determine the class: IE: g6-dedicated-nanode
would equal class: edge
. The slug's are now being returned g6-dedicated-edge
(the positions are swapped), so now we need to look at the id
to determine this.
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.
The renamings look consistent throughout the UI and codebase β
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.
Tests are passing and all the replacements of edge -> distributed looked good where they're not being returned from API. There's a conflict to resolve before merging, but then π .
Description π
Effort to bring clarity to new regions and plan offerings
Changes π
types
and places we're checking forsite_type
, we're allowing bothedge
anddistributed
until the DB/API changes are ready. Then we'll do some cleanup afterwards.edge
will now be calleddistributed
.edge
, I've includedregion
for clarity.type SupportedEdgeTypes
=>type SupportedDistributedRegionTypes
Target release date ποΈ
TBD: We will try to release this in conjunction with API changes
Preview π·
How to test π§ͺ
Prerequisites
Gecko
feature flag is active in dev toolsReproduction steps
Try to create a Linode in an edge/distributed region
Observe
edge
should no longer be shownUsing MSW, try to migrate an edge/distributed linode to a non-distributed region
Observe warnings should be updated
As an Author I have considered π€
Check all that apply