Conversation
The backend no longer reads a request org anywhere (DEV-2566 retired the header and its middleware), so the FE-side injection is dead weight: remove it. - libs/fetch: delete `createOrgInterceptor` (+ its unit tests). - libs/ba-platform: drop the interceptor from the web and expo fetch clients and from the convenience re-exports; the active-org store stays (it still drives the UI and the org query variables, e.g. `useOrgTeams`) and its rationale docstring now records the header's retirement. - web/expo fetch-client tests: drop the header-injection cases. Lands after the backend stack (#2450) so no client is ahead of a backend that still needed the header. ESLint clean; vitest runs in CI (rolldown binding unavailable in this container).
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis follow-up removes frontend injection of the retired File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
🚀 Expo continuous deployment is ready for betterangels!
iOS Simulator Build: Simulator Build Link |
|
🔍 [shelter-web] Preview available at: https://shelter.dev.betterangels.la/branches/chore-fe-drop-org-header Last updated: 2026-09-10T18:10:49.026Z |
|
🔍 [betterangels-admin] Preview available at: https://admin.dev.betterangels.la/branches/chore-fe-drop-org-header Last updated: 2026-09-10T18:10:49.019Z |
This was referenced Sep 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The backend no longer reads a request org anywhere — DEV-2566 (#2450) retired the
X-Organization-IDheader, its middleware, and every header-era fixture. This removes the dead FE-side injection so no client attaches a request org.Stacks on #2451; must land after #2450 (i.e. after the backend stack) so no app deploy can be ahead of a backend that still required the header.
What changes
libs/fetch— deletecreateOrgInterceptorand its unit tests.libs/ba-platform— drop the interceptor from the web and expo fetch clients and from the convenience re-exports.useOrgTeamsreadsgetActiveOrgIdreactively); its rationale docstring now records the header's retirement instead of describing the interceptor.Test plan
viteston the fetch/ba-platform suites runs in CI (local container lacks the rolldown native binding).Summary by Sourcery
Stop frontend fetch clients from sending the retired
X-Organization-IDheader.Enhancements:
X-Organization-IDrequest header while retaining the active-organization store for UI state and query scoping.Documentation:
Tests: