Repository navigation
docs: bring the package doc, AGENTS.md and comments up to date for 1.0 - #154
Merged
Merged
Conversation
- Collect, WithMaxRetries and AGENTS.md described the retry and paging rules from before this release: paging advances by the rows requested, backoff is capped and jittered, 501/505 are not retried, an http.Client timeout on a GET is, a transfer timeout is not, and the caller's context is what ends retrying. - The package doc says how errors and retries work and points at Do and the examples; its usage snippet, like the README's, now uses node. - Exported docs no longer name unexported helpers or source files (metadataRbStatements, cookbookSymlinkTarget, sandboxes.go, do[T]). - ErrNotFound, ErrConflict, ErrForbidden and ErrUnauthorized have doc comments, and ErrMetadataVersionNotLiteral has the cinc: prefix every other error has. - NewClient's error for a ServerURL with a path says why: a path /organizations/<org> points at ParseServerURL, any other prefix is refused because the signature must cover the path the server sees. - AGENTS.md: a cinc-server-ng gap needs a reason, an issue URL only when it is a server bug, as integration/README.md already says. Signed-off-by: Tim Smith <tsmith84@proton.me>
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.
Doc drift found by the second pre-1.0 review.
Collect,WithMaxRetriesand AGENTS.md described the pre-release rules. They now say:Doand the examples. Its usage snippet, and the README's, now usesnode; before, the code did not compile.metadataRbStatements,cookbookSymlinkTarget,sandboxes.go,do[T].ErrNotFound/ErrConflict/ErrForbidden/ErrUnauthorizedget doc comments.ErrMetadataVersionNotLiteralgets thecinc:prefix every other error has.NewClient's ServerURL error now explains itself:/organizations/<org>path points atParseServerURLintegration/README.md.Test plan
go test ./.... TheServerURLtest checks both error forms; one test is renamed afterCollect.go doc .reads correctly