Skip to content

docs(api): publish existing issue linking endpoints as experimental - #124068

Merged
betegon merged 6 commits into
masterfrom
bt/issue-link-openapi
Sep 14, 2026
Merged

betegon merged 6 commits into
masterfrom
bt/issue-link-openapi

Conversation

@betegon

@betegon betegon commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

These endpoints are already accessible. This marks them PUBLIC_EXPERIMENTAL so sentry-api-schema includes them in generated clients such as @sentry/api, allowing the CLI and MCP to use typed operations for issue linking.

They are published as experimental, with an explicit warning that they may change incompatibly. OpenAPI includes x-sentry-experimental: true and the standard experimental notice; this does not make a stable API commitment.

  • List an issue's native integrations and links.
  • List repositories available to a native integration.
  • List installed Sentry App components.
  • Fetch a Sentry App select field's options.
  • Invoke a Sentry App's create/link action.
  • Remove an App's association with a Sentry issue.

Includes the schemas, response types, and tests needed to publish these operations. The authorization matrix gets fixtures for the newly published routes. Authentication, permission classes, and runtime linking behavior are unchanged.

Validation: generated OpenAPI and verified all six operations carry the experimental marker and notice. The 13 affected API docs tests, two publication-status tests, and 32 authentication-matrix cases passed. Prek and diff checks passed.

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 10, 2026
@betegon betegon changed the title docs(api): publish issue linking operations for generated clients docs(api): publish private issue linking operations Sep 10, 2026
@betegon betegon changed the title docs(api): publish private issue linking operations docs(api): include existing issue linking endpoints in OpenAPI Sep 10, 2026
betegon added a commit that referenced this pull request Sep 10, 2026
The generated [@sentry/api](https://www.npmjs.com/package/@sentry/api)
client is missing fields accepted by existing public issue-linking APIs.
Document optional `repo` and `comment` on the native link PUT,
`per_page` on the organization repository list, and `cursor` on the
group's external issue list.

This changes schema declarations only. Endpoint visibility, runtime
behavior, and permissions are unchanged; all six private operations
discussed in #124068 remain excluded from the public schema.

Validation: four existing apidocs tests pass, including request-property
and required-field assertions. OpenAPI generation, API examples,
targeted mypy, and prek pass. The generated schema also confirms both
pagination parameters and the continued exclusion of the six private
operations.

The separate proposal to publish those private operations remains in
#124068. This PR can merge independently.
@betegon
betegon marked this pull request as ready for review September 10, 2026 19:36
@betegon
betegon requested review from a team as code owners September 10, 2026 19:36
@betegon
betegon requested a review from wedamija September 10, 2026 20:32

betegon commented Sep 10, 2026

Copy link
Copy Markdown
Member Author

@wedamija 🙏 :plz:

@betegon betegon changed the title docs(api): include existing issue linking endpoints in OpenAPI docs(api): publish existing issue linking endpoints as experimental Sep 14, 2026
return resolve_type_hint(self.target.typeSchema)


class SentryAppIssueActionSerializerExtension(OpenApiSerializerExtension):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious what this is for? closest looking thing i can think of is the pattern in group_integration_details but that endpoint is already public

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from what i've read, apps define their own top-level form fields, which the endpoint already forwards to their callback. so this extension adds additionalProperties: true so generated clients can accept those fields, and the link/create action enum. It only affects the schema not the runtime

@betegon
betegon merged commit 3801dd2 into master Sep 14, 2026
67 of 68 checks passed
@betegon
betegon deleted the bt/issue-link-openapi branch September 14, 2026 18:22

This branch was successfully deployed

1 active deployment
Preview — 5438a5f1 Deployed Sep 14, 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.

3 participants