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

upcoming: [M3-8847] - Update Region Select for LKE-Enterprise #11348

Merged

Conversation

hana-akamai
Copy link
Contributor

@hana-akamai hana-akamai commented Dec 2, 2024

Description 📝

LKE-Enterprise will not be available in all regions. It will be available in limited DCs initially, then expanded to all core DCs. We want to clearly communicate to users why they cannot select the same DCs for LKE-E as we offer for LKE.

Changes 🔄

  • Filter region select by the Kubernetes Enterprise capability if LKE-E is selected & show tooltip

Preview 📷

Screen.Recording.2024-12-03.at.5.52.35.PM.mov

How to test 🧪

Prerequisites

(How to setup test environment)

  • Ensure you have the LKE-E customer tag on your account (see Project Tracker)
  • Point to the development environment

Verification steps

(How to verify changes)

  • Go to http://localhost:3000/kubernetes/create
  • When LKE standard cluster type is selected, all regions with the Kubernetes capability are displayed.
  • When the LKE enterprise cluster type is selected, regions are filtered display only those with the Kubernetes Enterprise capability.
    • A tooltip is displayed next to the region select that explains the reason for the limited list.
  • When the lkeEnterprise feature is disabled, no region tooltip is visible.
  • Confirm test coverage passes
yarn cy:run -s "cypress/e2e/core/kubernetes/lke-create.spec.ts"
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

@mjac0bs
Copy link
Contributor

mjac0bs commented Dec 2, 2024

@hana-akamai Merged #11322 so feel free to rebase this branch on develop. 👍🏼

@hana-akamai hana-akamai force-pushed the M3-8847-update-region-select-lke-e branch from 29cca16 to 315fc20 Compare December 2, 2024 21:21
@hana-akamai hana-akamai marked this pull request as ready for review December 2, 2024 22:03
@hana-akamai hana-akamai requested review from a team as code owners December 2, 2024 22:03
@hana-akamai hana-akamai requested review from AzureLatte, carrillo-erik, cpathipa and mjac0bs and removed request for a team December 2, 2024 22:03
Copy link

github-actions bot commented Dec 3, 2024

Coverage Report:
Base Coverage: 86.85%
Current Coverage: 86.85%

@hana-akamai hana-akamai added the Add'tl Approval Needed Waiting on another approval! label Dec 4, 2024
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 465 passing tests on test run #7 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing465 Passing2 Skipped98m 39s

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.

Thanks Hana!

@mjac0bs mjac0bs added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Dec 4, 2024
@hana-akamai hana-akamai merged commit 6f6d303 into linode:develop Dec 4, 2024
22 of 23 checks passed
@hana-akamai hana-akamai deleted the M3-8847-update-region-select-lke-e branch December 4, 2024 21:01
Copy link

cypress bot commented Dec 4, 2024

Cloud Manager E2E    Run #6920

Run Properties:  status check passed Passed #6920  •  git commit 6f6d303a2b: upcoming: [M3-8847] - Update Region Select for LKE-Enterprise (#11348)
Project Cloud Manager E2E
Branch Review develop
Run status status check passed Passed #6920
Run duration 29m 16s
Commit git commit 6f6d303a2b: upcoming: [M3-8847] - Update Region Select for LKE-Enterprise (#11348)
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 465
View all changes introduced in this branch ↗︎

@ankita-akamai
Copy link
Contributor

@hana-akamai @jaalah fyi, this pr has altered the region select autocomplete in an unexpected manner causing the region select width to shrink in both, linode create page as shown below, and also in our monitor tab..
image

@@ -121,7 +121,7 @@ export const RegionSelect = <
}}
sx={(theme) => ({
[theme.breakpoints.up('md')]: {
width: '416px',
maxWidth: tooltipText ? '458px' : '416px',
Copy link
Contributor

Choose a reason for hiding this comment

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

This is the culprit here... putting out a PR

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! LKE-Enterprise
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants