Skip to content

ref(api-docs): Give the remaining public operations token IDs and summaries - #131209

Merged
BYK merged 1 commit into
masterfrom
byk/ref/legacy-operation-id-tokens
Nov 16, 2026
Merged

BYK merged 1 commit into
masterfrom
byk/ref/legacy-operation-id-tokens

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

34 operations in the public spec still had a sentence as their operationId and no summary. This gives each one a camelCase token operationId and moves the sentence to summary, the same shape the token migration (#117337, #117339, #117403) gave the other operations. The list has moved since #131197 was filed, so it now has two groups:

  • 19 from @extend_schema decorators that the migration missed: notebooks, trace item stats, custom inbound filters, Bulk Update Project Environments, project user feedback, and the issue integration details endpoint.
  • 15 from the legacy api-docs/paths/ files: project issues, tag values, service hooks, the Integration Platform installations and external issues, release commit files, and spike protection. Each file gets the token and a summary. I didn't change any publish_status and didn't migrate these files to drf-spectacular. That migration means publishing them through the decorators, which is a public-API decision for each owning team. Spike protection's implementation is in getsentry anyway.

Nothing changes for docs or SDK users. sentry-docs takes the page title and slug from summary || operationId, so titles and URLs stay the same. Each token is the name that @sentry/api's normalizeOperationId already derives for that operation, so no SDK export is renamed.

Open questions.

  • Keeping the SDK names means some awkward ones stay as they are: listOrganizationReleaseCommitfiles, listOrganizationTraceItemsStats (it returns one stats object), createOrganizationSpikeProtection next to deleteOrganizationSpikeProtections, and updateOrganizationNotebookBlocksOrder (the convention suggests reorder…). Renaming any of them would break the SDK, so I left them for a decision.
  • Some unpublished decorators behind the legacy files disagree with the tokens here: ProjectServiceHooksEndpoint.post says registerProjectServiceHook where the docs and SDK use createProjectHook, and SentryAppInstallationsEndpoint.get and SentryAppInstallationExternalIssuesEndpoint.post still have sentence IDs. They only matter once those endpoints are published through the decorators, so I left them out of this PR.

Fixes #131197

via @BYK.

--

View Session [Sentry]

…maries

34 operations in the public spec still had sentence-style operationIds
and no summary: 19 from @extend_schema decorators that the token
migration missed, and 15 from the legacy api-docs/paths files. Move each
sentence to summary and set operationId to the name that @sentry/api
already derives for the operation, so docs titles and SDK exports stay
the same.

Fixes #131197

Co-Authored-By: BYK <[email protected]>
@sentry-junior
sentry-junior Bot requested review from a team as code owners November 16, 2026 11:10
@sentry-junior
sentry-junior Bot requested a review from BYK November 16, 2026 11:10
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 16, 2026
@BYK
BYK merged commit 6f58e9a into master Nov 16, 2026
82 checks passed
@BYK
BYK deleted the byk/ref/legacy-operation-id-tokens branch November 16, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Public docs spec: 31 endpoints carry sentence operationIds + no summary (legacy api-docs, not migrated to drf-spectacular)

1 participant