Commit b23c6bc 1 parent e589b3a commit b23c6bc Copy full SHA for b23c6bc
File tree 1 file changed +10
-1
lines changed
src/open_inwoner/cms/cases/views
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,16 @@ def get_cases(self) -> list[ZaakWithApiGroup]:
192
192
193
193
def _get_cases_for_api_group (self , group : ZGWApiGroupConfig ) -> list [Zaak ]:
194
194
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 ,
196
205
)
197
206
resolved_cases = self .resolve_cases (raw_cases , group )
198
207
You can’t perform that action at this time.
0 commit comments