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: [M3-9025] - Region validation when switching to LKE-E #11471

Merged

Conversation

hana-akamai
Copy link
Contributor

@hana-akamai hana-akamai commented Jan 3, 2025

Description 📝

Fix region validation when a user is switching from LKE to LKE-E tier in the Kubernetes create flow

Preview 📷

Before After
Screen.Recording.2025-01-03.at.11.37.48.AM.mov
Screen.Recording.2025-01-03.at.11.39.19.AM.mov

How to test 🧪

Prerequisites

(How to setup test environment)

  • Ensure you have the customer tags for LKE-E (check project tracker)

Reproduction steps

(How to reproduce the issue, if applicable)

  • Go to another branch or dev environment and navigate to the Kubernetes create page
  • Enter a cluster label, select LKE as the tier, select a non LKE-E supported region (i.e. Atlanta, GA), select a HA control plane option, add a plan
  • Change the selected tier to LKE-E. Notice the region select is cleared but the Create Cluster button is enabled. Clicking Create Cluster shows an error text in the Region field

Verification steps

(How to verify changes)

  • Checkout this branch or PR preview link and navigate to the Kubernetes create page
  • Enter a cluster label, select LKE as the tier, select a non LKE-E supported region (i.e. Atlanta, GA), select a HA control plane option, add a plan
  • Change the selected tier to LKE-E. The region select should be cleared and the Create Cluster button is disabled
Author Checklists

As an Author, to speed up the review process, I considered 🤔

👀 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


  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All unit tests are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@hana-akamai hana-akamai added Bug Fixes for regressions or bugs LKE-Enterprise labels Jan 3, 2025
@hana-akamai hana-akamai self-assigned this Jan 3, 2025
@hana-akamai hana-akamai marked this pull request as ready for review January 3, 2025 16:55
@hana-akamai hana-akamai requested a review from a team as a code owner January 3, 2025 16:55
@hana-akamai hana-akamai requested review from carrillo-erik, pmakode-akamai and mjac0bs and removed request for a team January 3, 2025 16:55
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.

Resetting the region looks good!

I don't know how nitpicky we want to get about the checkout message - I did notice that it will say to 'select a region and add a node pool' when a node pool has already been added, and the valid region is the only thing needed. Since it does disappear as soon as the region is selected and the CTA is correctly enabled, I don't really think this will cause much confusion and it could be okay as is.

Screen.Recording.2025-01-06.at.10.30.15.AM.mov

@mjac0bs mjac0bs added the Approved Multiple approvals and ready to merge! label Jan 6, 2025
Copy link

github-actions bot commented Jan 6, 2025

Coverage Report:
Base Coverage: 86.97%
Current Coverage: 86.95%

@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 469 passing tests on test run #2 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing469 Passing2 Skipped94m 50s

@hana-akamai hana-akamai merged commit 7432afd into linode:develop Jan 6, 2025
22 of 23 checks passed
@hana-akamai hana-akamai deleted the M3-9025-fix-region-validation-lke-e branch January 6, 2025 19:04
Copy link

cypress bot commented Jan 6, 2025

Cloud Manager E2E    Run #7039

Run Properties:  status check passed Passed #7039  •  git commit 7432afdb4b: fix: [M3-9025] - Region validation when switching to LKE-E (#11471)
Project Cloud Manager E2E
Branch Review develop
Run status status check passed Passed #7039
Run duration 29m 55s
Commit git commit 7432afdb4b: fix: [M3-9025] - Region validation when switching to LKE-E (#11471)
Committer Hana Xu
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 4
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 471
View all changes introduced in this branch ↗︎

dmcintyr-akamai pushed a commit to dmcintyr-akamai/manager that referenced this pull request Jan 9, 2025
)

## Description 📝
Fix region validation when a user is switching from LKE to LKE-E tier in the Kubernetes create flow

## How to test 🧪

### Prerequisites

(How to setup test environment)

- Ensure you have the customer tags for LKE-E (check project tracker)

### Reproduction steps

(How to reproduce the issue, if applicable)

- [ ] Go to another branch or dev environment and navigate to the Kubernetes create page
- [ ] Enter a cluster label, select LKE as the tier, select a non LKE-E supported region (i.e. Atlanta, GA), select a HA control plane option, add a plan
- [ ] Change the selected tier to LKE-E. Notice the region select is cleared but the Create Cluster button is enabled. Clicking Create Cluster shows an error text in the Region field

### Verification steps

(How to verify changes)

- [ ] Checkout this branch or PR preview link and navigate to the Kubernetes create page
- [ ] Enter a cluster label, select LKE as the tier, select a non LKE-E supported region (i.e. Atlanta, GA), select a HA control plane option, add a plan
- [ ] Change the selected tier to LKE-E. The region select should be cleared and the Create Cluster button is disabled
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! Bug Fixes for regressions or bugs LKE-Enterprise
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants