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-7893] – Post-GA VPC cleanup #10299

Merged
merged 12 commits into from
Mar 22, 2024

Conversation

dwiley-akamai
Copy link
Contributor

@dwiley-akamai dwiley-akamai commented Mar 19, 2024

Description πŸ“

Since VPC entered GA several weeks back, we are now able to circle back to complete some code cleanup. This ticket is primarily for @TODO VPC items related to the VPC feature flag and related conditionals.

Changes πŸ”„

  • Clean up flags.vpc, showVPCs, and related logic throughout many files
  • Remove manuallyUpdateConfigs prop from PowerActionsDialogOrDrawer.tsx
  • Use import type { ...} convention in a few places

Target release date πŸ—“οΈ

04/01/2024

How to test πŸ§ͺ

Verification steps

Ensure there have been no regressions compared to prod, specifically:

  • VPC appears in Create button dropdown and in PrimaryNav
  • VPC landing and detail pages load properly
  • VPC appears in list when you hit Ctrl + Shift + K
  • For Linodes assigned to a VPC...
    • "VPC" section is present in the header panel on the Linode Details page
  • For Linode Create flow...
    • VLAN accordion is present
    • "Use Private IP for a backend node to a NodeBalancer. Use VPC instead for private communication between your Linodes." copy is present for Private IP add-on
  • Powering Linodes on and off
  • InterfaceSelect works as expected in Linode Config dialog and VLAN accordion
  • "VPC" appears in "Add Personal Access Token" drawer & "View Scopes" drawer for PATs
  • No adverse impact to VPC Subnets table

As an Author I have 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

@dwiley-akamai dwiley-akamai added the VPC Relating to VPC project label Mar 19, 2024
@dwiley-akamai dwiley-akamai self-assigned this Mar 19, 2024
@dwiley-akamai dwiley-akamai requested a review from a team as a code owner March 19, 2024 21:03
@dwiley-akamai dwiley-akamai requested review from bnussman-akamai and hana-linode and removed request for a team March 19, 2024 21:03
@dwiley-akamai
Copy link
Contributor Author

dwiley-akamai commented Mar 19, 2024

The removal of VPC from featureFlags.ts and FeatureFlagTool.tsx (and related LD work) will be done in M3-7895

@dwiley-akamai dwiley-akamai marked this pull request as draft March 19, 2024 21:36
@dwiley-akamai dwiley-akamai marked this pull request as ready for review March 20, 2024 16:44
Copy link
Contributor

@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.

Great clean up!

{},
displayVPCPanel
);
const { data: vpcData, error, isLoading } = useVPCsQuery({}, {});
Copy link
Contributor

Choose a reason for hiding this comment

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

Unrelated to this PR: If the uses has more the 100 VPCs, only the first 100 will show

Copy link
Contributor

Choose a reason for hiding this comment

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

@dwiley-akamai We can probably remove the enabled argument for useVPCsQuery now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Going to create a ticket for implementing a useAllVPCsQuery where appropriate

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.

Found a minor existing bug with the event progress bar width but otherwise LGTM! 🧹

image

{},
displayVPCPanel
);
const { data: vpcData, error, isLoading } = useVPCsQuery({}, {});
Copy link
Contributor

Choose a reason for hiding this comment

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

@dwiley-akamai We can probably remove the enabled argument for useVPCsQuery now

@hana-linode hana-linode added the Approved Multiple approvals and ready to merge! label Mar 20, 2024
@dwiley-akamai
Copy link
Contributor Author

dwiley-akamai commented Mar 21, 2024

Found a minor existing bug with the event progress bar width but otherwise LGTM! 🧹

image

This is when powering down a linode, right? I can check if there's a backlog ticket already for addressing this (and if not, will create one)

Copy link

github-actions bot commented Mar 21, 2024

Coverage Report: ❌
Base Coverage: 81.64%
Current Coverage: 81.63%

@dwiley-akamai dwiley-akamai merged commit c06cb80 into linode:develop Mar 22, 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! VPC Relating to VPC project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants