-
Notifications
You must be signed in to change notification settings - Fork 356
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: add the slots property to the props #8498
Conversation
✅ Deploy Preview for determined-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
mostly looks good, but couple of questions regarding poolname
being undefined for ResourcepoolDetail component
nodes={agents.filter(({ resourcePools }) => resourcePools.includes(poolname))} | ||
/> | ||
)} | ||
{!!topologyAgentPool.length && poolname && <Topology nodes={topologyAgentPool} />} |
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.
question: this looks better. I'm not too familiar here, but it's kind of odd that the ResourcepoolDetail.tsx
doesn't make poolname
required and is optional. Is there a case for the card to handle undefined
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.
I'm just following the type 😅 , I also think that it doesn't make much sense having it as undefined
...
string | undefined
8330514
to
7f9c64b
Compare
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.
LGTM! thanks for the updates
(cherry picked from commit a6ae0c7)
(cherry picked from commit a6ae0c7)
Description
Add the
slots
property as a fallback option for rendering the node/agents slots and added a check for empty array in the context of the current RP filtering.Test Plan
Topology
section being rendered.Commentary (optional)
Checklist
docs/release-notes/
.See Release Note for details.
Ticket