-
Notifications
You must be signed in to change notification settings - Fork 354
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: Bulk Action bug #9255
fix: Bulk Action bug #9255
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9255 +/- ##
==========================================
+ Coverage 44.66% 44.68% +0.02%
==========================================
Files 1273 1273
Lines 155822 155830 +8
Branches 2439 2438 -1
==========================================
+ Hits 69591 69629 +38
+ Misses 85992 85962 -30
Partials 239 239
Flags with carried forward coverage won't be shown. Click here to find out more.
|
✅ 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.
The ticket says
Disable Infinite Scrolls (+ Remove from experiment view options & user preferences)
i can still enable infinite scroll.
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 working good. few questions
@johnkim-det when filter is applied, should we reset selection?
cc: @corban-beaird
Screen.Recording.2024-04-26.at.1.39.41.PM.mov
qq:
BulkAction requests to include the relevant project id
where do we supposed to see the projectId? i didnt see it in archive API
We're leaving this out as a requirement this is handled by exhaustively listing out the experiment ids. @johnkim-det So yes, we want to include the project_id, sorry for any confusion! |
@MikhailKardash The issue I'm seeing is that the The timeout failures should now be resolved, the batch kill request had not been correctly adjusted originally; it should be now. |
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 returning infinite scroll on the roadmap? if not, i'd rather us remove the dead code instead of having to work around it indefinitely.
my understanding is that infinite scroll should be disabled for now, but ideally want to bring it back if we can find a solution that works well with row selection. I can create a ticket for that so it's captured and we make sure to have that discussion. |
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.
Still reviewing, but leaving some comments here to get convo started to hopefully move the PR along faster.
Co-authored-by: Max Russell <max.russell@hpe.com>
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @corban-beaird on file. In order for us to review and merge your code, please start the CLA process at https://determined.ai/cla. After we approve your CLA, we will update the contributors list (private) and comment |
@cla-bot[bot] check |
The cla-bot has been summoned, and re-checked this pull request! |
selection.rows, | ||
users, | ||
]); | ||
|
||
const getHeaderMenuItems = (columnId: string, colIdx: number): MenuItem[] => { | ||
if (columnId === MULTISELECT) { | ||
const items: MenuItem[] = [ | ||
selection.rows.length > 0 | ||
settings.selection.type === 'ONLY_IN' && settings.selection.selections.length > 0 |
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.
settings.selection.type === 'ONLY_IN' && settings.selection.selections.length > 0 | |
settings.selection.type === 'ALL_EXCEPT' || settings.selection.selections.length > 0 |
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.
fixed
const allSelectedExperimentIds = useMemo(() => { | ||
return settings.selection.type === 'ONLY_IN' ? settings.selection.selections : []; | ||
}, [settings.selection]); |
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.
move this up to be a dependency of loadedSelectedExperimentIds
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.
fixed
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.
Backend portion LGTM
const fetchExperimentsByIds = useCallback(async (selectedIds: number[]) => { | ||
const CHUNK_SIZE = 80; // match largest pageSizeOption used for Pagination components | ||
const chunkedExperimentIds = _.chunk(selectedIds, CHUNK_SIZE); | ||
const responses = await Promise.all( |
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.
missing try catch
Ticket
ET-237
Description
Removes boolean
selectAll
and dependent logic from BulkAction/BatchAction handling.Test Plan
Checklist
docs/release-notes/
.See Release Note for details.