Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented May 22, 2025

What do these changes do?

This PR adds some text filtering to the computations/-/iterations/latest endpoint. The textfield filter is for now hidden, when the filtering in the backend is implemented, the line that hides it should be removed.

FilterRuns

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 marked this pull request as ready for review May 22, 2025 13:55
@odeimaiz odeimaiz requested a review from Copilot May 22, 2025 13:56
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 introduces a new fetchJobsLatest method supporting server-side filtering and wires it through the UI, replacing the old fetchJobsActive calls.

  • Renames and extends the Jobs store fetch method to accept filter parameters
  • Updates table model and buttons to use fetchJobsLatest with filters
  • Adds a placeholder (and temporary hide) for the filter field and extends the backend endpoint

Reviewed Changes

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

Show a summary per file
File Description
services/static-webserver/client/source/class/osparc/store/Jobs.js Renamed fetchJobsActive to fetchJobsLatest and added a filters parameter
services/static-webserver/client/source/class/osparc/jobs/RunsTableModel.js Updated to construct and pass filters to fetchJobsLatest; added apply handler to refresh on filter changes
services/static-webserver/client/source/class/osparc/jobs/RunsBrowser.js Set placeholder text on the filter field and temporarily hide it until backend is ready
services/static-webserver/client/source/class/osparc/jobs/JobsButton.js Switched initial job fetch to call the new fetchJobsLatest
services/static-webserver/client/source/class/osparc/desktop/MainPage.js Updated preload to use fetchJobsLatest instead of the old method
services/static-webserver/client/source/class/osparc/data/Resources.js Extended getPageLatest endpoint URL with a filters query parameter

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

  • its not very clear what kind of text i can add in this search bar. e.g. is it a title? do i have reserved words or key-value syntax e.g. state:open, can I use a pattern e.g. foo*? is it fuzzy search ?
  • Can I filter by column attribute? e.g. like
    image

@odeimaiz
Copy link
Member Author

  • its not very clear what kind of text i can add in this search bar. e.g. is it a title? do i have reserved words or key-value syntax e.g. state:open, can I use a pattern e.g. foo*? is it fuzzy search ?
  • Can I filter by column attribute? e.g. like
    image

The filter placeholder says "Filter by name or ID"...

We can later go fancy.

Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

👍

@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label May 23, 2025
@odeimaiz
Copy link
Member Author

@Mergifyio queue

@mergify
Copy link
Contributor

mergify bot commented May 23, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 14e0a66

@sonarqubecloud
Copy link

@mergify mergify bot merged commit 14e0a66 into ITISFoundation:master May 23, 2025
59 checks passed
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.

5 participants