-
Notifications
You must be signed in to change notification settings - Fork 3
wfprev-614 add pagination to feature endpoint. make it capable to search by projectGuid #1010
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
Conversation
|
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.
Quick change
query.distinct(true); | ||
|
||
return entityManager.createQuery(query).getResultList(); | ||
return entityManager.createQuery(query) |
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.
I think we should have an orderBy here so that the pagination results are more consistent and there fewer chances for duplicate results.
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.
Done, added sortby and default to projectName asc
https://apps.nrs.gov.bc.ca/int/jira/browse/WFPREV-614