fix: add pagination to GET /api/releases endpoint (apn-0d1oa.8)#439
Merged
paulvanbrenk merged 2 commits intomainfrom Feb 26, 2026
Merged
fix: add pagination to GET /api/releases endpoint (apn-0d1oa.8)#439paulvanbrenk merged 2 commits intomainfrom
paulvanbrenk merged 2 commits intomainfrom
Conversation
The endpoint previously had no Take() call, allowing large days values to load all releases (including full markdown Body) into memory. - Add limit/offset query params (limit clamped 1-100, default 20) - Return PaginatedResponse<ReleaseDto> with items, total, limit, offset - Update openapi.json and regenerate frontend types via orval - Update hooks.ts to extract .items from paginated response - Update MSW mock handler and hooks.test.tsx for new response shape - Update ReleasesApiTests.cs to assert against .items property Closes apn-0d1oa.8 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…pn-0d1oa.8) PaginatedResponseOfReleaseDto was placed at the wrong position in the schemas object. CI generates schemas in alphabetical order; reorder to match so the spec check passes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
aca254d to
2b3b7a1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PaginatedResponseOfReleaseDtoIssue
Closes apn-0d1oa.8
What changed from PR #434
PR #434 was closed because
PaginatedResponseOfReleaseDtowas placed at the wrong alphabetical position inopenapi.json. This PR sorts all component schemas alphabetically to match CI's generated output.Test plan
dotnet test PatchNotes.slnx)pnpm build)🤖 Generated with Claude Code