Commit 65eba530 authored by Igor Ponomarev's avatar Igor Ponomarev Committed by Paweł Wieczorek
Browse files

lava_rest_app: Let `v0.3-experimental/jobs` have custom size

parent 868c12a9
......@@ -82,6 +82,11 @@ except ImportError:
return action(detail=True, methods=methods, suffix=suffix)
class TestJobPaginator(CursorPagination):
page_size_query_param = "limit"
max_page_size = 100_000
class TestJobViewSet(base_views.TestJobViewSet):
"""
List TestJobs visible to the current user.
......@@ -118,7 +123,7 @@ class TestJobViewSet(base_views.TestJobViewSet):
* `/jobs/<job_id>/yaml/`
"""
pagination_class = CursorPagination
pagination_class = TestJobPaginator
ordering = "id"
def suites(self, request, **kwargs):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment