Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jun 2, 2025

What do these changes do?

  • Enh: Propagate sorting
  • Fix: Update osparc credits
  • Fix: Only editors can change the template type

Sorting

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz added this to the Bazinga! milestone Jun 2, 2025
@odeimaiz odeimaiz self-assigned this Jun 2, 2025
@odeimaiz odeimaiz added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels Jun 2, 2025
@odeimaiz odeimaiz changed the title 🎨 [Frontend] Runs and Tasks pagination 🎨 [Frontend] Runs and Tasks pagination and sorting Jun 2, 2025
@odeimaiz odeimaiz changed the title 🎨 [Frontend] Runs and Tasks pagination and sorting 🎨 [Frontend] Runs and Tasks sorting Jun 2, 2025
@odeimaiz odeimaiz changed the title 🎨 [Frontend] Runs and Tasks sorting 🎨🐛 [Frontend] Runs and Tasks sorting Jun 2, 2025
@odeimaiz odeimaiz marked this pull request as ready for review June 2, 2025 13:48
@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label Jun 2, 2025
@odeimaiz
Copy link
Member Author

odeimaiz commented Jun 2, 2025

@Mergifyio queue

@mergify
Copy link
Contributor

mergify bot commented Jun 2, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 8df1e20

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 PR enables server-side sorting for runs and subruns tables, adjusts credit handling for subjobs, and tightens template editing permissions.

  • Extend fetchSubJobs to accept an orderBy parameter and propagate it through table models and API endpoints
  • Replace static sortable flags with sortableMap in column definitions and override sortByColumn
  • Invert osparcCredits sign on subjobs and require write access plus tester permission for template type edits

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
services/static-webserver/client/source/class/osparc/store/Jobs.js Added orderBy parameter to fetchSubJobs
services/static-webserver/client/source/class/osparc/jobs/SubRunsTableModel.js Introduced orderBy property and override of sortByColumn
services/static-webserver/client/source/class/osparc/jobs/SubRunsTable.js Added sortableMap for the Started column
services/static-webserver/client/source/class/osparc/jobs/RunsTableModel.js Switched to sortableMap usage and added sortByColumn override
services/static-webserver/client/source/class/osparc/jobs/RunsTable.js Replaced sortable flags with sortableMap in column config
services/static-webserver/client/source/class/osparc/info/StudyLarge.js Updated template edit check to require write permission
services/static-webserver/client/source/class/osparc/data/SubJob.js Inverted osparcCredits sign when parsing
services/static-webserver/client/source/class/osparc/data/Resources.js Parameterized order_by in API endpoint URLs
Comments suppressed due to low confidence (2)

services/static-webserver/client/source/class/osparc/jobs/SubRunsTable.js:93

  • [nitpick] If sorting by the 'Ended' timestamp should be supported, add a sortableMap: "ended_at" to the END column definition.
width: 130,

services/static-webserver/client/source/class/osparc/jobs/RunsTable.js:95

  • [nitpick] The Project column no longer has a sortableMap; if sorting by project name is needed, consider adding a sortableMap property.
width: 150,

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 2, 2025

@odeimaiz odeimaiz requested a review from pcrespov June 2, 2025 15:34
@mergify mergify bot merged commit 8df1e20 into ITISFoundation:master Jun 3, 2025
59 checks passed
@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.

3 participants