dannysmith / jimmy

Jimmy is a toy. That's all.
0 stars 0 forks source link

Add feature flag system #136

Open dannysmith opened 6 years ago

dannysmith commented 6 years ago

It would be a good idea to add some reliable feature flag implementation.

Basics

Config could look like this:

- code: feature-2fa
  title: Two Factor Authentication
  environments:
    production: on / off / configurable
    staging: on / off / configurable

Where the code is used in the codebase conditionals and DSLs, the title is used in any admin panels and the environments apply:

* `on` - On for all users (conditionals can be removed in due course)
* `off` - off for all users (off for all users, used to ship incomplete development code)
* `configurable` - Queries the user model to see if the feature is on for them.

Even better

Gotchas

OTS Solutions

These may be more robust:

Other things to consider

  1. It might make sense to bake this into the same framework as A/B testing (and/or beta launches, which is more closely related).
dannysmith commented 5 years ago

https://launchdarkly.com/pricing/

dannysmith commented 5 years ago

It might be better to trial this engine out: https://github.com/vinistock/sail