Skip to content

fix(api): drop the removed term projections endpoint from the menu - #891

Merged
hlenke merged 1 commit into
mainfrom
hlenke/drop-term-projections-nav
Nov 28, 2026
Merged

hlenke merged 1 commit into
mainfrom
hlenke/drop-term-projections-nav

Conversation

@hlenke

@hlenke hlenke commented Nov 28, 2026

Copy link
Copy Markdown
Member

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 by GET /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

  • Removed the old endpoint from the Usage menu in docs.json.
  • Redirected its old page URL to the GET /v2/usage/projections page, so existing links keep working.
  • Pointed the links on the usage overview page and the v1 summary page at the new endpoint.
  • Regenerated 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

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>
@mintlify

mintlify Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
checkly-422f444a 🟢 Ready View Preview Nov 28, 2026, 7:15 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@hlenke
hlenke enabled auto-merge (squash) November 28, 2026 19:15
@hlenke
hlenke merged commit d3c4321 into main Nov 28, 2026
6 of 7 checks passed
@hlenke
hlenke deleted the hlenke/drop-term-projections-nav branch November 28, 2026 19:16
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

1 active deployment
staging — 3330e024 Deployed Nov 28, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant