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-7704] - Disable Cloning, Private IP, Backups for edge regions #10222

Conversation

hana-akamai
Copy link
Contributor

@hana-akamai hana-akamai commented Feb 22, 2024

Description 📝

Cloning, Private IP, Backups, Lish Console via SSH, and VPC will not be supported for edge regions so we want to disable them.

Changes 🔄

  • Disabled the Backups and Private IP checkbox in the Linode Create page when an edge region is selected and display a warning notice
  • Disabled Private IP radio in the "Add an IP Address" drawer (Linode details page -> Network tab -> Add An IP Address) for Linodes in an edge region with a warning notice
  • Disabled the "Enable Backups" button in the Backups tab of the Linode details page with a warning notice
  • Disabled the "Clone" action in the Linode landing dropdown action menu and Linode entity detail action menu with a tooltip explanation
  • Updated LISH Console via SSH text in Linode Entity Detail Header to N/A

Preview 📷

image image
image image
image

How to test 🧪

Prerequisites

(How to setup test environment)

  • Turn on the MSW

Verification steps

(How to verify changes)

  • See the Changes section
yarn test AddonsPanel
yarn test BackupsPlaceholder
yarn test AddIPDrawer
yarn test LinodeActionMenu

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 the Gecko Beta Relating to Gecko project label Feb 22, 2024
@hana-akamai hana-akamai self-assigned this Feb 22, 2024
@hana-akamai hana-akamai force-pushed the M3-7704-disable-cloning-private-ip-backups-edge-regions branch 2 times, most recently from 72451ec to fbad1a4 Compare February 26, 2024 15:42
@hana-akamai hana-akamai force-pushed the M3-7704-disable-cloning-private-ip-backups-edge-regions branch from fbad1a4 to 52cc34a Compare February 26, 2024 16:00
@hana-akamai hana-akamai marked this pull request as ready for review March 4, 2024 23:05
@hana-akamai hana-akamai requested a review from a team as a code owner March 4, 2024 23:05
@hana-akamai hana-akamai requested review from bnussman-akamai and cpathipa and removed request for a team March 4, 2024 23:05
Copy link

github-actions bot commented Mar 5, 2024

Coverage Report:
Base Coverage: 81.39%
Current Coverage: 81.4%

@dwiley-akamai dwiley-akamai self-requested a review March 5, 2024 19:53
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.

Unit tests pass ✅

Linode Create page: Backups & Private IP checkboxes disabled & warning notice displayed when Edge region is selected ✅

Disabled Private IP radio in the "Add an IP Address" drawer (Linode details page -> Network tab -> Add An IP Address) for Linodes in an Edge region with a warning notice ✅

Disabled the "Enable Backups" button in the Backups tab of the Linode details page with a warning notice ✅

Disabled the "Clone" action in the Linode landing dropdown action menu and Linode entity detail action menu with a tooltip explanation ✅

@hana-akamai hana-akamai added the Add'tl Approval Needed Waiting on another approval! label Mar 6, 2024
@jaalah-akamai
Copy link
Contributor

jaalah-akamai commented Mar 6, 2024

Instead of a notice for the backups section. Can we add tooltip text to the disabled button? I think that's a cleaner approach that we've been doing elsewhere. Same for the "Add an IP Address" notice. We they can't edit/modify anything in the drawer, let's just disable the "Add an IP Address" button with tooltip text

@hana-akamai
Copy link
Contributor Author

@jaalah-akamai Backups has been addressed in an earlier commit, just updated the preview screenshot to reflect the change. For the "Add an IP Address" drawer, the user can still edit/modify most things in the drawer (just not Private IPv4) so I think the warning notice makes sense there

@jaalah-akamai jaalah-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Mar 7, 2024
{linodeIsInEdgeRegion && (
<Notice
sx={{ fontSize: 15 }}
text="Private IP is currently not available for Edge regions"
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: If you look at all the notice/tooltip texts that are similar, we could probably create a util where we pass in an action or resourceType and get the verbiage and syntax aligned. We're starting to do this with our restricted user experience messaging. https://github.com/linode/manager/blob/develop/packages/manager/src/features/Account/utils.ts#L44-L67

@hana-akamai hana-akamai merged commit 95ba193 into linode:develop Mar 7, 2024
18 checks passed
vrajesh73 added a commit to vrajesh73/manager that referenced this pull request Mar 12, 2024
…eature/namespace-create

* 'develop' of https://github.com/vrajesh73/manager: (89 commits)
  fix: [M3-7269] - Display parent email in user menu when no company name is available for restricted parent user (linode#10248)
  fix: [M3-7817] - Show correct status of Child Account Enabled column for parent users (linode#10233)
  upcoming: [M3-7616] - Add Placement Groups Events and Notifications (linode#10221)
  upcoming: [M3-7816-v2] - Adjust logic for when to show Switch Account button (linode#10266)
  fix: [M3-7831] - Persisting error messages in ACLB delete dialogs (linode#10254)
  upcoming: [M3-7842] - Update Assign Linode Drawer and improve query skipping (linode#10263)
  upcoming: [M3-7704] - Disable Cloning, Private IP, Backups for edge regions (linode#10222)
  test: Fix test flake for Images landing page test (linode#10267)
  fix: [M3-7824] - ACLB TCP Rule Creation and other fixes (linode#10264)
  refactor: [M3-7687] - Linodes Restricted User Experience 2/2 (linode#10227)
  test: Resolve OBJ create and delete E2E test flake (linode#10245)
  upcoming: [M3-7723] - Placement Group feature flag as object (linode#10256)
  chore(deps): Bump sanitize-html from 2.11.0 to 2.12.1 (linode#10247)
  change: [M3-7813] - Allow the disabling of the TypeToConfirm input (linode#10251)
  upcoming: [M3-7839] - Change Business Partner to Parent User (linode#10259)
  upcoming: [M3-7835] - Adjust user table column count (linode#10252)
  upcoming: [M3 7738] - Update Placement Group Create & Edit Drawers (linode#10205)
  refactor: [M3-7437] - Use `@lukemorales/query-key-factory` for Profile Queries (linode#10241)
  fix: React Query `updateInPaginatedStore` helper function not working as expected (linode#10249)
  test: [M3-7497] - Add tests for child user verification banner (linode#10204)
  ...

# Conflicts:
#	packages/manager/src/MainContent.tsx
#	packages/manager/src/dev-tools/FeatureFlagTool.tsx
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 Wait to Merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants