docs: add API client pipeline and server-side pagination conventions#9
Closed
mrizzi wants to merge 1 commit into
Closed
docs: add API client pipeline and server-side pagination conventions#9mrizzi wants to merge 1 commit into
mrizzi wants to merge 1 commit into
Conversation
Document the pagination data flow (request and response paths), the generated-vs-manual type distinction, the client regeneration checklist, and a step-by-step guide for adapting to upstream API changes. These sections close a documentation gap exposed when adapting to upstream pagination changes (guacsec/trustify#2338, #2351): an AI or new contributor reading only CONVENTIONS.md could not have correctly traced the data flow or known where to add `total: true` per page. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Assisted-by: Claude Code
Reviewer's GuideDocuments the API client generation pipeline, server-side pagination data flow, and related conventions to guide future adaptations to upstream API changes, all within CONVENTIONS.md. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The “Regenerating the client” and “Adapting to upstream API changes” sections overlap quite a bit; consider either cross‑referencing them or deduplicating the shared steps so there’s a single authoritative checklist for regeneration vs. a shorter delta for upstream changes.
- In the pagination request flow, the note that each context provider MUST add
total: trueis critical; it may be worth explicitly calling out an example context file or a small code snippet showing the pattern so future additions are less likely to omit it.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The “Regenerating the client” and “Adapting to upstream API changes” sections overlap quite a bit; consider either cross‑referencing them or deduplicating the shared steps so there’s a single authoritative checklist for regeneration vs. a shorter delta for upstream changes.
- In the pagination request flow, the note that each context provider MUST add `total: true` is critical; it may be worth explicitly calling out an example context file or a small code snippet showing the pattern so future additions are less likely to omit it.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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
total: trueopt-in, response path with?? 0nullable guard)These sections close a documentation gap exposed when adapting to upstream pagination changes (guacsec/trustify#2338, guacsec/trustify#2351): reading only
CONVENTIONS.mdwas insufficient to correctly trace the data flow or know where to addtotal: trueper page.Test plan
npm run check🤖 Generated with Claude Code
Summary by Sourcery
Document the frontend API client generation pipeline and server-side pagination data flow to clarify how list pages interact with the backend and where pagination-related flags must be applied.
Documentation:
total: trueopt-in, nullabletotalhandling, pagination constants, and a checklist for adapting to upstream API changes.