-
Notifications
You must be signed in to change notification settings - Fork 364
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
change: [M3-7227] - Update VPC-related API types in accordance with new API changes #9824
Conversation
Consistently getting this fatal error for the test manager: Will be looking into it (but also am a bit confused!) |
packages/api-v4/.changeset/pr-9824-upcoming-features-1697827003419.md
Outdated
Show resolved
Hide resolved
packages/manager/.changeset/pr-9824-upcoming-features-1697827056392.md
Outdated
Show resolved
Hide resolved
…56392.md Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com>
…3419.md Co-authored-by: Dajahi Wiley <114682940+dwiley-akamai@users.noreply.github.com>
4828cd9
to
029a75e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assigning and unassigning Linodes to subnets ✅
Subnets table ✅
Creating and deleting subnets ✅
Adding and editing Linode configs ✅
Creating, editing, and deleting a VPC ✅
Creating a linode with a VPC assigned ✅
packages/manager/src/features/VPCs/VPCDetail/VPCDetail.test.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without seeing any failed API requests or console errors, I was able to...
- Verify the updates to the API types and factories match the orange highlighted changes in the doc attached to the internal ticket
- Perform the action items for a subnet in the Subnets Table
- Assign linodes to subnets via the drawer
- Unassign linodes via the drawer
- Linode Configs - add/edit configs
General check of VPC related flows not mentioned above:
-
Create VPC
-
Edit/Delete VPC
-
create subnets in already existing vpc
-
edit/delete subnets
-
Create linode with VPC
-
yarn test VPC (note: there seems to be an unrelated issue with a VPCDetail test regarding VPC description length, looking into it)
- FWIW, these tests all passed consistently for me and I didn't see any flake.
-
yarn test LinodeEntityDetail
-
All VPC integration tests, test config-related integration tests
- Dajahi's on top of this one (edit: wait, that was the unit test), but here's what I saw when running these tests locally:
- Failure on
vpc-details-page.spec.ts
: `
can delete a subnet from the VPC details page:
CypressError: Timed out retrying after 80050ms: `cy.click()` failed because this element:
<li class="MuiButtonBase-root MuiMenuItem-root Mui-disabled MuiMenuItem-gutters Mui-disabled MuiMenuItem-root Mui-disabled MuiMenuItem-gutters css-1h8fx4b-MuiButtonBase-root-MuiMenuItem-root" tabindex="-1" role="menuitem" aria-disabled="true" data-qa-action-menu-item="Delete">...</li>
has CSS pointer-events: none
pointer-events: none` prevents user mouse interaction.
Fix this problem, or use {force: true} to disable error checking.
thanks Mariah, will look into the failing cypress test! |
@mjac0bs cypress test should be fixed now -- made sure that the mock subnet in the test has 0 linodes assigned to it from the start. The issue was due to the change at line 25 of this file, where every subnet created now automatically has 5 linodes assigned to it. We can only delete subnets with 0 assigned linodes. Thanks Dajahi and Mariah for catching -- should have double checked the cypress tests too! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue was due to the change at line 25 of this file, where every subnet created now automatically has 5 linodes assigned to it. We can only delete subnets with 0 assigned linodes
Thanks for the explanation, that makes sense!
Reran the vpc integration tests locally and all are passing.
Description 📝
This PR updates interface and subnet return object in the API package to make sure they match the updated API spec, and fixes any type errors that result from that.
Changes 🔄
List any change relevant to the reviewer.
Because these changes had to do with the subnet/interface return object, not the create payloads, there shouldn't be any validation package issues.
Preview 📷
There should be no visual changes.
How to test 🧪
Prerequisites
Verification steps
Verify that there are no regressions within the flows that these api changes affect:
Perform a general check of VPC related flows not mentioned above:
Additional tests
Test the following unit tests
yarn test VPC
yarn test LinodeEntityDetail
Test all VPC integration tests, test config-related integration tests
As an Author I have considered 🤔
Check all that apply