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 Run columns to GetProjectColumns #9146

Merged
merged 47 commits into from
May 22, 2024
Merged

feat: Add Run columns to GetProjectColumns #9146

merged 47 commits into from
May 22, 2024

Conversation

AmanuelAaron
Copy link
Contributor

@AmanuelAaron AmanuelAaron commented Apr 10, 2024

Description

Add support for Run Table Columns in GetProjectColumns endpoint

Test Plan

integration tests should pass

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.

Ticket

ET-176

@cla-bot cla-bot bot added the cla-signed label Apr 10, 2024
Copy link

netlify bot commented Apr 10, 2024

Deploy Preview for determined-ui canceled.

Name Link
🔨 Latest commit 985eb54
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/664e2c0b5e3dd700087c8452

Copy link

codecov bot commented Apr 10, 2024

Codecov Report

Attention: Patch coverage is 48.89868% with 116 lines in your changes are missing coverage. Please review.

Project coverage is 48.59%. Comparing base (6ff8eb7) to head (985eb54).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #9146    +/-   ##
========================================
  Coverage   48.59%   48.59%            
========================================
  Files        1234     1234            
  Lines      158840   158992   +152     
  Branches     2779     2779            
========================================
+ Hits        77187    77267    +80     
- Misses      81478    81550    +72     
  Partials      175      175            
Flag Coverage Δ
backend 42.15% <48.19%> (+0.02%) ⬆️
harness 64.04% <80.00%> (+<0.01%) ⬆️
web 44.35% <ø> (ø)

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

Files Coverage Δ
master/internal/db/postgres_trial_metrics.go 91.53% <100.00%> (ø)
master/pkg/model/experiment.go 14.28% <ø> (ø)
harness/determined/common/api/bindings.py 40.22% <80.00%> (+0.02%) ⬆️
master/internal/api_runs.go 73.55% <81.48%> (-0.11%) ⬇️
master/internal/experiment/bulk_action.go 0.00% <0.00%> (ø)
master/internal/api_project.go 33.66% <63.44%> (+9.50%) ⬆️
master/internal/db/postgres_trial.go 63.10% <32.05%> (-4.34%) ⬇️

... and 5 files with indirect coverage changes

@AmanuelAaron AmanuelAaron marked this pull request as ready for review April 12, 2024 14:49
@AmanuelAaron AmanuelAaron requested a review from a team as a code owner April 12, 2024 14:49
@AmanuelAaron AmanuelAaron requested a review from a team as a code owner April 15, 2024 18:46
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.

Make sure you add the following columns:

  • experimentProgress
  • experimentName (move from getProjectColumnsById after rebase)
  • experimentId
  • isExpMultitrial
  • parentArchived

master/internal/api_project.go Outdated Show resolved Hide resolved
master/internal/api_project.go Outdated Show resolved Hide resolved
master/internal/api_project.go Outdated Show resolved Hide resolved
master/internal/api_project.go Show resolved Hide resolved
@EmilyBonar EmilyBonar dismissed their stale review April 22, 2024 20:10

Not relevant

MetricType string
}{}

if len(hyperparameters) > 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this len check for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We only want to do this query if the result query is not empty. Added a comment to clarify.

Copy link
Contributor

Choose a reason for hiding this comment

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

technically you could have a project without hyperparameters but have them have summary metrics

I think its a premature optimization

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed.

master/internal/api_project.go Outdated Show resolved Hide resolved
master/internal/api_project.go Outdated Show resolved Hide resolved
master/internal/api_project.go Outdated Show resolved Hide resolved
master/internal/api_runs.go Outdated Show resolved Hide resolved
master/internal/db/postgres_trial.go Outdated Show resolved Hide resolved
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.

The web side of things looks good

Copy link
Contributor

@NicholasBlaskey NicholasBlaskey left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -0,0 +1,42 @@
CREATE TABLE run_hparams (
Copy link
Contributor

Choose a reason for hiding this comment

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

we drop projects.hyperparameters and delete the associated code now that it is replaced by this?

Can do this in a follow up ticket if you want

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created a new ticket to remove this: ET-268

master/internal/api_project.go Outdated Show resolved Hide resolved
master/internal/api_project.go Outdated Show resolved Hide resolved
MetricType string
}{}

if len(hyperparameters) > 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

technically you could have a project without hyperparameters but have them have summary metrics

I think its a premature optimization

!!sD?.workspace.projectId,
),
test(
"Get Project Columns for Experiments Table",
Copy link
Contributor

Choose a reason for hiding this comment

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

is this the same endpoint as https://github.com/determined-ai/determined/blob/805f2f4ea5af73b2f141f33a7771a3c5e255e8d9/performance/src/api_performance_tests.ts#L196C44-L196C53?

is it going to slow down all the other performance tests while we fix it or has it been improved?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is effectively the same call. I removed it as only the performance for the new columns have been improved.

@AmanuelAaron AmanuelAaron merged commit 657286c into main May 22, 2024
82 of 98 checks passed
@AmanuelAaron AmanuelAaron deleted the project-columns branch May 22, 2024 20:30
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.

4 participants