Skip to content

Commit b23c6bc

Browse files
committed
[#2910] Lift pagination cap on fetches cases on list page
1 parent e589b3a commit b23c6bc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/open_inwoner/cms/cases/views/services.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,16 @@ def get_cases(self) -> list[ZaakWithApiGroup]:
192192

193193
def _get_cases_for_api_group(self, group: ZGWApiGroupConfig) -> list[Zaak]:
194194
raw_cases = group.zaken_client.fetch_cases(
195-
**get_user_fetch_parameters(self.request)
195+
**get_user_fetch_parameters(self.request),
196+
# TODO: This is not ideal. We should really paginate with the full knowledge
197+
# of the total count (which the API returns but our current client
198+
# implementation does not expose), and simply fetch a page at a time whilst
199+
# providing next/previous and arbitrary jumping functionality. But that will
200+
# need new client methods.
201+
#
202+
# This is a stopgap to avoid people running into a limit, as 100ish cases
203+
# is, certainly in test environments, not uncommon.
204+
max_requests=15,
196205
)
197206
resolved_cases = self.resolve_cases(raw_cases, group)
198207

0 commit comments

Comments
 (0)