Skip to content

feat(api): Type Feedback issue metadata#120246

Draft
betegon wants to merge 1 commit into
masterfrom
bt/feat-feedback-api-types
Draft

feat(api): Type Feedback issue metadata#120246
betegon wants to merge 1 commit into
masterfrom
bt/feat-feedback-api-types

Conversation

@betegon

@betegon betegon commented Jul 21, 2026

Copy link
Copy Markdown
Member

The public issue list and detail schemas currently expose metadata as a generic object, forcing generated clients such as @sentry/api to redefine the stable fields returned for modern User Feedback.

Add a typed Feedback metadata branch while keeping the generic object fallback needed by heterogeneous issue endpoints. The fallback stays first so generated Zod parsers preserve unknown and future metadata keys. There is no runtime API behavior change.

This will let getsentry/cli#1266 derive its Feedback metadata from a future @sentry/api release instead of maintaining the field list locally.

Test plan

  • .venv/bin/pytest -q tests/sentry/apidocs/test_extensions.py
  • PATH="$PWD/.venv/bin:$PATH" make build-api-docs
  • changed-file pre-commit hooks and mypy
  • generated TypeScript and Zod output inspected for list and detail responses

Expose modern User Feedback fields through the shared issue response schema so generated clients can reuse them while retaining generic metadata for other issue types.
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 21, 2026
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.

1 participant