feature-flags

Installation
SKILL.md

Feature Flags (FlagPole)

New features should be gated behind a feature flag.

  1. Register the flag in src/sentry/features/temporary.py:

    manager.add("organizations:my-feature", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)
    

    Use api_expose=True if the frontend needs to check the flag. Use ProjectFeature and a projects: prefix for project-scoped flags.

  2. Python check:

    if features.has("organizations:my-feature", organization, actor=user):
    
  3. Frontend check (requires api_expose=True):

Installs
7
GitHub Stars
44.8K
First Seen
Aug 31, 2026
feature-flags — getsentry/sentry