Skip to content

Add pagination helpers to PageRequest and javadoc to FilterResponse#1088

Merged
bdemers merged 1 commit intodevelopfrom
feature/pagination-helpers
Apr 3, 2026
Merged

Add pagination helpers to PageRequest and javadoc to FilterResponse#1088
bdemers merged 1 commit intodevelopfrom
feature/pagination-helpers

Conversation

@bdemers
Copy link
Copy Markdown
Member

@bdemers bdemers commented Mar 30, 2026

PageRequest gains getZeroBasedStartIndex() and getEffectiveCount(int)
to eliminate the error-prone 1-based to 0-based conversion that every
Repository implementation must duplicate.

FilterResponse gets javadoc clarifying that totalResults must be the
total count of ALL matching resources before pagination, not the page
size. References RFC 7644 §3.4.2.4.

Generated-by: Claude Opus 4.6 (1M context) noreply@anthropic.com

@github-actions
Copy link
Copy Markdown

View details about the 'Apache Rat - Check' build 869 in the Build Scan 📊

@github-actions
Copy link
Copy Markdown

View details about the 'Maven Verify (with Java 21-zulu)' build 1865 in the Build Scan 📊

@github-actions
Copy link
Copy Markdown

View details about the 'Maven Verify (with Java 17-zulu)' build 1865 in the Build Scan 📊

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

View details about the 'Apache Rat - Check' build 870 in the Build Scan 📊

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

View details about the 'Maven Verify (with Java 21-zulu)' build 1866 in the Build Scan 📊

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

View details about the 'Maven Verify (with Java 17-zulu)' build 1866 in the Build Scan 📊

Add PageRequest.paginate(List) to apply offset/limit as a page slice,
and ScimRequestContext.getPageRequestOrDefault() to avoid null-checking.
Refactor all InMemory*Service.find() to filter BEFORE paginating,
fixing a bug where skip/limit was applied before the filter predicate.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bdemers bdemers force-pushed the feature/pagination-helpers branch from 8cf354c to 389deae Compare April 3, 2026 02:06
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

View details about the 'Apache Rat - Check' build 872 in the Build Scan 📊

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

View details about the 'Apache Rat - Check' build 871 in the Build Scan 📊

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

View details about the 'Maven Verify (with Java 17-zulu)' build 1868 in the Build Scan 📊

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

View details about the 'Maven Verify (with Java 17-zulu)' build 1867 in the Build Scan 📊

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

View details about the 'Maven Verify (with Java 21-zulu)' build 1868 in the Build Scan 📊

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

View details about the 'Maven Verify (with Java 21-zulu)' build 1867 in the Build Scan 📊

@bdemers bdemers merged commit dce1073 into develop Apr 3, 2026
10 checks passed
@bdemers bdemers deleted the feature/pagination-helpers branch April 3, 2026 02:15
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