Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Feature flags framework #1118

Open
webknjaz opened this issue Dec 8, 2018 · 2 comments
Open

Feature flags framework #1118

webknjaz opened this issue Dec 8, 2018 · 2 comments

Comments

@webknjaz
Copy link
Member

webknjaz commented Dec 8, 2018

I think having a quick way to enable/disable certain code paths based on a toggle and a rollout percentage is essential to having stable bot in production.
This could also facilitate restricted testing of new features.

@gundalow
Copy link
Collaborator

Could you please provide some examples?

@webknjaz
Copy link
Member Author

if feature_enabled('new_explanation_comment', issue_id=xxxx):
  # use new experimental comment template
else:
  # use the old one

and config

new_explanation_comment: 5%

meaning that it'd use this comment for 5% of issues only. or use this just for wrapping new code. there's a lot of uses of this technique.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants