Repository navigation
fix(api): drop the removed term projections endpoint from the menu - #891
Merged
Merged
Conversation
The API no longer has GET /v2/usage/terms/{id}/projections, but docs.json
still listed it as a page generated from the spec. The nightly spec update
stops on that entry, so it has opened no PR since Nov 25.
Remove the entry, redirect its old URL to GET /v2/usage/projections, and
point the usage overview and v1 summary links at the new page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
hlenke
enabled auto-merge (squash)
November 28, 2026 19:15
hlenke
added a commit
that referenced
this pull request
Nov 28, 2026
…nc fails (#893) The nightly spec sync only handled added endpoints. When the API dropped GET /v2/usage/terms/{id}/projections, its menu entry stopped the job before it opened a PR, from Nov 25 until it was removed by hand (#891). The heartbeat ping ran on failure too, so Checkly never alerted. - Add prune-removed-endpoints.mjs, which runs before the endpoint check. It removes menu entries and MDX stubs for endpoints that are no longer in the spec, redirects their old URLs to the next page of the same group, and lists them in the PR description. - Keep auto-merge off for a sync PR that removed endpoints, so a person checks the redirects. - Ping the heartbeat only when the job succeeds. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
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.
What was wrong
The nightly job that copies the latest API spec into the docs has failed every run since Nov 25, so it has opened no PR. The API removed
GET /v2/usage/terms/{id}/projections(replaced byGET /v2/usage/projections, see #887). But the docs menu (docs.json) still lists the old endpoint as a page built from the spec. The job's endpoint check (detect-new-endpoints.mjs) can't find that endpoint in the new spec and stops before it opens a PR.What changed
docs.json.GET /v2/usage/projectionspage, so existing links keep working.sitemap.xml. The only change is that the old page is removed.The spec file itself is not changed here. The nightly job will do that.
Verified
I ran the job's steps against today's live spec on a local copy of this branch. The endpoint check, the group-tag sync and the sitemap step all pass. The live spec no longer has the old endpoint and does include
urlCheckResult.What the reader has to do
After merging, run "Update API Specification" from the Actions tab, or wait for the 02:00 UTC weekday run. It should then open the spec PR.
🤖 Generated with Claude Code