Skip to content
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

rest api: filters ignored for computing the "total" in /jobs or /jobs/details #199

Open
mimbert opened this issue Oct 4, 2022 · 0 comments

Comments

@mimbert
Copy link

mimbert commented Oct 4, 2022

A request such as GET /jobs?user=<USERNAME> or GET /jobs/details?user=<USERNAME> will correctly return only the jobs pertaining to the user, but in the response, the total field ignores the filter and is the total of the GET /jobs / GET /jobs/details without the ?user=<USERNAME> filter.

This makes handling pagination of responses a bit whacky, i.e: don't use the total to track the last page, instead, try to read pages until it gets an empty page. Maybe it was intended like that? or is that a bug?

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

No branches or pull requests

1 participant