Skip to content

ref(api): Remove fetchMutation - #127705

Draft
ryan953 wants to merge 6 commits into
ref/api-fetch-mutations-integrationfrom
ref/api-fetch-mutations-cleanup
Draft

ryan953 wants to merge 6 commits into
ref/api-fetch-mutations-integrationfrom
ref/api-fetch-mutations-cleanup

Conversation

@ryan953

@ryan953 ryan953 commented Oct 15, 2026

Copy link
Copy Markdown
Member

Deletes fetchMutation and its ApiMutationVariables type from sentry/utils/queryClient now that no callsite uses it, and points the docs at apiFetch: the form .mdx pages, the frontend-data-fetching / generate-frontend-forms / migrate-frontend-forms agent skills, and the @deprecated notes on Client.request / requestPromise (which also named a fetchDataQuery helper that no longer exists). The doc examples now show onSuccess reading response.json.

Depends on #127699 and all area PRs: #127700, #127701, #127702, #127703, #127704. Until they merge, this PR targets an integration branch that combines them, so its diff shows only the cleanup; it will be retargeted to master once they land.

develop-docs/frontend/network-requests.mdx in getsentry/sentry-docs also mentions fetchMutation and needs a follow-up there.

No feature flags. No UI changes, so no screenshots.

No callsite uses fetchMutation any more, so delete it and its
ApiMutationVariables type, and point the form docs, the data-fetching
and form agent skills, and the Client.request deprecation notes at
apiFetch. The doc examples now read the body from response.json.
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 15, 2026
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Story previews

Preview the stories changed in this PR on the Vercel deployment:

Preview deployment: https://sentry-ky8guu3vh.sentry.dev

@sentry

sentry Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Sentry Snapshot Testing

Name Added Removed Changed Renamed Unchanged Skipped Status
sentry-frontend
sentry-frontend
- - - - - - ✅ 630 uploaded

Base commit eb05746f3f94968cd2c820c5489051b5a9857145 did not produce snapshots to compare against. Did its snapshot job fail? Try rebasing this branch on a commit with a successful snapshot job.

⚙️ sentry-frontend Snapshot Settings

This branch was successfully deployed

1 active deployment
Preview — a9cbb6cc Deployed Oct 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant