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: display archived column for runs and searches #9987

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

ashtonG
Copy link
Contributor

@ashtonG ashtonG commented Sep 25, 2024

Ticket

ET-304

Description

This adds the archived column to the columns api. It also updates the flat runs view to handle showing the archived state of runs and ensures the archived definition matches the show archived behavior.

Test Plan

When viewing the column list for the new experiment list, the searches view, and the runs view, the user should see the "archived" column in the general tab.

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 adds the archived column to the columns api. It also updates the
flat runs view to handle showing the archived state of runs and ensures
the archived definition matches the show archived behavior.
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

Attention: Patch coverage is 41.37931% with 17 lines in your changes missing coverage. Please review.

Project coverage is 54.51%. Comparing base (5c4be96) to head (8713dd9).
Report is 21 commits behind head on main.

Files with missing lines Patch % Lines
webui/react/src/pages/FlatRuns/columns.ts 25.00% 12 Missing ⚠️
master/internal/api_project.go 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9987      +/-   ##
==========================================
- Coverage   54.51%   54.51%   -0.01%     
==========================================
  Files        1256     1256              
  Lines      156695   156720      +25     
  Branches     3603     3605       +2     
==========================================
+ Hits        85426    85430       +4     
- Misses      71136    71157      +21     
  Partials      133      133              
Flag Coverage Δ
backend 45.14% <28.57%> (-0.02%) ⬇️
harness 72.74% <ø> (ø)
web 54.30% <45.45%> (-0.01%) ⬇️

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

Files with missing lines Coverage Δ
master/internal/api_runs.go 66.22% <100.00%> (+0.04%) ⬆️
webui/react/src/pages/FlatRuns/FlatRuns.tsx 11.14% <100.00%> (+0.36%) ⬆️
master/internal/api_project.go 38.38% <0.00%> (-0.29%) ⬇️
webui/react/src/pages/FlatRuns/columns.ts 18.45% <25.00%> (-0.11%) ⬇️

... and 6 files with indirect coverage changes

@ashtonG ashtonG requested review from AmanuelAaron and removed request for amandavialva01 September 25, 2024 14:39
Copy link

netlify bot commented Sep 25, 2024

Deploy Preview for determined-ui ready!

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

@AmanuelAaron AmanuelAaron left a comment

Choose a reason for hiding this comment

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

Backend LGTM

Copy link
Contributor

@EmilyBonar EmilyBonar left a comment

Choose a reason for hiding this comment

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

Web side of things looks good. Backend seems fine.

Column: "archived",
DisplayName: "Archived",
Location: projectv1.LocationType_LOCATION_TYPE_RUN,
Type: projectv1.ColumnType_COLUMN_TYPE_UNSPECIFIED, // no boolean type
Copy link
Contributor

Choose a reason for hiding this comment

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

q: would it be possible to add a boolean type in this pr, or is that out of scope?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's handle it separately because parentArchived in runs + metadata is also affected by that change.

@@ -60,9 +61,9 @@ const EXCLUDED_SEARCH_DEFAULT_COLUMNS: RunColumn[] = [

export type RunColumn = (typeof runColumns)[number];

export const defaultRunColumns: RunColumn[] = [...runColumns];
export const defaultRunColumns: RunColumn[] = runColumns.slice(0, -1);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: might be worth explicitly filtering out "archived" to avoid issues if the array gets reordered

@ashtonG ashtonG enabled auto-merge (squash) October 1, 2024 19:38
@ashtonG ashtonG disabled auto-merge October 1, 2024 19:38
@ashtonG ashtonG merged commit 63d728c into main Oct 1, 2024
81 of 94 checks passed
@ashtonG ashtonG deleted the chore/ET-304/show-archived-column branch October 1, 2024 19:39
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