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: fix default id search for runs #9988

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

ashtonG
Copy link
Contributor

@ashtonG ashtonG commented Sep 25, 2024

Ticket

ET-811

Description

this fixes an issue where the default search field for global run id would not work properly when interacting with the filter form. the issue is compound:

  1. we defaulted new form fields to the id column of the experiment location, so when searching runs the column was invalid

  2. the form select uses the column name to determine what copy to show in the select label, so the copy looked like it was using the global run id column when it wasn't.

we fix this by specifying the location of all new children in the form field.

Test Plan

  1. on the runs page, open the filters view and reset the view by hitting "clear filters".

  2. the filter view should have closed. open it back up and update the filter value to match a run id that's currently in the view

  3. the run should show up.

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

this fixes an issue where the default search field for global run id
would not work properly when interacting with the filter form. the issue
is compound:
1) we defaulted new form fields to the `id` column of the experiment
location, so when searching runs the column was invalid
2) the form select uses the column name to determine what copy to show
in the select label, so the copy looked like it was using the global run
id column when it wasn't.

we fix this by specifying the location of all new children in
the form field.
@ashtonG ashtonG requested a review from a team as a code owner September 25, 2024 14:46
@cla-bot cla-bot bot added the cla-signed label Sep 25, 2024
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 50.47%. Comparing base (cf9bdc8) to head (342d3c9).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
...c/components/FilterForm/components/FilterField.tsx 20.00% 4 Missing ⚠️
...bui/react/src/pages/F_ExpList/F_ExperimentList.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9988      +/-   ##
==========================================
- Coverage   54.53%   50.47%   -4.06%     
==========================================
  Files        1257      948     -309     
  Lines      156935   128353   -28582     
  Branches     3614     3615       +1     
==========================================
- Hits        85578    64785   -20793     
+ Misses      71224    63435    -7789     
  Partials      133      133              
Flag Coverage Δ
harness ?
web 54.35% <75.00%> (+<0.01%) ⬆️

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

Files with missing lines Coverage Δ
...omponents/FilterForm/components/FilterFormStore.ts 91.42% <100.00%> (+0.25%) ⬆️
webui/react/src/components/Searches/Searches.tsx 57.01% <100.00%> (ø)
webui/react/src/pages/FlatRuns/FlatRuns.tsx 10.76% <100.00%> (ø)
...bui/react/src/pages/F_ExpList/F_ExperimentList.tsx 0.00% <0.00%> (ø)
...c/components/FilterForm/components/FilterField.tsx 57.65% <20.00%> (-0.48%) ⬇️

... and 309 files with indirect coverage changes

Copy link

netlify bot commented Sep 25, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit 342d3c9
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/66f422582f380d00089f4585
😎 Deploy Preview https://deploy-preview-9988--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.

lgtm

@ashtonG ashtonG added the to-cherry-pick Pull requests that need to be cherry-picked into the current release label Sep 25, 2024
@ashtonG ashtonG merged commit e92c474 into main Sep 25, 2024
94 of 106 checks passed
@ashtonG ashtonG deleted the fix/ET-811/filter-form-default-location branch September 25, 2024 16:26
github-actions bot pushed a commit that referenced this pull request Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed to-cherry-pick Pull requests that need to be cherry-picked into the current release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants