From e1fa7b89248c1eb0074e2e203cf1259f776d2193 Mon Sep 17 00:00:00 2001 From: Sidney Richards Date: Thu, 28 Nov 2024 16:39:43 +0100 Subject: [PATCH] [#2910] Remove pagination cap from all ZGW requests --- src/open_inwoner/cms/cases/views/services.py | 2 +- src/open_inwoner/openzaak/clients.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/open_inwoner/cms/cases/views/services.py b/src/open_inwoner/cms/cases/views/services.py index d9ae67e08c..b37f867e64 100644 --- a/src/open_inwoner/cms/cases/views/services.py +++ b/src/open_inwoner/cms/cases/views/services.py @@ -192,7 +192,7 @@ def get_cases(self) -> list[ZaakWithApiGroup]: def _get_cases_for_api_group(self, group: ZGWApiGroupConfig) -> list[Zaak]: raw_cases = group.zaken_client.fetch_cases( - **get_user_fetch_parameters(self.request) + **get_user_fetch_parameters(self.request), ) resolved_cases = self.resolve_cases(raw_cases, group) diff --git a/src/open_inwoner/openzaak/clients.py b/src/open_inwoner/openzaak/clients.py index 68fe7a30ba..97bec9308e 100644 --- a/src/open_inwoner/openzaak/clients.py +++ b/src/open_inwoner/openzaak/clients.py @@ -65,7 +65,7 @@ def fetch_cases( user_bsn: str | None = None, user_kvk: str | None = None, user_rsin: str | None = None, - max_requests: int = 4, + max_requests: int | None = None, identificatie: str | None = None, vestigingsnummer: str | None = None, ): @@ -101,7 +101,7 @@ def fetch_cases( def fetch_cases_by_bsn( self, user_bsn: str, - max_requests: int | None = 4, + max_requests: int | None = None, identificatie: str | None = None, ) -> list[Zaak]: """ @@ -149,7 +149,7 @@ def fetch_cases_by_bsn( def fetch_cases_for_company( self, kvk_or_rsin: str | None = None, - max_requests: int | None = 4, + max_requests: int | None = None, zaak_identificatie: str | None = None, vestigingsnummer: str | None = None, ) -> list[Zaak]: @@ -684,7 +684,7 @@ def fetch_open_submissions( user_bsn: str | None = None, user_kvk: str | None = None, vestigingsnummer: str | None = None, - max_requests: int = 4, + max_requests: int | None = None, **kwargs, ) -> list[OpenSubmission]: if user_bsn and (user_kvk or vestigingsnummer):