feat: [M3-7031] - Add AGLB Create Service Target Drawer#9657
Conversation
abailly-akamai
left a comment
There was a problem hiding this comment.
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 |
abailly-akamai
left a comment
There was a problem hiding this comment.
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
abailly-akamai
left a comment
There was a problem hiding this comment.
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.
Should you also consider the fallback for an undefined secondary entity here?
There was a problem hiding this comment.
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.
I took note to follow up and see how the API will validate duplicate endpoints
jdamore-linode
left a comment
There was a problem hiding this comment.
Looks great @bnussman-akamai! Confirmed that the create service target drawer works as expected as much as possible with MSW enabled
mjac0bs
left a comment
There was a problem hiding this comment.
Drawer looked good! Let's just fix the typo in the algorithm options.
Also called out a few places where we have TODOs 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.
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.
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-targetsCreate Service Target