Skip to content

feat(api): Let routeCellOperations look up raw requests that name an organization - #131245

Merged
BYK merged 1 commit into
masterfrom
feat/api-route-raw-requests
Nov 16, 2026
Merged

BYK merged 1 commit into
masterfrom
feat/api-route-raw-requests

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Part of #131198. routeCellOperations (#131228) keeps raw requests on the configured base URL, because they carry no routing declaration. The Sentry CLI's region lookup does more than find a region: it also picks the stored account, and that account's server, that knows the organization. So its sentry api raw requests need to go through that lookup to keep reaching an organization whose account is on another server.

  • routeCellOperations(lookup, { rawRequests: "lookup" }) sends raw requests whose path names an organization (their scope) through lookup. If the lookup returns nothing, they keep the configured base.
  • The default, rawRequests: "baseUrl", keeps today's behavior, so nothing breaks for existing callers.
  • Generated operations still follow their declarations either way: cell goes through the lookup, while control, both and unknown keep the configured base.
  • The README documents the option with an example.

via @BYK.

--

View Session [Sentry]

…organization

routeCellOperations keeps raw requests on the configured base URL. A host
whose lookup also picks the account or server that knows an organization,
like the Sentry CLI's, needs raw requests to go through it too.
{ rawRequests: 'lookup' } sends raw requests whose path names an
organization through the lookup. The default and generated-operation
routing are unchanged.

Co-Authored-By: BYK <[email protected]>
@sentry-junior
sentry-junior Bot requested review from a team as code owners November 16, 2026 14:01
@sentry-junior
sentry-junior Bot requested a review from BYK November 16, 2026 14:01
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 16, 2026
@BYK
BYK merged commit 95c9d82 into master Nov 16, 2026
88 checks passed
@BYK
BYK deleted the feat/api-route-raw-requests branch November 16, 2026 16:19

This branch was successfully deployed

1 active deployment
Preview — 0500c216 Deployed Nov 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