Skip to content

fix: Skip seat provisioning on org switch when billing flag disabled#2022

Merged
charlesvien merged 1 commit intomainfrom
05-05-skip_seat_provisioning_on_org_switch_when_billing_flag_disabled
May 5, 2026
Merged

fix: Skip seat provisioning on org switch when billing flag disabled#2022
charlesvien merged 1 commit intomainfrom
05-05-skip_seat_provisioning_on_org_switch_when_billing_flag_disabled

Conversation

@charlesvien
Copy link
Copy Markdown
Member

@charlesvien charlesvien commented May 5, 2026

Problem

I introduced this in the previous release. Switching organizations during onboarding triggered a free seat auto-provision for users without the billing flag enabled, even though every other entry point gates this behind BILLING_FLAG.

Changes

  1. Read BILLING_FLAG via useFeatureFlag in ProjectSelectStep
  2. Wrap the post-switch fetchSeat({ autoProvision: true }) call in a billingEnabled check
  3. Align org switch behavior with the gating pattern in useSeatSync

How did you test this?

Manually

@charlesvien charlesvien changed the title Skip seat provisioning on org switch when billing flag disabled fix: Skip seat provisioning on org switch when billing flag disabled May 5, 2026
Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@charlesvien charlesvien added the Create release This will trigger a new release label May 5, 2026 — with Graphite App
@charlesvien charlesvien marked this pull request as ready for review May 5, 2026 07:58
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 5, 2026

Reviews (1): Last reviewed commit: "Skip seat provisioning on org switch whe..." | Re-trigger Greptile

@charlesvien charlesvien merged commit 4bcbd84 into main May 5, 2026
16 checks passed
@charlesvien charlesvien deleted the 05-05-skip_seat_provisioning_on_org_switch_when_billing_flag_disabled branch May 5, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Create release This will trigger a new release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant