Skip to content

feat(auth-v2): Set up feature flag #93740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

leedongwei
Copy link
Member

@leedongwei leedongwei commented Jun 17, 2025

@leedongwei leedongwei requested review from cathteng and mifu67 June 17, 2025 18:55
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 17, 2025
@@ -58,6 +58,8 @@ def register_temporary_features(manager: FeatureManager):
manager.add("organizations:anr-analyze-frames", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)
# Rollout of the new API rate limits for organization events
manager.add("organizations:api-organization_events-rate-limit-reduced-rollout", OrganizationFeature, FeatureHandlerStrategy.INTERNAL, api_expose=False)
# Enables the frontend to use the new auth flow for specific users.
manager.add("organizations:auth-v2", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want this to be used by FE, you must expose to the API

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will not be used by the frontend to keep it simple, because you will not have the feature flag if you have not logged in. For the frontend, we'll hide it in a obscure route + check a LocalStorage value.

This flag protects the API from being called.

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.

3 participants