-
Notifications
You must be signed in to change notification settings - Fork 367
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
fix: [M3-8196] - Fix Linode Edit Config warning message when initially selecting a VPC as the primary interface #11424
Conversation
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.
@@ -1004,7 +1004,7 @@ export const LinodeConfigDialog = (props: Props) => { | |||
disabled={isReadOnly} | |||
label="Primary Interface (Default Route)" | |||
options={getPrimaryInterfaceOptions(values.interfaces)} | |||
value={primaryInterfaceOptions[primaryInterfaceIndex ?? 0]} |
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.
Users would see eth0
initially selected as the primary interface and be confused why the warning notice for 'selecting VPC as the primary interface' displays when they set eth0
to VPC. However, for the Edit Config flow, the notice was displayed bc primaryInterfaceIndex
starts out as undefined, and stays undefined if there is no existing primary interface (lines 505-511).
(alternatively, could instead have an else case for lines 505-511 inside that useEffect --
if (indexOfExistingPrimaryInterface !== -1) {
setPrimaryInterfaceIndex(indexOfExistingPrimaryInterface);
} else {
setPrimaryInterfaceIndex(0);
}
…lecting a VPC as the primary interface
ad9b550
to
8837730
Compare
@coliu-akamai I don't know if this is 100% correct but I think configs with an empty interfaces array just implies that a default public eth0 interface will be used by the Linode |
Coverage Report: ✅ |
Cloud Manager UI test results🎉 466 passing tests on test run #5 ↗︎
|
Cloud Manager E2E Run #6979
Run Properties:
|
Project |
Cloud Manager E2E
|
Branch Review |
develop
|
Run status |
Failed #6979
|
Run duration | 29m 53s |
Commit |
d99b334d20: fix: [M3-8196] - Fix Linode Edit Config warning message when initially selecting...
|
Committer | Connie Liu |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
2
|
Flaky |
2
|
Pending |
2
|
Skipped |
0
|
Passing |
464
|
View all changes introduced in this branch ↗︎ |
Tests for review
rebuild-linode.spec.ts • 1 failed test
Test | Artifacts | |
---|---|---|
rebuild linode > rebuilds a linode from Account StackScript |
Screenshots
Video
|
linode-config.spec.ts • 1 failed test
Test | Artifacts | |
---|---|---|
Linode Config management > End-to-End > Clones a config |
Screenshots
Video
|
linodes/search-linodes.spec.ts • 1 flaky test
Test | Artifacts | |
---|---|---|
Search Linodes > create a linode and make sure it shows up in the table and is searchable in main search tool |
Screenshots
Video
|
vpc/vpc-linodes-update.spec.ts • 1 flaky test
Test | Artifacts | |
---|---|---|
VPC assign/unassign flows > can unassign Linode(s) from a VPC |
Screenshots
Video
|
…y selecting a VPC as the primary interface (linode#11424) * set initial primaryInterfaceIndex to 0 * extra space oops * some type cleanup * Added changeset: Linode Edit Config warning message when initially selecting a VPC as the primary interface
Description 📝
Changes 🔄
Target release date 🗓️
next release - 1/14?
Preview 📷
How to test 🧪
With a Linode not assigned to a VPC,
Reproduction steps
Verification steps
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 ✅