Skip to content

ref(api): use token operationIds + summary for issues/integrations/releases/workflow endpoints - #117339

Merged
betegon merged 3 commits into
masterfrom
api/operation-id-tokens-features
Jun 17, 2026
Merged

betegon merged 3 commits into
masterfrom
api/operation-id-tokens-features

Conversation

@betegon

@betegon betegon commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

operationId→token migration, batch 2 of 3 (issues, integrations, releases, workflow_engine — 62 ops / 38 files). Sentence → summary, operation_id → short camelCase REST token; docs titles/slugs unchanged (derived from summary).

Overrides where the path/verb didn't capture intent:

  • resolveOrganizationEventId / resolveOrganizationShortId (resolve verb + Id casing)
  • upload{Organization,Project}ReleaseFile, getOrganizationConfigIntegrations
  • getProjectOwnership kept consistent with updateProjectOwnership

Bulk operations correctly keep the plural form (deleteOrganizationIssues, updateOrganizationDetectors, updateOrganizationWorkflows) vs their singular detail counterparts.

Test plan

  • prek green; CI api docs test regenerates + validates the spec (--fail-on-warn).

Related

⚠️ Don't merge the batches simultaneously — the schema publish job has no concurrency guard (caused a partial-release race before). Space them out.

…leases/workflow endpoints

operationId->token migration, batch 2 of 3 (62 ops). Sentence -> summary=,
operation_id -> camelCase REST token.

Overrides: resolveOrganization{Event,Short}Id (resolve verb + Id casing),
upload{Organization,Project}ReleaseFile, getOrganizationConfigIntegrations;
getProjectOwnership kept consistent with updateProjectOwnership. Bulk issue/
detector/workflow ops keep plural (deleteOrganizationIssues etc.).
@betegon
betegon marked this pull request as ready for review June 17, 2026 17:51
@betegon
betegon requested review from a team as code owners June 17, 2026 17:51
@betegon
betegon merged commit dd04e7c into master Jun 17, 2026
69 of 70 checks passed
@betegon
betegon deleted the api/operation-id-tokens-features branch June 17, 2026 20:17
betegon added a commit that referenced this pull request Jun 18, 2026
…y_apps/notifications/seer/feedback endpoints (#117403)

## Summary

operationId→token migration, **batch 3 of 3** (preprod, monitors,
sentry_apps, notifications, seer, feedback — **35 ops / 22 files**).
Sentence → `summary`, `operation_id` → short camelCase REST token; docs
titles/slugs unchanged (derived from `summary`).

Overrides:
- `startOrganizationIssueAutofix` / `getOrganizationIssueAutofixState`
(seer)
- unified all preprod ops to `PreprodArtifact` casing (structural
produced inconsistent `Preprodartifacts`), and fixed the latest-base
singleton to `getOrganizationPreprodArtifactSnapshotLatestBase` (was a
mislabeled `list`)

monitors map to the `Detector`/`Monitor` paths as-is;
notifications-action ops are self-consistent.

## Test plan
- prek green; CI `api docs test` regenerates + validates the spec
(`--fail-on-warn`).

## Related
- Batch 1 (core+api): #117337 · Batch 2
(issues/integrations/releases/workflow): #117339
- Convention: #117285 · Merged: #117166 #117297 #117302

⚠️ Don't merge the batches simultaneously — the schema publish job has
no concurrency guard (caused a partial-release race before). Space them
out (merge one, wait for its `openapi` publish, then the next).
sehr-m pushed a commit that referenced this pull request Jun 23, 2026
…leases/workflow endpoints (#117339)

## Summary

operationId→token migration, **batch 2 of 3** (issues, integrations,
releases, workflow_engine — **62 ops / 38 files**). Sentence →
`summary`, `operation_id` → short camelCase REST token; docs
titles/slugs unchanged (derived from `summary`).

Overrides where the path/verb didn't capture intent:
- `resolveOrganizationEventId` / `resolveOrganizationShortId` (resolve
verb + `Id` casing)
- `upload{Organization,Project}ReleaseFile`,
`getOrganizationConfigIntegrations`
- `getProjectOwnership` kept consistent with `updateProjectOwnership`

Bulk operations correctly keep the plural form
(`deleteOrganizationIssues`, `updateOrganizationDetectors`,
`updateOrganizationWorkflows`) vs their singular detail counterparts.

## Test plan
- prek green; CI `api docs test` regenerates + validates the spec
(`--fail-on-warn`).

## Related
- Batch 1 (core+api): #117337 · Convention: #117285 · Merged: #117166
#117297 #117302
- Batch 3 (preprod/monitors/sentry_apps/notifications/seer/feedback) to
follow.

⚠️ Don't merge the batches simultaneously — the schema publish job has
no concurrency guard (caused a partial-release race before). Space them
out.
sehr-m pushed a commit that referenced this pull request Jun 23, 2026
…y_apps/notifications/seer/feedback endpoints (#117403)

## Summary

operationId→token migration, **batch 3 of 3** (preprod, monitors,
sentry_apps, notifications, seer, feedback — **35 ops / 22 files**).
Sentence → `summary`, `operation_id` → short camelCase REST token; docs
titles/slugs unchanged (derived from `summary`).

Overrides:
- `startOrganizationIssueAutofix` / `getOrganizationIssueAutofixState`
(seer)
- unified all preprod ops to `PreprodArtifact` casing (structural
produced inconsistent `Preprodartifacts`), and fixed the latest-base
singleton to `getOrganizationPreprodArtifactSnapshotLatestBase` (was a
mislabeled `list`)

monitors map to the `Detector`/`Monitor` paths as-is;
notifications-action ops are self-consistent.

## Test plan
- prek green; CI `api docs test` regenerates + validates the spec
(`--fail-on-warn`).

## Related
- Batch 1 (core+api): #117337 · Batch 2
(issues/integrations/releases/workflow): #117339
- Convention: #117285 · Merged: #117166 #117297 #117302

⚠️ Don't merge the batches simultaneously — the schema publish job has
no concurrency guard (caused a partial-release race before). Space them
out (merge one, wait for its `openapi` publish, then the next).
BYK added a commit that referenced this pull request Nov 16, 2026
…maries (#131209)

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

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A9b1f74b4116b1c593b2e53f2755e73d0 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A9b1f74b4116b1c593b2e53f2755e73d0)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A9b1f74b4116b1c593b2e53f2755e73d0/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — d029e6cc Deployed Jun 17, 2026 by vercel[bot]
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.

2 participants