Skip to content

perf(api): Omit full resources from control organization contexts - #124850

Draft
shashjar wants to merge 1 commit into
shashjar/iswf-3361-lightweight-accessfrom
shashjar/iswf-3361-control-context-defaults
Draft

shashjar wants to merge 1 commit into
shashjar/iswf-3361-lightweight-accessfrom
shashjar/iswf-3361-control-context-defaults

Conversation

@shashjar

@shashjar shashjar commented Sep 17, 2026

Copy link
Copy Markdown
Member

Control organization endpoints now omit full project/team collections by default, removing the eager hydration that occurred before determine_access received an existing RPC context. Endpoints that consume either collection can explicitly opt in through their existing independent flags.

Deploy after PR 2's lazy privileged-access lookups and PR 3's getsentry broadcast project opt-in. The general organization service keeps its existing defaults for integration/pipeline consumers that independently fetch full organizations. This is the final change in the scoped fix for ISWF-3361; the organization/member lookup itself remains in place.

Regression coverage verifies both organization-slug and organization-ID routes, authorization with omitted collections, and independent project/team opt-ins. Integration and broadcast tests validate the dependent consumers.

Requires https://github.com/getsentry/getsentry/pull/22065

Part 4 of 4. Fixes ISWF-3361. Review/deploy order: 1: ID RPCs2: access checks3: broadcasts4: control defaults. The Git base is PR 2 because PR 3 lives in getsentry.

@linear-code

linear-code Bot commented Sep 17, 2026

Copy link
Copy Markdown

ISWF-3361

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 17, 2026
@shashjar
shashjar force-pushed the shashjar/iswf-3361-control-context-defaults branch from 1d43a7a to cece4a6 Compare September 17, 2026 22:23
@shashjar
shashjar force-pushed the shashjar/iswf-3361-lightweight-access branch from 66dffbb to 1eb9129 Compare September 17, 2026 22:23
Default control organization endpoints to lightweight RPC contexts, with independent opt-ins for endpoints that need projects or teams. Cover both organization route forms and preserve member access.

Refs ISWF-3361
@shashjar
shashjar force-pushed the shashjar/iswf-3361-lightweight-access branch from 1eb9129 to ecc1d43 Compare September 17, 2026 23:02
@shashjar
shashjar force-pushed the shashjar/iswf-3361-control-context-defaults branch from cece4a6 to 7789122 Compare September 17, 2026 23:02
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