Skip to content

Conversation

yzlucas
Copy link
Collaborator

@yzlucas yzlucas commented Oct 3, 2025

Copy link

sonarqubecloud bot commented Oct 3, 2025

@yzlucas yzlucas changed the title Feature/wfprev 614 wfprev-614 add pagination to feature endpoint. make it capable to search by projectGuid Oct 3, 2025
Copy link
Collaborator

@sukhpalp sukhpalp left a comment

Choose a reason for hiding this comment

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

Quick change

query.distinct(true);

return entityManager.createQuery(query).getResultList();
return entityManager.createQuery(query)
Copy link
Collaborator

@sukhpalp sukhpalp Oct 3, 2025

Choose a reason for hiding this comment

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

I think we should have an orderBy here so that the pagination results are more consistent and there fewer chances for duplicate results.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done, added sortby and default to projectName asc

@yzlucas yzlucas requested a review from sukhpalp October 3, 2025 19:49
@yzlucas yzlucas merged commit f2d93c5 into main Oct 3, 2025
4 of 6 checks passed
@yzlucas yzlucas deleted the feature/wfprev-614 branch October 3, 2025 19:52
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.

2 participants