-
Notifications
You must be signed in to change notification settings - Fork 13
Affinity group add/remove on instance settings tab #2789
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
onDismiss() | ||
queryClient.invalidateEndpoint('antiAffinityGroupMemberList') | ||
queryClient.invalidateEndpoint('antiAffinityGroupView') | ||
queryClient.invalidateEndpoint('instanceAntiAffinityGroupList') |
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 kind of annoying — any time group memberships change, we have to clear cache on both endpoints.
const nonMemberGroups = useMemo( | ||
() => R.differenceWith(allGroups.items, memberGroups.items, (a, b) => a.id === b.id), | ||
[memberGroups, allGroups] | ||
) |
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.
how cool is differenceWith
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.
ah, nice
const actions = makeActions(row.original) | ||
const id = typeof row.original.id === 'string' ? row.original.id : null | ||
return <RowActions id={id} actions={actions} /> | ||
return <RowActions id={id} actions={actions} copyIdLabel={copyIdLabel} /> |
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.
nice
A little better. I thought about changing the button to ![]() |
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.
Solid. Added some "disable the ADD button" logic in #2792, but this looks good.
oxidecomputer/console@3e5a0a1...d906190 * [d9061901](oxidecomputer/console@d9061901) oxidecomputer/console#2795 * [8e509d99](oxidecomputer/console@8e509d99) oxidecomputer/console#2793 * [2ef6e7a1](oxidecomputer/console@2ef6e7a1) oxidecomputer/console#2790 * [04aceb5a](oxidecomputer/console@04aceb5a) oxidecomputer/console#2789 * [1ecc5690](oxidecomputer/console@1ecc5690) oxidecomputer/console#2791
oxidecomputer/console@3e5a0a1...3db0150 * [3db0150d](oxidecomputer/console@3db0150d) oxidecomputer/console#2796 * [d9061901](oxidecomputer/console@d9061901) oxidecomputer/console#2795 * [8e509d99](oxidecomputer/console@8e509d99) oxidecomputer/console#2793 * [2ef6e7a1](oxidecomputer/console@2ef6e7a1) oxidecomputer/console#2790 * [04aceb5a](oxidecomputer/console@04aceb5a) oxidecomputer/console#2789 * [1ecc5690](oxidecomputer/console@1ecc5690) oxidecomputer/console#2791
oxidecomputer/console@3e5a0a1...3db0150 * [3db0150d](oxidecomputer/console@3db0150d) oxidecomputer/console#2796 * [d9061901](oxidecomputer/console@d9061901) oxidecomputer/console#2795 * [8e509d99](oxidecomputer/console@8e509d99) oxidecomputer/console#2793 * [2ef6e7a1](oxidecomputer/console@2ef6e7a1) oxidecomputer/console#2790 * [04aceb5a](oxidecomputer/console@04aceb5a) oxidecomputer/console#2789 * [1ecc5690](oxidecomputer/console@1ecc5690) oxidecomputer/console#2791
Closes #2771
Feels a little
maybe needs one fewer "anti-affinity".