Skip to content

Feat: set default pagination for public queries#266

Open
susilnem wants to merge 2 commits into
developfrom
feature/high-pagination-size
Open

Feat: set default pagination for public queries#266
susilnem wants to merge 2 commits into
developfrom
feature/high-pagination-size

Conversation

@susilnem

Copy link
Copy Markdown
Member

Changes

  • Adding a wrapper PublicOffsetPaginated for the pagination limit changes.
  • set 100 as defaullt

This PR doesn't introduce any:

  • temporary files, auto-generated files or secret keys
  • n+1 queries
  • flake8 issues
  • print
  • typos
  • unwanted comments

This PR contains valid:

  • tests
  • permission checks (tests here too)
  • translations

@susilnem susilnem force-pushed the feature/high-pagination-size branch from a739924 to 73d129b Compare June 23, 2026 09:15
@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.64%. Comparing base (189901a) to head (73d129b).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #266      +/-   ##
===========================================
+ Coverage    87.55%   87.64%   +0.08%     
===========================================
  Files          211      212       +1     
  Lines        12819    12894      +75     
  Branches      1089     1093       +4     
===========================================
+ Hits         11224    11301      +77     
+ Misses        1196     1194       -2     
  Partials       399      399              

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

Comment on lines +33 to +34
if limit is UNSET or limit is None or limit < 0 or limit > max_limit:
pagination = OffsetPaginationInput(offset=pagination.offset, limit=max_limit)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This should throw an error, not silently serve max limit.

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