-
Notifications
You must be signed in to change notification settings - Fork 390
upcoming: [M3-9512] - Update types and validation for VPC subnet #11896
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-9512] - Update types and validation for VPC subnet #11896
Conversation
| }); | ||
|
|
||
| // @TODO VPC: Delete this when IPv6 is in GA | ||
| export const createSubnetSchemaIPv4 = object({ |
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.
I separated createSubnetSchema into createSubnetSchemaIPv4 and createSubnetSchemaWithIPv6 for now as to not effect how subnets currently work with ipv4.
- If a customer does not have access to ipv6, we don't want to show the
IP_EITHER_BOTH_NOT_NEITHERmessage - If a customer has access to ipv6, we want to show the
IP_EITHER_BOTH_NOT_NEITHERmessage instead ofTEMPORARY_IPV4_REQUIRED_MESSAGE
We'll need feature flag logic to determine which Schema to use which we can do when implementing ipv6 logic to the subnet flow
packages/api-v4/.changeset/pr-11896-upcoming-features-1742491246746.md
Outdated
Show resolved
Hide resolved
packages/validation/.changeset/pr-11896-upcoming-features-1742491352504.md
Outdated
Show resolved
Hide resolved
mjac0bs
left a comment
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.
Updates to api-v4 look consistent with the API spec and the changes to separate out the schemas makes sense.
Thanks Hana 🚢
Cloud Manager UI test results🔺 1 failing test on test run #6 ↗︎
Details
TroubleshootingUse this command to re-run the failing tests: pnpm cy:run -s "cypress/e2e/core/linodes/linode-config.spec.ts" |
|||||||||||||||||
Description 📝
Update types and validation for VPC Subnet
Changes 🔄
ipv6type forCreateSubnetPayloadcreateSubnetSchemaintocreateSubnetSchemaIPv4andcreateSubnetSchemaWithIPv6vpcsValidateIPipv6 subnetschema validation invpcs.schema.tsHow to test 🧪
Verification steps
Cross-reference VPC IPv6 API spec (linked in parent ticket) and updated types for:
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 ✅