Skip to content
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 selection label to FlatRuns page (ET-309) #9670

Merged
merged 6 commits into from
Jul 17, 2024
Merged

Conversation

johnkim-det
Copy link
Contributor

Ticket: ET-309

Description

Add the selection label to the flat runs table.

Also includes fix for bug with "Select all" action

Test Plan

  • Enable the Flat runs feature
  • go to a runs table
    • there should be a label with the total number of runs
  • make a selection
    • the label should be updated accordingly

Screenshot 2024-06-20 at 15 48 22

Screenshot 2024-06-20 at 15 48 12

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

@johnkim-det johnkim-det requested review from a team as code owners July 17, 2024 19:18
@cla-bot cla-bot bot added the cla-signed label Jul 17, 2024
Copy link

netlify bot commented Jul 17, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit 89b6d5b
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/66983ac27303eb0008d2bc9b
😎 Deploy Preview https://deploy-preview-9670--determined-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Jul 17, 2024

Codecov Report

Attention: Patch coverage is 89.13043% with 10 lines in your changes missing coverage. Please review.

Project coverage is 48.72%. Comparing base (4b3a100) to head (89b6d5b).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9670      +/-   ##
==========================================
- Coverage   53.32%   48.72%   -4.61%     
==========================================
  Files        1254      932     -322     
  Lines      152657   123488   -29169     
  Branches     3244     3246       +2     
==========================================
- Hits        81403    60166   -21237     
+ Misses      71102    63170    -7932     
  Partials      152      152              
Flag Coverage Δ
harness ?
web 51.58% <89.13%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
webui/react/src/components/LoadableCount.tsx 100.00% <100.00%> (ø)
webui/react/src/components/TableActionBar.tsx 72.01% <100.00%> (-0.61%) ⬇️
...ebui/react/src/pages/FlatRuns/FlatRuns.settings.ts 95.45% <85.71%> (-4.55%) ⬇️
webui/react/src/pages/FlatRuns/FlatRuns.tsx 10.59% <12.50%> (+0.03%) ⬆️

... and 323 files with indirect coverage changes

Copy link
Contributor

@keita-determined keita-determined left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few comments, overall LGTM

Comment on lines 238 to 241
const allSelectedRunIds = useMemo(() => {
return settings.selection.type === 'ONLY_IN' ? settings.selection.selections : [];
}, [settings.selection]);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be replaced with selectedRunIdSet

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its totally optional, but do you think its a good idea to handle the edge case when selectedCount > total?

@johnkim-det johnkim-det requested a review from JComins000 July 17, 2024 21:56
@johnkim-det johnkim-det merged commit e956f28 into main Jul 17, 2024
81 of 94 checks passed
@johnkim-det johnkim-det deleted the ET-309 branch July 17, 2024 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants