Skip to content

Commit

Permalink
[#2910] Remove pagination cap from all ZGW requests
Browse files Browse the repository at this point in the history
  • Loading branch information
swrichards committed Nov 28, 2024
1 parent e589b3a commit 50c7b8e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/open_inwoner/cms/cases/views/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,16 @@ 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),
# TODO: This is not ideal. We should really paginate with the full knowledge
# of the total count (which the API returns but our current client
# implementation does not expose), and simply fetch a page at a time whilst
# providing next/previous and arbitrary jumping functionality. But that will
# need new client methods.
#
# This is a stopgap to avoid people running into a limit, as 100ish cases
# is, certainly in test environments, not uncommon.
max_requests=15,
)
resolved_cases = self.resolve_cases(raw_cases, group)

Expand Down

0 comments on commit 50c7b8e

Please sign in to comment.