Skip to content

Conversation

@sfanahata
Copy link
Contributor

Summary

  • Filters out deprecated API endpoints from the generated API documentation
  • Prevents 404 errors when documentation pages link to deprecated endpoints

Problem

The OpenAPI spec contains many deprecated endpoints with (DEPRECATED) in their operationId. These endpoints were being included in the documentation generation, but their descriptions contain links to replacement endpoints with anchor tags. Since the deprecated endpoints shouldn't have documentation pages, these links were causing 404 errors.

Solution

Added filtering logic in src/build/resolveOpenAPI.ts to skip any endpoint where the operationId contains "(DEPRECATED)". This prevents pages from being generated for these endpoints.

Fixes

  • /api/alerts/deprecated-update-a-metric-alert-rule
  • /api/alerts/deprecated-update-an-issue-alert-rule

And all other deprecated endpoints in the OpenAPI schema.

Test plan

  • Regenerated doctree successfully
  • Prettier checks pass
  • Verify 404 checker no longer reports these URLs (will need to run after merge)

Shannon Anahata and others added 2 commits January 26, 2026 12:19
Adds filtering logic to exclude endpoints with "(DEPRECATED)" in their
operationId from being included in the generated API documentation. This
prevents 404 errors when pages link to these deprecated endpoints.

The deprecated endpoints in the OpenAPI spec direct users to newer
replacement endpoints, so they shouldn't have dedicated documentation pages.

Fixes broken links to:
- /api/alerts/deprecated-update-a-metric-alert-rule
- /api/alerts/deprecated-update-an-issue-alert-rule

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Jan 26, 2026

Someone is attempting to deploy a commit to the Sentry Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Jan 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
develop-docs Ready Ready Preview, Comment Jan 26, 2026 9:41pm
sentry-docs Ready Ready Preview, Comment Jan 26, 2026 9:41pm

Request Review

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