Repository navigation
fix(problems): surface pagination completeness on turno_list_problems - #12
Merged
Merged
Conversation
GET /v2/problems has no upstream paginator envelope (unlike /v2/projects, which returns current_page/last_page/per_page/total), so a caller could not tell a full page from a truncated one. Add returned/limit_applied/ has_more so truncation is detectable without a second probe call, passing an upstream envelope through untouched if one is ever present. Also document the undocumented upstream default limit of 100 in the tool description. Fixes #11 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Collaborator
Author
|
Heads up: the `typecheck-and-test` GitHub Actions check failed immediately with "your account is locked due to a billing issue" — the job never actually ran, so this is unrelated to the change in this PR. Verified locally instead:
No branch protection is configured requiring this check, so merging on the strength of the local verification above. Worth fixing the Actions billing issue separately so future PRs get real CI signal. |
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
GET /v2/problemshas no upstream Laravel-paginator envelope (unlike/v2/projects, which returnscurrent_page/last_page/per_page/total), so a caller could not tell a full page apart from a truncated one.turno_list_problemsnow addsreturned/limit_applied/has_moreto the response so truncation is detectable without a wasted probe call (has_more = returned === limit_applied). If upstream ever starts including its own paginator fields, they're passed through untouched instead of being overwritten.limitof 100.Closes #11
Test plan
npm run typechecknpm test(47 passed, including newtests/unit/problems-tool.test.tscovering: synthesized envelope + has_more true/false, default-limit-100 behavior, pass-through when upstream paginator fields are present, and query-param forwarding)npm run build