Roundup Tracker - Issues

Issue 2551264

REST X-Total-Count header and @total_size count incorrect when paginated
Type: behavior Severity: normal
Components: API Versions:
Status: new
: : rouilj
Priority: :

Created on 2023-02-23 19:55 by rouilj, last changed 2023-02-28 00:28 by rouilj.

msg7729 Author: [hidden] (rouilj) Date: 2023-02-23 19:55
When using paging with rest, the X-Total-Count header and the in json @total_size
properties match the returned content. It should match all the items returned
before pagination.

That info isn't directly available at the level. The pagination is pushed
down into the database via the filter method. In the rdbms db at least we use OFFSET
and LIMIT in the db query, so the full list of matching items isn't available.

Maybe change docs to remove X-Total-Count header? Returned @total_size to @returned_size
or something similar. Might be able to estimate this number but performing a count()
at the db level might be possible but is the run time worth it?
Date User Action Args
2023-02-28 00:28:59rouiljsettitle: REST X-Total-Count header and @total_size count returned not matching when paginated -> REST X-Total-Count header and @total_size count incorrect when paginated
2023-02-23 19:55:34rouiljcreate