Skip to content
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

Merged
merged 34 commits into from
Jun 4, 2024

Conversation

jaalah-akamai
Copy link
Contributor

@jaalah-akamai jaalah-akamai commented May 9, 2024

Description πŸ“

Effort to bring clarity to new regions and plan offerings

Changes πŸ”„

  • Important: For our types and places we're checking for site_type, we're allowing both edge and distributed until the DB/API changes are ready. Then we'll do some cleanup afterwards.
  • Everywhere we used the term edge will now be called distributed.
  • In places where we only used the name/text edge, I've included region for clarity.
    • Example: type SupportedEdgeTypes => type SupportedDistributedRegionTypes

Target release date πŸ—“οΈ

TBD: We will try to release this in conjunction with API changes

Preview πŸ“·

Before After
Screenshot 2024-05-09 at 12 44 01β€―PM Screenshot 2024-05-13 at 9 49 09β€―AM
Screenshot 2024-05-09 at 12 44 45β€―PM Screenshot 2024-05-13 at 9 49 57β€―AM
Screenshot 2024-05-09 at 12 45 32β€―PM Screenshot 2024-05-13 at 9 50 35β€―AM
Screenshot 2024-05-09 at 12 46 54β€―PM Screenshot 2024-05-13 at 9 49 24β€―AM
Screenshot 2024-05-09 at 1 37 50β€―PM Screenshot 2024-06-03 at 12 23 20β€―PM

How to test πŸ§ͺ

Prerequisites

  • Pull down branch and ensure Gecko feature flag is active in dev tools

Reproduction steps

  • Try to create a Linode in an edge/distributed region

  • Observe edge should no longer be shown

  • Using 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

  • πŸ‘€ 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

@jaalah-akamai jaalah-akamai self-assigned this May 9, 2024
@jaalah-akamai jaalah-akamai requested a review from a team as a code owner May 9, 2024 16:50
@jaalah-akamai jaalah-akamai requested review from dwiley-akamai and cpathipa and removed request for a team May 9, 2024 16:50
Copy link

github-actions bot commented May 9, 2024

Coverage Report: βœ…
Base Coverage: 82.35%
Current Coverage: 82.35%

@jaalah-akamai jaalah-akamai added Gecko Beta Relating to Gecko project and removed Gecko GA Relating to Gecko GA labels May 9, 2024
alignSelf: 'start',
marginLeft: 0,
},
}));
Copy link
Contributor Author

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),
}));
Copy link
Contributor Author

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

Copy link
Contributor

@dwiley-akamai dwiley-akamai left a 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>
Copy link
Contributor

@hana-linode hana-linode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some minor spelling feedback

I'm not seeing the edge regions populated for the new region input in the migrate dialog πŸ€”
Screenshot 2024-05-13 at 2 54 27β€―PM

jaalah-akamai and others added 6 commits May 15, 2024 09:17
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>
jaalah-akamai and others added 5 commits May 15, 2024 09:21
…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>
@@ -333,7 +333,8 @@ export type LinodeTypeClass =
| 'metal'
| 'prodedicated'
| 'premium'
| 'edge';
| 'edge'
| 'distributed';
Copy link
Contributor

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

Copy link
Contributor Author

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'
);
Copy link
Contributor Author

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.

@hana-linode hana-linode requested a review from a team as a code owner May 31, 2024 15:20
@hana-linode hana-linode requested review from cliu-akamai and removed request for a team May 31, 2024 15:20
@hana-linode hana-linode added the Add'tl Approval Needed Waiting on another approval! label May 31, 2024
Copy link
Contributor

@dwiley-akamai dwiley-akamai left a 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 βœ…

Copy link
Contributor

@mjac0bs mjac0bs left a 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 πŸš€ .

@mjac0bs mjac0bs added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Jun 4, 2024
@hana-linode hana-linode merged commit bbbca9b into linode:develop Jun 4, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! Gecko Beta Relating to Gecko project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants