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 #9548

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

thiagodallacqua-hpe
Copy link
Contributor

@thiagodallacqua-hpe thiagodallacqua-hpe commented Jun 20, 2024

Ticket: ET-309

Description

Add the selection label to the flat runs table.

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.

Copy link

netlify bot commented Jun 20, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit f97962b
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/667f072a2efdb50008aaffd9
😎 Deploy Preview https://deploy-preview-9548--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
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.

formatting and linting code is missing

webui/react/src/pages/FlatRuns/FlatRuns.tsx Outdated Show resolved Hide resolved
webui/react/src/pages/FlatRuns/FlatRuns.tsx Outdated Show resolved Hide resolved
Copy link

codecov bot commented Jun 24, 2024

Codecov Report

Attention: Patch coverage is 0% with 30 lines in your changes missing coverage. Please review.

Project coverage is 46.27%. Comparing base (875e326) to head (f97962b).

❗ There is a different number of reports uploaded between BASE (875e326) and HEAD (f97962b). Click for more details.

HEAD has 19 uploads less than BASE
Flag BASE (875e326) HEAD (f97962b)
harness 18 0
web 2 1
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9548      +/-   ##
==========================================
- Coverage   51.36%   46.27%   -5.09%     
==========================================
  Files        1252      929     -323     
  Lines      152174   123048   -29126     
  Branches     3024     3024              
==========================================
- Hits        78159    56941   -21218     
+ Misses      73857    65949    -7908     
  Partials      158      158              
Flag Coverage Δ
harness ?
web 47.96% <0.00%> (-0.03%) ⬇️

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

Files Coverage Δ
webui/react/src/pages/FlatRuns/FlatRuns.tsx 10.83% <0.00%> (-0.30%) ⬇️

... and 338 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.

its getting close

webui/react/src/pages/FlatRuns/FlatRuns.tsx Outdated Show resolved Hide resolved
@@ -986,6 +1015,11 @@ const FlatRuns: React.FC<Props> = ({ projectId, searchId }) => {
rowHeight={globalSettings.rowHeight}
onRowHeightChange={onRowHeightChange}
/>
{!isMobile && (
<span className={css.runSelection} data-test="runSelection">
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add test cases?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there's a separate ticket for adding test cases for this file...

Copy link
Contributor

Choose a reason for hiding this comment

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

i think tests need to be in the same PR. AFAIK, that's what we agreed in the meeting for the reliability

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.

can we add tests? (80% or more code cov)

const totalCount = `${totalExperiments.toLocaleString()} ${pluralizer(
totalExperiments,
'run',
'runs',
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: i think we can remove the 3rd arg

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.

None yet

2 participants