Skip to content

ref(admin): Point the platform migration action at its own endpoint - #122918

Merged
skonves merged 1 commit into
masterfrom
ref/billing-platform-migration-endpoint
Aug 28, 2026
Merged

ref(admin): Point the platform migration action at its own endpoint#122918
skonves merged 1 commit into
masterfrom
ref/billing-platform-migration-endpoint

Conversation

@skonves

@skonves skonves commented Aug 27, 2026

Copy link
Copy Markdown
Member

Context

The _admin migration action sends migratedToBillingPlatform to PUT /customers/{org}/.
That route dual writes, and the flag has no platform side to write to. getsentry now gives
the flag its own endpoint.

Change

The action now sends migrated to POST /_admin/customers/{orgId}/billing-platform-migration/.
That endpoint returns no body, so the action refetches the customer instead of caching the
response. The unmigrate label now reads "Unmigrate from Billing Platform".

Outcome

The action calls one endpoint that does one thing. Two new tests check the request body in
both directions. Merge this second. The sequence is getsentry/getsentry#21686 to add the
endpoint, then this PR and a pin bump, then getsentry/getsentry#21690 to remove the old path.

The customer action sent migratedToBillingPlatform to PUT /customers/{org}/. It now sends migrated to POST /_admin/customers/{org}/billing-platform-migration/.

The new endpoint returns no body. So the action refetches the customer instead of writing the response into the query cache.

The unmigrate label now reads "Unmigrate from Billing Platform". The old label said "to".

This needs the getsentry change that adds the endpoint.
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 27, 2026
@skonves

skonves commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

@BugBot review
@sentry review

@cursor cursor Bot left a comment

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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit af2ca20. Configure here.

@skonves
skonves marked this pull request as ready for review August 27, 2026 21:18
@skonves
skonves merged commit 227de9c into master Aug 28, 2026
84 of 85 checks passed
@skonves
skonves deleted the ref/billing-platform-migration-endpoint branch August 28, 2026 15:27
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.

2 participants