On Wed, Sep 22, 2010 at 1:15 AM, Michael Nelson
<[email protected]> wrote:
> On Tue, Sep 21, 2010 at 8:41 AM, Martin Pool <[email protected]> wrote:
>> On 18 September 2010 11:01, Robert Collins <[email protected]> 
>> wrote:
>>> Just noticed while discussing stuff with Maris that feature flags are
>>> being used in a very odd way.
>>
>> Just for easier future reference than grepping mail, this is described
>> in <https://code.launchpad.net/~mbp/launchpad/flags-webapp/+merge/32967>
>> lands, this will be in the lib.lp.services.features docstring.  At the
>> moment it's in a docfile under that directory.   If anything else is
>> unclear please do ask.
>
> The only thing that was unclear for me was how to switch the feature
> on for testing when using getFeatureFlag(). I ended up with the
> following helper... is there a better way to do this?

yes, see the existing tests that do it ;) I suggest the memcache ones
as an example. There is an XXX there that needs fixing too.

-Rob

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to