GithubHelp home page GithubHelp logo

testing-feature-flags's Introduction

Waffle vs Gargoyle

https://github.com/jsocol/django-waffle
(https://waffle.readthedocs.io/en/v0.11.1/)

https://github.com/YPlan/gargoyle
(https://gargoyle-yplan.readthedocs.io/en/latest/index.html)
--------------------------------------------------------------------------------
+ Waffle has a better documentation
+ Waffle is easy to set up, less requirements
+ Waffle flags & switches is simpler to configure

- with Waffle you have to care about how you deploy new flags to your servers.
--------------------------------------------------------------------------------
+ with Gargoyle - you can add new flags to GARGOYLE_SWITCH_DEFAULTS and they
  will be created in db automatically, which is big advantage in deploy process.
+ signals (switch_updated, switch_status_updated, switch_condition_deleted, etc)

- Poor docs
- You have to install separate nexus fronted, because you can't configure
  conditions with default django admin. Also you have to add an url to it somewhere
--------------------------------------------------------------------------------

Waffle conditions:
    - percent
    - superuser
    - staff
    - authenticated
    - languages
    - groups
    - users

Gargoyle conditions:
    - hostname
    - IP: address percent
    - IP: particular addressess
    - IP: internal address
    - anonymous
    - username
    - email
    - user percent
    - staff
    - superuser
    - users joined on or after

--------------------------------------------------------------------------------
Waffle notes:

pip install django-waffle
python manage.py migrate
python manage.py loaddata waffle_flags.json  # also we have to load 2 flags in fresh db

index_waffle.html page for playground
http://localhost:8000/w/
--------------------------------------------------------------------------------
Gargoyle notes:

Requires PostgreSQL ≥ 9.4 and Psycopg2 ≥ 2.5.4. (due to usage of JSONField)

pip install gargoyle-yplan
python manage.py migrate

1.  Flags specified in GARGOYLE_SWITCH_DEFAULTS would be created in db automatically,
    BUT only if you start using them in your code.

2.  The default admin page for Switches doesn't provide tools to create selective
    rules. Thus we have to add Nexus frontend package and url for it.
    The static files in this package are handled by python, as this page only
    for admin - it's fine. But if you want to serve this files via nginx
    - it will became a pain in the ass.

index_gargoyle.html page for playground
http://localhost:8000/g/

url for nexus-frontend feature flags management page
http://localhost:8000/admin/feature-flags/gargoyle/

testing-feature-flags's People

Contributors

glibpushkov avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.