From 8c247c8777786e10f8456cc861f5329780798df8 Mon Sep 17 00:00:00 2001 From: Samuel Paccoud - DINUM Date: Fri, 17 Jan 2025 17:15:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(backend)=20bump=20maximum=20page?= =?UTF-8?q?=20size=20to=20200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new UI with infinite scroll calls for longer pages which we are able to produce thanks to the many optimizations on the list view. --- CHANGELOG.md | 4 ++++ src/backend/core/api/viewsets.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e6bd3fd..6e7f3713 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,10 @@ and this project adheres to - 💄(frontend) add abilities on doc row #581 - 💄(frontend) improve DocsGridItem responsive padding #582 +## Changed + +- 🔧(backend) Bump page size to 200 #516 + ## Removed - 🔥(backend) remove "content" field from list serializer # 516 diff --git a/src/backend/core/api/viewsets.py b/src/backend/core/api/viewsets.py index 93f8be0f..18ff2163 100644 --- a/src/backend/core/api/viewsets.py +++ b/src/backend/core/api/viewsets.py @@ -133,7 +133,7 @@ class Pagination(drf.pagination.PageNumberPagination): """Pagination to display no more than 100 objects per page sorted by creation date.""" ordering = "-created_on" - max_page_size = 100 + max_page_size = 200 page_size_query_param = "page_size"