From 1fa409d55e116496a3e45b3960ca546269213907 Mon Sep 17 00:00:00 2001 From: Harpo Date: Tue, 19 Nov 2024 15:30:44 -0500 Subject: [PATCH] =?UTF-8?q?=E2=99=BE=EF=B8=8F=20Unlimited=20API=20(#218)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # API llmit Removes default `WAGTAILAPI_LIMIT_MAX` Closes #217 ## TODO This might affect performance eventually, so a better solution would be frontend pagination for the `/exhibits` and `/collections` routes. Then, this setting can be set to the max page limit. --- ov_wag/settings/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ov_wag/settings/base.py b/ov_wag/settings/base.py index 97b3bbf..99f8217 100644 --- a/ov_wag/settings/base.py +++ b/ov_wag/settings/base.py @@ -219,6 +219,9 @@ 'CLIENT_URLS': {'default': os.environ.get('OV_PREVIEW_URL')}, } +# TODO: Set this to a real limit once we create pagination for the frontend endpoints +WAGTAILAPI_LIMIT_MAX = None + # OIDC Provider settings SITE_ID = 1 AUTHENTICATION_BACKENDS = [