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

fix: show - for empty data in searches table [ET-749] #9963

Merged
merged 4 commits into from
Sep 23, 2024

Conversation

EmilyBonar
Copy link
Contributor

@EmilyBonar EmilyBonar commented Sep 19, 2024

Ticket

ET-749

Description

Test Plan

Make sure Flat Runs feature flag is on. Go into any project with a significant number of experiments (Uncategorized is a good default choice). Perform the following steps on both the Runs and Searches tabs.

  • Turn on all columns using column picker
  • Check that in every cell where no data is available, there is a - present

Checklist

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

@EmilyBonar EmilyBonar requested a review from a team as a code owner September 19, 2024 19:25
@cla-bot cla-bot bot added the cla-signed label Sep 19, 2024
Copy link

netlify bot commented Sep 19, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit 7c38e9e
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/66f1bb9c7df9d400081ad7e3
😎 Deploy Preview https://deploy-preview-9963--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 Sep 19, 2024

Codecov Report

Attention: Patch coverage is 14.35185% with 185 lines in your changes missing coverage. Please review.

Project coverage is 50.46%. Comparing base (0db2e3b) to head (7c38e9e).
Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
webui/react/src/pages/FlatRuns/columns.ts 1.60% 123 Missing ⚠️
webui/react/src/components/Searches/columns.ts 13.88% 62 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9963      +/-   ##
==========================================
- Coverage   54.46%   50.46%   -4.00%     
==========================================
  Files        1252      944     -308     
  Lines      156703   128071   -28632     
  Branches     3600     3602       +2     
==========================================
- Hits        85341    64627   -20714     
+ Misses      71229    63311    -7918     
  Partials      133      133              
Flag Coverage Δ
harness ?
web 54.31% <14.35%> (+0.04%) ⬆️

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

Files with missing lines Coverage Δ
.../react/src/components/ExperimentActionDropdown.tsx 79.79% <100.00%> (ø)
webui/react/src/utils/table.ts 100.00% <100.00%> (ø)
webui/react/src/components/Searches/columns.ts 51.88% <13.88%> (+1.47%) ⬆️
webui/react/src/pages/FlatRuns/columns.ts 18.56% <1.60%> (-0.42%) ⬇️

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

added some comments, otherwise lgtm

webui/react/src/components/Searches/columns.ts Outdated Show resolved Hide resolved
webui/react/src/components/Searches/columns.ts Outdated Show resolved Hide resolved
@keita-determined
Copy link
Contributor

can we update the test plan for the release party? and e2e ci failed

@EmilyBonar
Copy link
Contributor Author

Requesting re-review due to significant changes. Open for feedback on argument/variable names, I was having trouble thinking of ones that were descriptive.

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.

added one comment, otherwise lgtm

cell: (datum: T) => GridCell,
onlyUndefined = true,
): GridCell => {
if ((onlyUndefined && param === undefined) || (!onlyUndefined && !param)) return EMPTY_CELL;
Copy link
Contributor

Choose a reason for hiding this comment

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

this works with the current columns, but if we wanna show EMPTY_CELL for special cases, this wouldnt work. For example, show - when data is EMPTY or -1 etc. i feel like its safer not to use handleEmptyCell. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think that seems unlikely, but in that case we could either update handleEmptyCell to deal with it or handle the special case when we call it, like handleEmptyCell(variable !== 'EMPTY' ? variable : undefined, ...

Copy link
Contributor

Choose a reason for hiding this comment

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

got it

@EmilyBonar EmilyBonar enabled auto-merge (squash) September 23, 2024 18:39
@EmilyBonar EmilyBonar merged commit 31d9573 into main Sep 23, 2024
81 of 94 checks passed
@EmilyBonar EmilyBonar deleted the emilybonar/searches-dash-empty branch September 23, 2024 19:27
jesse-amano-hpe added a commit that referenced this pull request Sep 24, 2024
jesse-amano-hpe added a commit that referenced this pull request Sep 24, 2024
For 0.37.0 release only. Resolves a missing dependency from a branch that wasn't cherry picked for the release.
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