-
Notifications
You must be signed in to change notification settings - Fork 361
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-8492] - Create Linode Firewall warning not appearing #10838
fix: [M3-8492] - Create Linode Firewall warning not appearing #10838
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.
Use undefined
instead of -1
when clearing the firewall field.
<Button buttonType="outlined" onClick={onOpenAPIAwareness}> | ||
<Button | ||
buttonType="outlined" | ||
disabled={disableSubmitButton} | ||
onClick={onOpenAPIAwareness} | ||
> |
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.
This matches the behavior from create v1.
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.
useEffect(() => { | ||
if (isNotNullOrUndefined(watchFirewall)) { | ||
clearErrors('firewallOverride'); | ||
} | ||
}, [clearErrors, watchFirewall]); |
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 meant to delete this useEffect
in an earlier PR.
checkedFirewallAuthorizaton={ | ||
this.state.checkedFirewallAuthorization | ||
} |
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.
checkedFirewallAuthorization
is now passed on this line.
checkedFirewallAuthorizaton: boolean; | ||
checkedFirewallAuthorization: boolean; |
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.
Typo:
checkedFirewallAuthorization
^
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.
<Button buttonType="outlined" onClick={onOpenAPIAwareness}> | ||
<Button | ||
buttonType="outlined" | ||
disabled={disableSubmitButton} | ||
onClick={onOpenAPIAwareness} | ||
> |
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.
Coverage Report: ✅ |
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.
Not seeing any regressions ✅
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.
Description 📝
Fixes a bug causing the Firewall warning to not appear after the user assigns and then clears the firewall select during the create flow.
Changes 🔄
firewall_id
interface inCreateLinodePayload
to not accept null values (i.e.,number | undefined
)SelectFirewallPanel
and associated types in Create v1 to useundefined
instead of-1
when the firewall field is cleareduseEffect
Target release date 🗓️
9/3
Preview 📷
Screen.Recording.2024-08-26.at.4.16.35.PM.mov
Screen.Recording.2024-08-26.at.4.35.26.PM.mov
Screen.Recording.2024-08-26.at.4.20.41.PM.mov
Screen.Recording.2024-08-26.at.4.22.39.PM.mov
How to test 🧪
Prerequisites
Enable Secure VM notices by adding
secure_vm_notices: 'always'
in the preference editor.Reproduction steps
Verification steps