-
Notifications
You must be signed in to change notification settings - Fork 32
🎨🐛 [Frontend] Runs and Tasks sorting #7790
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
🎨🐛 [Frontend] Runs and Tasks sorting #7790
Conversation
…rc-simcore into feature/pagination-buttons
|
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 8df1e20 |
There was a problem hiding this 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
fetchSubJobsto accept anorderByparameter and propagate it through table models and API endpoints - Replace static sortable flags with
sortableMapin column definitions and overridesortByColumn - Invert
osparcCreditssign 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 asortableMapproperty.
width: 150,
services/static-webserver/client/source/class/osparc/jobs/SubRunsTableModel.js
Show resolved
Hide resolved
|



What do these changes do?
Related issue/s
How to test
Dev-ops