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

fix: Distributed regions not displaying in the Linode Create flow #10631

Conversation

hana-akamai
Copy link
Contributor

Description 📝

Looks like there was a change made to the isDistributedRegionSupported function which caused a regression in the distributed regions displaying in the Linode Create flow

Preview 📷

Before After
image image

How to test 🧪

Prerequisites

(How to setup test environment)

  • Ensure your account has the new-dc-testing, edge_testing and edge_compute customer tags

Reproduction steps

(How to reproduce the issue, if applicable)

  • Go to the remote dev environment and observe no Distributed regions in the Linode Create flow

Verification steps

(How to verify changes)

  • Either locally or in the preview link, go to the Linode Create flow. Distributed regions should be displaying again

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

@hana-akamai hana-akamai added Gecko Beta Relating to Gecko project Gecko LA Relating to Gecko LA labels Jul 1, 2024
@hana-akamai hana-akamai self-assigned this Jul 1, 2024
@hana-akamai hana-akamai requested a review from a team as a code owner July 1, 2024 17:21
@hana-akamai hana-akamai requested review from jaalah-akamai and abailly-akamai and removed request for a team July 1, 2024 17:21
@hana-akamai
Copy link
Contributor Author

I don't think this PR needs a changeset since the regression hasn't hit production yet

Copy link

github-actions bot commented Jul 1, 2024

Coverage Report:
Base Coverage: 82.18%
Current Coverage: 82.18%

Copy link
Member

@bnussman-akamai bnussman-akamai left a comment

Choose a reason for hiding this comment

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

Fix makes sense to me, but I wonder if we should fix the typescript type of getQueryParamsFromQueryString and the casts of params.type as LinodeCreateType because they seems to be the root of the issue.

Linode Create v2 has a more typesafe way to handle query params, but it might still be worth improving upon in Linode Create v1

@hana-akamai hana-akamai added the Add'tl Approval Needed Waiting on another approval! label Jul 1, 2024
@hana-akamai
Copy link
Contributor Author

@bnussman-akamai Agreed, M3-8285 will address that

@abailly-akamai
Copy link
Contributor

@hana-linode are you sure these are the only tags needed? I have those in my dev account and distributed regions are not showing up in alpha at all.

Copy link
Contributor

@abailly-akamai abailly-akamai left a comment

Choose a reason for hiding this comment

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

Confirmed the fix works when no url param is present in the create flow (ex: when clicking from the create menu) ✅

Looking forward to see a more holistic fix come up next!

@hana-akamai hana-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Jul 2, 2024
@hana-akamai hana-akamai merged commit e612d3a into linode:develop Jul 2, 2024
19 checks passed
@hana-akamai hana-akamai deleted the fix-distributed-display-linode-create branch July 2, 2024 14:41
nikhagra-akamai pushed a commit to nikhagra-akamai/manager that referenced this pull request Jul 3, 2024
…10631)

## Description 📝
Looks like there was a change made to the `isDistributedRegionSupported` function which caused a regression in the distributed regions displaying in the Linode Create flow

## How to test 🧪

### Prerequisites
(How to setup test environment)
- Ensure your account has the `new-dc-testing`, `edge_testing` and `edge_compute` customer tags

### Reproduction steps
(How to reproduce the issue, if applicable)
- Go to the remote dev environment and observe no Distributed regions in the Linode Create flow

### Verification steps
(How to verify changes)
- Either locally or in the preview link, go to the Linode Create flow. Distributed regions should be displaying again
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 Gecko LA Relating to Gecko LA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants