upcoming: [M3-9706] - Fix Subnets Table for Linodes using new interfaces#11953
upcoming: [M3-9706] - Fix Subnets Table for Linodes using new interfaces#11953coliu-akamai merged 24 commits intolinode:developfrom
Conversation
| const subnetInterfaceData = | ||
| subnetInterfaces.find((interfaceData) => interfaceData.active) ?? | ||
| subnetInterfaces[0]; | ||
| const { config_id: configId, id: interfaceId } = subnetInterfaceData; |
There was a problem hiding this comment.
we are now given the config id in SubnetLinodeInterfaceData, so we'll no longer have to fetch all configs to find the interface attached to this subnet. I'm still fetching the single config the interface belongs to, due to hasUnrecommendedConfiguration (for implicit primary interfaces)
| linodeInterface.purpose === 'vpc' && !linodeInterface.active | ||
| ) | ||
| ); | ||
| const isRebootNeeded = isRunning && !configInterface?.active; |
There was a problem hiding this comment.
not sure how many Linodes have multiple configs, but I remember that the reboot chip is especially finnicky for that case. This clears up the logic a bit - now the only interface we care about is the one we're displaying.
Previously, the reboot chip would display even after we'd already rebooted our Linode with config A if some other config B had an inactive VPC interface.
This reboot chip is not needed for Linode Interfaces - we can only apply networking interface changes when the Linode is shutdown. Upon turning back on and booting, those changes get applied, so no reboot needed (if my understanding of the API spec's overview is correct)
|
@dwiley-akamai @hana-akamai also requesting you since this touches a lot of old VPC logic and would appreciate the extra eyes! |
dwiley-akamai
left a comment
There was a problem hiding this comment.
VPC IP, ranges, and firewall show up as expected ✅
Linode assigned to VPC
- w/ legacy config/interfaces: links to linode details page ✅
- w/ linode interfaces: links to linode details > Network tab > Interface Details drawer ✅
Config interfaces
- Reboot indicator behavior ✅
- Unrecommended Configuration notice ✅
packages/manager/src/features/VPCs/VPCDetail/SubnetLinodeRow.tsx
Outdated
Show resolved
Hide resolved
hana-akamai
left a comment
There was a problem hiding this comment.
Functionality is looking good!
packages/manager/cypress/e2e/core/linodes/create-linode-with-vpc.spec.ts
Show resolved
Hide resolved
Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com>
Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com>
cpathipa
left a comment
There was a problem hiding this comment.
Nice work @coliu-akamai confirming on the verification steps.
packages/manager/src/features/VPCs/VPCDetail/SubnetLinodeRow.tsx
Outdated
Show resolved
Hide resolved
Cloud Manager UI test results🎉 540 passing tests on test run #27 ↗︎
|

Description 📝
Changes 🔄
Target release date 🗓️
4/22
Preview 📷
Include a screenshot or screen recording of the change.
🔒 Use the Mask Sensitive Data setting for security.
💡 Use
<video src="" />tag when including recordings in table.How to test 🧪
Verification steps
Logic for config profile interfaces
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
As an Author, before moving this PR from Draft to Open, I confirmed ✅