Project

General

Profile

Actions

action #121105

closed

coordination #80142: [saga][epic] Scale out: Redundant/load-balancing deployments of openQA, easy containers, containers on kubernetes

coordination #92854: [epic] limit overload of openQA webUI by heavy requests

action #97190: Limit size of initial requests everywhere, e.g. /, /tests, etc., over webUI and API

action #119428: Ensure users can get all the data for limited queries, e.g. with pagination

Add pagination for GET /api/v1/test_suites, GET /api/v1/test_suites/:id, GET /api/v1/machines, GET api/v1/machines/:id, GET /api/v1/products, GET /api/v1/products:id size:M

Added by kraih over 1 year ago. Updated 12 months ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Feature requests
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Proper pagination is planned for every query and API route in #119428. After #120841 has been implemented we now have a prototype to replicate. So this needs to be done for GET /api/v1/test_suites, GET /api/v1/test_suites/:id, GET /api/v1/machines, GET api/v1/machines/:id, GET /api/v1/products, and GET /api/v1/products:id. They all share the same code.

Acceptance criteria

  • AC1: API endpoints GET /api/v1/test_suites, GET /api/v1/test_suites/:id, GET /api/v1/machines, GET api/v1/machines/:id, GET /api/v1/products, and GET /api/v1/products:id have pagination

Suggestions

  • Use limit/offset query parameters and prev/next/first relations in Link headers
  • If possible use the DBIx::Class features for limit and offset

Related issues 1 (0 open1 closed)

Copied from openQA Project - action #121102: Add pagination for GET /api/v1/jobs size:MResolvedkraih

Actions
Actions #1

Updated by kraih over 1 year ago

  • Copied from action #121102: Add pagination for GET /api/v1/jobs size:M added
Actions #2

Updated by kraih over 1 year ago

  • Assignee deleted (kraih)
Actions #3

Updated by okurz over 1 year ago

  • Due date deleted (2022-12-07)
  • Target version changed from future to Ready
  • Start date deleted (2022-11-22)
Actions #4

Updated by okurz over 1 year ago

  • Target version changed from Ready to future
Actions #5

Updated by okurz about 1 year ago

  • Target version changed from future to Ready
Actions #6

Updated by livdywan about 1 year ago

  • Subject changed from Add pagination for GET /api/v1/test_suites, GET /api/v1/test_suites/:id, GET /api/v1/machines, GET api/v1/machines/:id, GET /api/v1/products, GET /api/v1/products:id to Add pagination for GET /api/v1/test_suites, GET /api/v1/test_suites/:id, GET /api/v1/machines, GET api/v1/machines/:id, GET /api/v1/products, GET /api/v1/products:id size:M
  • Status changed from New to Workable
Actions #7

Updated by okurz about 1 year ago

  • Priority changed from Normal to Low
Actions #8

Updated by kraih 12 months ago

  • Assignee set to kraih
Actions #9

Updated by kraih 12 months ago

  • Status changed from Workable to In Progress
Actions #11

Updated by kraih 12 months ago

  • Status changed from In Progress to Feedback
Actions #12

Updated by kraih 12 months ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF