Actions
action #122959
openAdd pagination for /api/v1/jobs with latest=1 feature active
Start date:
2023-01-11
Due date:
% Done:
0%
Estimated time:
Description
Motivation¶
With #121102 finished and the PR https://github.com/os-autoinst/openQA/pull/4979 merged we now have pagination for most of the /api/v1/jobs
endpoint, but it is explicitly deactivated if latest=1
is activated. Finding a solution will be tricky because the returned database rows are correlated in Perl code, reducing their number, often significantly. The code responsible is also used in multiple places.
Accepance criteria¶
- AC1: Pagination for
/api/v1/jobs
now works withlatest=1
active
Suggestions¶
- Maybe find a way to move the correlation code from Perl to SQL
Actions