Skip to content

SP-1383: gate early-access commands behind feature flag, replace beta - #393

Merged
A. Jashari (admirjashari) merged 1 commit into
mainfrom
SP-1383-early-access-feature-flag
Jul 31, 2026
Merged

SP-1383: gate early-access commands behind feature flag, replace beta#393
A. Jashari (admirjashari) merged 1 commit into
mainfrom
SP-1383-early-access-feature-flag

Conversation

@admirjashari

Copy link
Copy Markdown
Contributor

Description

Gate early-access (non-GA) commands behind a backend feature flag. If a team runs a gated command that isn't enabled for them, they get a clear "not enabled — contact support" message instead of a generic 403.

Also consolidates the old beta marker into a single earlyAccess:

  • earlyAccess(featureKey?) replaces beta()/betaOption() — with a key it's gated at run time, without one it's just an internal marker.
  • No (beta) label anymore; early-access status is internal (nothing shown in --help).
  • Check uses the existing /api/team/features endpoint with the profile token (flag enabled = key present).
  • No profile → normal "no profile" error; check failure → fail-closed "could not verify".
  • deployment commands migrated to .earlyAccess() (ungated, behavior unchanged).

Relevant links

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
  • Docs — N/A, tracked in a separate ticket

@admirjashari
A. Jashari (admirjashari) requested review from a team as code owners July 9, 2026 08:14
Comment thread src/core/command/module-handler.ts Outdated
Comment thread src/core/command/module-handler.ts Outdated
Comment thread src/core/feature-flag/early-access-features.ts Outdated
Comment thread src/commands/deployment/module.ts Outdated
Comment thread src/core/command/module-handler.ts Outdated
Comment thread src/core/command/module-handler.ts Outdated
Comment thread src/core/command/module-handler.ts Outdated
Comment thread src/core/command/module-handler.ts Outdated
@admirjashari
A. Jashari (admirjashari) force-pushed the SP-1383-early-access-feature-flag branch from 06ea536 to b82c22e Compare July 21, 2026 08:49
@sonarqubecloud

Copy link
Copy Markdown

Comment thread src/core/feature-flag/feature-disabled-error.ts
@admirjashari
A. Jashari (admirjashari) merged commit bd8fea1 into main Jul 31, 2026
5 checks passed
@admirjashari
A. Jashari (admirjashari) deleted the SP-1383-early-access-feature-flag branch July 31, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants