Skip to content

fix pagination annotations#139

Draft
CharString wants to merge 2 commits into
mainfrom
fix-pagination-annotations
Draft

fix pagination annotations#139
CharString wants to merge 2 commits into
mainfrom
fix-pagination-annotations

Conversation

@CharString

@CharString CharString commented Jun 10, 2026

Copy link
Copy Markdown
Contributor
  • 🏷️ fix: Make pagination_helper annotations reflect Open Zaak API
  • 🧪 test: max_requests not always reached... Feature or Bug?

Asking if it's a feature or a bug, because I saw the helper being used in a search indexing task...

Picked Open Zaak because VNG ZGW 1.7.0 actually makes none of the
attributes on a paged response required...

It returns an `Iterable[T | object]` because on the first iteration, the
passed in T's will come out, on all following requests, the service
responses are only checked if they're valid JSON.
@CharString CharString marked this pull request as draft June 10, 2026 11:17
Comment thread zgw_consumers/utils.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not directly related to this PR, but now I'm getting annoyed that #103 has been rotting for so long and I've been rebasing all the time on changes of other people, while now another PR related to type annotations is going to go through so I'll get to do that again.

@sergei-maertens

Copy link
Copy Markdown
Member

Asking if it's a feature or a bug, because I saw the helper being used in a search indexing task...

I don't understand the question. You expect the test to throw a recursion error?

@CharString CharString force-pushed the fix-pagination-annotations branch from ee88697 to 1110037 Compare June 11, 2026 19:31
@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.83%. Comparing base (d38ba3d) to head (a4cc92b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #139   +/-   ##
=======================================
  Coverage   79.83%   79.83%           
=======================================
  Files          33       33           
  Lines        1190     1190           
  Branches       78       78           
=======================================
  Hits          950      950           
  Misses        210      210           
  Partials       30       30           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CharString CharString force-pushed the fix-pagination-annotations branch from 1110037 to a4cc92b Compare June 12, 2026 08:13
@CharString

Copy link
Copy Markdown
Contributor Author

@sergei-maertens

I don't understand the question. You expect the test to throw a recursion error?

No. That's what it does now. I'd expect it to do ~1000 requests. I've rewritten the test for clarity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants