Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented May 22, 2025

What do these changes do?

As found by @mguidon, jobs submitted from Sim4Life Desktop are not accessible if they are not active, mainly because in the Activity Center we only show the active runs and also they do not have a Project card were one could access them from the Activity Overview.

This PR brings back the activeOnly checkbox to the Activity Center.

ShowNonActive

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this May 22, 2025
@odeimaiz odeimaiz added this to the Bazinga! milestone May 22, 2025
@odeimaiz odeimaiz added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels May 22, 2025
@odeimaiz odeimaiz changed the title ✨ [Frontend] Allow users access all latest runs ✨ [Frontend] Allow users access not-running latest runs May 22, 2025
@codecov
Copy link

codecov bot commented May 22, 2025

Codecov Report

Attention: Patch coverage is 28.57143% with 25 lines in your changes missing coverage. Please review.

Project coverage is 66.65%. Comparing base (9188df0) to head (d6a3233).
Report is 1 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (9188df0) and HEAD (d6a3233). Click for more details.

HEAD has 30 uploads less than BASE
Flag BASE (9188df0) HEAD (d6a3233)
unittests 31 1
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #7723       +/-   ##
===========================================
- Coverage   87.19%   66.65%   -20.54%     
===========================================
  Files        1786      707     -1079     
  Lines       69761    33299    -36462     
  Branches     1203      174     -1029     
===========================================
- Hits        60827    22197    -38630     
- Misses       8606    11044     +2438     
+ Partials      328       58      -270     
Flag Coverage Δ *Carryforward flag
integrationtests 64.52% <28.57%> (+0.12%) ⬆️ Carriedforward from 39c259e
unittests 76.84% <ø> (-9.56%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Components Coverage Δ
api 76.84% <ø> (ø)
pkg_aws_library ∅ <ø> (∅)
pkg_dask_task_models_library ∅ <ø> (∅)
pkg_models_library ∅ <ø> (∅)
pkg_notifications_library ∅ <ø> (∅)
pkg_postgres_database ∅ <ø> (∅)
pkg_service_integration ∅ <ø> (∅)
pkg_service_library ∅ <ø> (∅)
pkg_settings_library ∅ <ø> (∅)
pkg_simcore_sdk 76.89% <ø> (-8.18%) ⬇️
agent ∅ <ø> (∅)
api_server ∅ <ø> (∅)
autoscaling ∅ <ø> (∅)
catalog ∅ <ø> (∅)
clusters_keeper ∅ <ø> (∅)
dask_sidecar ∅ <ø> (∅)
datcore_adapter ∅ <ø> (∅)
director ∅ <ø> (∅)
director_v2 77.65% <0.00%> (-13.39%) ⬇️
dynamic_scheduler ∅ <ø> (∅)
dynamic_sidecar 88.83% <ø> (-1.36%) ⬇️
efs_guardian ∅ <ø> (∅)
invitations ∅ <ø> (∅)
payments ∅ <ø> (∅)
resource_usage_tracker ∅ <ø> (∅)
storage ∅ <ø> (∅)
webclient ∅ <ø> (∅)
webserver 58.68% <31.25%> (-27.00%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9188df0...d6a3233. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@odeimaiz odeimaiz marked this pull request as ready for review May 22, 2025 10:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request modifies the Activity Center to allow users to access not-running (inactive) jobs by reintroducing the activeOnly checkbox and propagating a new runningOnly parameter through job-related components.

  • Updated job fetching in osparc/store/Jobs.js to use a unified endpoint with a runningOnly filter.
  • Added a runningOnly property to RunsTableModel and updated binding/constructor logic in RunsTable and RunsBrowser for better filtering.
  • Adjusted ActivityOverview and API endpoint configuration to enable showing non-active job runs.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
osparc/store/Jobs.js Updated fetchJobsActive to include a runningOnly parameter and changed the endpoint to getPageLatest.
osparc/jobs/RunsTableModel.js Introduced a runningOnly property and updated job fetching functions to pass the filter value.
osparc/jobs/RunsTable.js Modified constructor and property bindings to include runningOnly, enabling proper filtering from the table.
osparc/jobs/RunsBrowser.js Added a running-only checkbox control and binding to the table model to toggle active-only filtering.
osparc/jobs/ActivityOverview.js Updated RunsTable instantiation to use runningOnly = false, allowing display of non-active runs.
osparc/data/Resources.js Adjusted API endpoint URL to include a runningOnly filter parameter for job run queries.
Comments suppressed due to low confidence (1)

services/static-webserver/client/source/class/osparc/data/Resources.js:355

  • Verify that the server-side endpoint for getPageLatest correctly handles the 'runningOnly' parameter, ensuring that the expected boolean value is processed appropriately.
url: statics.API + "/computations/-/iterations/latest?offset={offset}&limit={limit}&order_by=%7B%22field%22:%22submitted_at%22,%22direction%22:%22desc%22%7D&filter_only_running={runningOnly}"

@odeimaiz
Copy link
Member Author

@Mergifyio queue

@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label May 22, 2025
@mergify
Copy link
Contributor

mergify bot commented May 22, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 1a9b912

@sonarqubecloud
Copy link

Copy link
Member

@mguidon mguidon left a comment

Choose a reason for hiding this comment

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

Thanks!

@mergify mergify bot merged commit 1a9b912 into ITISFoundation:master May 22, 2025
59 checks passed
@odeimaiz odeimaiz deleted the feature/access-all-runs branch May 22, 2025 12:19
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Jun 6, 2025
92 tasks
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Aug 5, 2025
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖-automerge marks PR as ready to be merged for Mergify a:frontend issue affecting the front-end (area group) t:enhancement Improvement or request on an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants