GitHub user nickva opened a pull request:

    https://github.com/apache/couchdb-config/pull/14

    Features API and implementation.

    Implement ability to enable, disable and query feature flags.
    
    Features are identified as binary strings. Usage intent is for
    various components in the system to enable features, then the HTTP API will
    expose those to the user. For example, features could indicate the presence
    of an optional component, a plugin or a new mode of operation.
    
    The API has 3 functions:
    
     * `config:features/0` : Return a sorted list of feature flags
    
     * `config:feature_enable/1` : Enables a feature. Feature argument could be 
a
       list, a binary or an atom.
    
     * `config:feature_disable/1` : Same as `feature_enable/1` but disables the
       feature.
    
    `feature_enable/1` and `feature_disable/1` are idempotent.
    
    Implementation is a thin wrapper around setting and deleting keys from the
    '[features]' config section. This means, users can also set their own 
features
    there via the .ini config files. Features set via the API are not 
persistent,
    so applications will have to set them every time they initialize.
    
    Jira: COUCHDB-3180

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cloudant/couchdb-config couchdb-3180

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-config/pull/14.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #14
    
----
commit d811a5472a91016633e217a2992df4c9ea88b876
Author: Nick Vatamaniuc <[email protected]>
Date:   2016-10-06T02:08:51Z

    Features API and implementation.
    
    Implement ability to enable, disable and query feature flags.
    
    Features are identified as binary strings. Usage intent is for
    various components in the system to enable features, then the HTTP API will
    expose those to the user. For example, features could indicate the presence
    of an optional component, a plugin or a new mode of operation.
    
    The API has 3 functions:
    
     * `config:features/0` : Return a sorted list of feature flags
    
     * `config:feature_enable/1` : Enables a feature. Feature argument could be 
a
       list, a binary or an atom.
    
     * `config:feature_disable/1` : Same as `feature_enable/1` but disables the
       feature.
    
    `feature_enable/1` and `feature_disable/1` are idempotent.
    
    Implementation is a thin wrapper around setting and deleting keys from the
    '[features]' config section. This means, users can also set their own 
features
    there via the .ini config files. Features set via the API are not 
persistent,
    so applications will have to set them every time they initialize.
    
    Jira: COUCHDB-3180

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to