Skip to content
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

Add feature flag support for gradual rollouts #2825

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented Nov 4, 2024

Motivation

Add the ability to rollout features to users based on percentages. This PR will essentially replace our experimental features configuration with a much more granular and controlled rolled out strategy.

Note: I'll leave removing the old experimental features setting to a future PR.

Implementation

The idea is to combine the user's machine ID and the feature flag name to generate a number that can be checked against the desired rollout percentage.

With this strategy, we can guarantee that if we increase the percentage, users who already had the feature enabled will continue to do so.

From our side, the idea is to maintain a constant with the feature names and the desired rollout, so that we can gradually increase it as needed.

Automated Tests

Added tests.

Copy link
Member Author

vinistock commented Nov 4, 2024

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

Join @vinistock and the rest of your teammates on Graphite Graphite

@vinistock vinistock requested review from andyw8 and st0012 November 4, 2024 21:40
@vinistock vinistock added vscode This pull request should be included in the VS Code extension's release notes enhancement New feature or request labels Nov 4, 2024 — with Graphite App
@vinistock vinistock changed the title Add the ability to rollout features to a percetange of users Add feature flag support for gradual rollouts Nov 4, 2024
@vinistock vinistock marked this pull request as ready for review November 4, 2024 21:43
@vinistock vinistock requested a review from a team as a code owner November 4, 2024 21:43
@vinistock vinistock force-pushed the 11-04-add_the_ability_to_rollout_features_to_a_percetange_of_users branch from 718ef4d to 547631f Compare November 5, 2024 15:09
vscode/package.json Outdated Show resolved Hide resolved
@vinistock vinistock merged commit 7031842 into main Nov 5, 2024
36 checks passed
Copy link
Member Author

Merge activity

  • Nov 5, 1:18 PM EST: A user merged this pull request with Graphite.

@vinistock vinistock deleted the 11-04-add_the_ability_to_rollout_features_to_a_percetange_of_users branch November 5, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants