docs(flaky-tests): publish the v2 API and split the reference by scope - #329
Draft
TylerJang27 wants to merge 1 commit into
Draft
docs(flaky-tests): publish the v2 API and split the reference by scope#329TylerJang27 wants to merge 1 commit into
TylerJang27 wants to merge 1 commit into
Conversation
The Flaky Tests API reference documented only the repository-scoped v1 endpoints, and said nothing about scope at all — so a reader on collections had no way to find the endpoints that apply to them. Adds `openapi-v2.json`, generated by `pnpm emit:openapi` in `ts/apps/public-api` and copied verbatim. The nav declares only the seven flaky-tests operations from it, so the merge-queue and dynamic-ci operations the same file carries do not appear under Flaky Tests. The page now leads with the split — collection endpoints first, then repository endpoints — and closes with a mapping table, because the two are separate APIs rather than two versions of one and not every repository endpoint has a collection counterpart. The one that does not says so. It also records that a test case's ID differs between the two scopes, so an ID from one cannot be passed to the other. The v1 endpoint pages keep their existing URLs; only a sibling nav group is added beside them. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
TylerJang27
added this pull request to stack #327
September 9, 2026 19:27
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.
Important
Do not land until the default
test_collection_statusenum is flipped. This page is live, and it presents collection endpoints as the primary scope.Overview
PR 5 of the Test Collections docs stack: publishes the v2 OpenAPI spec and splits the Flaky Tests API reference by scope, so a reader on collections can find the endpoints that apply to them.
Details
Stacked on #325 → #324 → #323. Review those first.
Three changes:
openapi-v2.json— generated bypnpm emit:openapiints/apps/public-api, copied verbatim (240 KB).docs.json— a sibling API reference (v2) nav group declaring the seven flaky-tests operations.api-reference.mdx— rewritten to lead with the scope split, with a mapping table between the two.Considerations
pnpm emit:openapiints/apps/public-apiand re-copy. Worth a follow-up to automate.…/v2/testcollections/list-test-collections), which the v1 pages do not have because their operations are untagged. Anything linking to a v2 endpoint page needs that segment.Testing
Ran the Mintlify CLI locally, which had not been done anywhere in this stack:
mint validate(strict — fails on warnings) passes.mint broken-linksreports none, across the whole stack rather than just this PR.mint devserved the site, and I confirmed by HTTP status that the seven new v2 endpoint pages render, the five v1 endpoint pages still render at their original URLs, and the stack's other pages (dashboard,migrate-to-test-collections,get-started/test-collections) render.That last step is also how the endpoint URLs were determined — I had guessed them from the operation summaries and all seven 404'd; the real hrefs came from the built navigation.
Follow-up Work
References
ts/apps/public-api/openapi-v2.jsonin trunk2 — the source of the spec🤖 Generated with Claude Code