Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Url flipping #4

Merged
merged 6 commits into from
Feb 23, 2015
Merged

Url flipping #4

merged 6 commits into from
Feb 23, 2015

Conversation

joshuafleck
Copy link

This PR allows features to be flipped and remain flipped based on URL parameters: https://trello.com/c/w3igufgx/143-5-ab-testing-feature-flipper

e.g. http://localhost:3000?name_of_feature=enabled&name_of_other_feature=disabled

@tpaul09 @kj-brown Could you please sign off?

@jennikate @sashatheb @martinbtt @calo81 @dragosmiron @dawid-sklodowski @sparrovv For reference

@@ -16,13 +20,17 @@ def disabled?
end

def enable
@state = :enabled
persist
unless_overridden do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why just not unless overridden? ? Looks like unnecessary method for me. For instance in line 8, you have if overridden?, which is almost the same.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Fixed in 6e1890f

@@ -16,6 +17,22 @@ module FlipFab
it 'assigns the context' do
expect(subject.context).to eq(context)
end

context 'when the feature has been overriden' do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*overridden

@tpaul
Copy link

tpaul commented Feb 23, 2015

signed-off-by: @tpaul09

joshuafleck pushed a commit that referenced this pull request Feb 23, 2015
@joshuafleck joshuafleck merged commit c401ad4 into cookie_persistence Feb 23, 2015
@joshuafleck joshuafleck deleted the url_flipping branch February 23, 2015 12:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants