determined-ai / determined

Determined is an open-source machine learning platform that simplifies distributed training, hyperparameter tuning, experiment tracking, and resource management. Works with PyTorch and TensorFlow.
https://determined.ai
Apache License 2.0
2.93k stars 347 forks source link

fix: add numRuns to GetProjectsByUserActivity #9581

Closed AmanuelAaron closed 2 weeks ago

AmanuelAaron commented 3 weeks ago

Ticket

ET-313

Description

Adding the number of runs in a project for the "recently viewed projects" part of the dashboard

Test Plan

Go to the dashboard and look at the /activity call in the Network Tab. Check to see if numRuns is returning the correct amount of runs.

Checklist

netlify[bot] commented 3 weeks ago

Deploy Preview for determined-ui canceled.

Name Link
Latest commit 4d3510ad4f00a88174ecc5d64cdc15a5598aa87e
Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/667d8c9d5e0b30000925cd21
codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 49.85%. Comparing base (038bfee) to head (4d3510a). Report is 4 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #9581 +/- ## ======================================= Coverage 49.84% 49.85% ======================================= Files 1247 1247 Lines 162293 162294 +1 Branches 2887 2887 ======================================= + Hits 80902 80907 +5 + Misses 81220 81216 -4 Partials 171 171 ``` | [Flag](https://app.codecov.io/gh/determined-ai/determined/pull/9581/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=determined-ai) | Coverage Δ | | |---|---|---| | [backend](https://app.codecov.io/gh/determined-ai/determined/pull/9581/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=determined-ai) | `43.96% <100.00%> (+<0.01%)` | :arrow_up: | | [harness](https://app.codecov.io/gh/determined-ai/determined/pull/9581/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=determined-ai) | `63.75% <ø> (ø)` | | | [web](https://app.codecov.io/gh/determined-ai/determined/pull/9581/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=determined-ai) | `46.22% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=determined-ai#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/determined-ai/determined/pull/9581?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=determined-ai) | Coverage Δ | | |---|---|---| | [master/internal/api\_project.go](https://app.codecov.io/gh/determined-ai/determined/pull/9581?src=pr&el=tree&filepath=master%2Finternal%2Fapi_project.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=determined-ai#diff-bWFzdGVyL2ludGVybmFsL2FwaV9wcm9qZWN0Lmdv) | `35.37% <100.00%> (+0.10%)` | :arrow_up: | ... and [5 files with indirect coverage changes](https://app.codecov.io/gh/determined-ai/determined/pull/9581/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=determined-ai)