Skip to content

fix(lever): paginate public postings API - #12

Merged
pashawkola33 merged 1 commit into
mainfrom
fix/lever-pagination-v2
Aug 9, 2026
Merged

pashawkola33 merged 1 commit into
mainfrom
fix/lever-pagination-v2

Conversation

@pashawkola33

Copy link
Copy Markdown
Owner

Summary

  • fetch Lever postings in bounded skip/limit pages instead of one unbounded tenant response
  • cap pagination at 40 pages (2,000 postings at page size 50)
  • preserve provider order while deduplicating repeated posting IDs across page boundaries
  • discard partial tenant results if a later page fails, preserving tenant isolation and health monitoring semantics
  • reject malformed/non-array pages and pathological boards that ignore skip

Why

Large Lever boards can exceed the shared HTTP response-size bound when fetched as a single array. Pagination fixes that at the source without increasing the global transport limit.

Verification

  • focused LeverJobSourceTest: 12 tests, 0 failures/errors
  • targeted regression suite: 88 tests, 0 failures/errors/skips
  • git diff --check clean

Full verification is delegated to GitHub Actions.

@pashawkola33
pashawkola33 marked this pull request as ready for review August 9, 2026 22:29
@pashawkola33
pashawkola33 merged commit b7ded74 into main Aug 9, 2026
4 checks passed
@pashawkola33
pashawkola33 deleted the fix/lever-pagination-v2 branch August 9, 2026 23:00
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.

1 participant