-
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
feat: [M3-7031] - Add AGLB Create Service Target Drawer #9657
feat: [M3-7031] - Add AGLB Create Service Target Drawer #9657
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.
Forms looks and feels great!
Added a few comments for when we are revisiting. Also wasn't able to to filter/search results in the LinodeOrIp
component, which i dunno if to be expected or not. Self review would be appreciated for components that may not feature full functionality if so.
...es/manager/src/features/LoadBalancers/LoadBalancerDetail/ServiceTargets/LinodeOrIPSelect.tsx
Show resolved
Hide resolved
...es/manager/src/features/LoadBalancers/LoadBalancerDetail/ServiceTargets/LinodeOrIPSelect.tsx
Show resolved
Hide resolved
...es/manager/src/features/LoadBalancers/LoadBalancerDetail/ServiceTargets/LinodeOrIPSelect.tsx
Show resolved
Hide resolved
@bnussman can we also add test coverage for new components? |
@abailly-akamai Searching and filtering the |
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.
Looking great - added some more comments
...ges/manager/src/features/LoadBalancers/LoadBalancerDetail/Certificates/CertificateSelect.tsx
Show resolved
Hide resolved
...ges/manager/src/features/LoadBalancers/LoadBalancerDetail/ServiceTargets/AddEndpointForm.tsx
Show resolved
Hide resolved
.../features/LoadBalancers/LoadBalancerDetail/ServiceTargets/CreateServiceTargetDrawer.test.tsx
Outdated
Show resolved
Hide resolved
.../features/LoadBalancers/LoadBalancerDetail/ServiceTargets/CreateServiceTargetDrawer.test.tsx
Outdated
Show resolved
Hide resolved
...ges/manager/src/features/LoadBalancers/LoadBalancerDetail/ServiceTargets/AddEndpointForm.tsx
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.
Awesome work on this, well broken down and tested (some components covered by e2e as discussed i the comments)
Approving on second pass have not found any issue but left a couple comments to confirm some behaviours.
`A device has been removed from Firewall ${e.entity?.label ?? ''}.`, | ||
`A ${e.secondary_entity?.type} has been removed from Firewall ${ | ||
e.entity?.label ?? '' | ||
}.`, |
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.
Should you also consider the fallback for an undefined secondary entity here?
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.
Oops. I did not mean to commit this 😖 Going to revert. This work is covered by #9693
</Button> | ||
</> | ||
); | ||
}; |
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.
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 took note to follow up and see how the API will validate duplicate endpoints
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.
Looks great @bnussman-akamai! Confirmed that the create service target drawer works as expected as much as possible with MSW enabled
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.
Drawer looked good! Let's just fix the typo in the algorithm options.
Also called out a few places where we have TODO
s and based on our past team discussions, it would be great to include the project name (and ticket number if we have it).
...r/src/features/LoadBalancers/LoadBalancerDetail/ServiceTargets/CreateServiceTargetDrawer.tsx
Outdated
Show resolved
Hide resolved
...r/src/features/LoadBalancers/LoadBalancerDetail/ServiceTargets/CreateServiceTargetDrawer.tsx
Outdated
Show resolved
Hide resolved
...r/src/features/LoadBalancers/LoadBalancerDetail/ServiceTargets/CreateServiceTargetDrawer.tsx
Outdated
Show resolved
Hide resolved
...r/src/features/LoadBalancers/LoadBalancerDetail/ServiceTargets/CreateServiceTargetDrawer.tsx
Outdated
Show resolved
Hide resolved
...r/src/features/LoadBalancers/LoadBalancerDetail/ServiceTargets/CreateServiceTargetDrawer.tsx
Outdated
Show resolved
Hide resolved
...r/src/features/LoadBalancers/LoadBalancerDetail/ServiceTargets/CreateServiceTargetDrawer.tsx
Outdated
Show resolved
Hide resolved
...r/src/features/LoadBalancers/LoadBalancerDetail/ServiceTargets/CreateServiceTargetDrawer.tsx
Outdated
Show resolved
Hide resolved
...r/src/features/LoadBalancers/LoadBalancerDetail/ServiceTargets/CreateServiceTargetDrawer.tsx
Outdated
Show resolved
Hide resolved
...r/src/features/LoadBalancers/LoadBalancerDetail/ServiceTargets/CreateServiceTargetDrawer.tsx
Outdated
Show resolved
Hide resolved
Any follow up on this? I noticed the comment is about a week old and I was able to make the same observation just now. |
@@ -75,17 +77,13 @@ export const CertificateSelect = (props: Props) => { | |||
setInputValue(value); |
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.
Is there a specific reason why this logic is separated from the logic in the onChange
in line 84?
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 is because we need to track the inputValue
separately in state because we use it to API filter the certificates.
Regarding that other comment, that is just how the MSW and React Query work together. When we have a real API to test against, things should work!
Description 📝
Preview 📷
How to test 🧪
http://localhost:3000/loadbalancers/0/service-targets
Create Service Target