Skip to content

Conversation

@minottic
Copy link
Member

@minottic minottic commented Oct 30, 2025

Description

This bug can be tried in the JOB view in the frontend, where the sorting has no effect. The cause is that the FE sends the fields of V3 to sort, but these have been renamed in the DB so the sorting has no effect. This PR introduces some pipelines that have the effect of mapping the v3 fields input by the client to the DB ones, at all levels, in fields, whereConditions and limits. IMO this logic should take place in all v3 endpoints. If so, it can be implemented in later PRs

It's opened agains #2320 as it reuses the jobv3v4 mapping. I will open against master once merged

Tests included

  • Included for each change/fix?
  • Passing?

Documentation

  • swagger documentation updated (required for API changes)
  • official documentation updated

official documentation info

@minottic minottic requested a review from a team as a code owner October 30, 2025 17:53
@minottic minottic force-pushed the fix_username branch 2 times, most recently from 6fc45e1 to 2cd152a Compare November 3, 2025 13:26
Copy link
Member

@omkar-ethz omkar-ethz left a comment

Choose a reason for hiding this comment

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

LGTM! minor comment/question

@minottic minottic force-pushed the v3_filter_pipe branch 2 times, most recently from c130723 to ec516aa Compare November 6, 2025 09:45
@minottic minottic force-pushed the fix_username branch 2 times, most recently from 1e3a4e6 to 1c814d8 Compare November 6, 2025 09:48
Fix return types and remove duplicated pipe

Add comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants