Skip to content

Commit

Permalink
Remove Split A/B testing framework
Browse files Browse the repository at this point in the history
We were running an experiment to test the text of the GitHub auth
button. The results were very similar and we chose to stick with "Sign
In with GitHub."

Relevant discussion:
https://thoughtbot.slack.com/archives/C02AJF2A0/p1496253165859654
  • Loading branch information
tysongach committed May 31, 2017
1 parent ac55bf9 commit 35f551c
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 54 deletions.
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ RESQUE_ADMIN_PASSWORD=password
RESQUE_JOB_TIMEOUT=120
SECRET_KEY_BASE=some_really_really_long_super_secret_key_base
SEGMENT_KEY=segment_key
SPLIT_ADMIN_PASSWORD=split_password
STRIPE_API_KEY=sk_test_123
STRIPE_PUBLISHABLE_KEY=pk_test_123
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ gem "resque-sentry"
gem "rest-client", ">= 1.8.0"
gem "sass-rails"
gem "sinatra", "2.0.0.beta2"
gem "split", require: "split/dashboard"
gem "stripe"
gem "thor", "0.19.1"
gem "uglifier", ">= 2.7.2"
Expand Down
6 changes: 0 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -307,16 +307,11 @@ GEM
faraday (>= 0.7.6, < 1.0)
shoulda-matchers (2.6.2)
activesupport (>= 3.0.0)
simple-random (1.0.3)
sinatra (2.0.0.beta2)
mustermann (= 1.0.0.beta2)
rack (~> 2.0)
rack-protection (= 2.0.0.beta2)
tilt (~> 2.0)
split (2.2.0)
redis (>= 2.1)
simple-random (>= 0.9.3)
sinatra (>= 1.2.6)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand Down Expand Up @@ -400,7 +395,6 @@ DEPENDENCIES
sentry-raven (>= 0.12.2)
shoulda-matchers
sinatra (= 2.0.0.beta2)
split
stripe
thor (= 0.19.1)
uglifier (>= 2.7.2)
Expand Down
1 change: 0 additions & 1 deletion app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def create
update_scopes
end

ab_finished("auth_button")
redirect_to repos_path
end

Expand Down
3 changes: 1 addition & 2 deletions app/views/application/_analytics.haml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
for (var i = 0; i < links.length; i++) {
window.analytics.trackLink(
links[i],
"Clicked Sign In",
{ variation: "#{ab_test("auth_button")}" }
"Clicked Sign In"
);
}

Expand Down
2 changes: 1 addition & 1 deletion app/views/application/_auth_button.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
= link_to "/auth/github", class: "auth" do
%i.fa.fa-github
%span= ab_test("auth_button")
= t("authenticate")
5 changes: 0 additions & 5 deletions config/experiments.yml

This file was deleted.

9 changes: 0 additions & 9 deletions config/initializers/split.rb

This file was deleted.

1 change: 0 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

mount Resque::Server, at: "/queue"
mount JasmineRails::Engine => "/specs" if defined?(JasmineRails)
mount Split::Dashboard, at: "split"

get "/auth/github/callback", to: "sessions#create"
get "/sign_out", to: "sessions#destroy"
Expand Down
4 changes: 2 additions & 2 deletions spec/features/public_pages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
feature "Public Pages" do
context "When a user is not signed in" do
scenario "displays the configuration page" do
visit "/configuration?SPLIT_DISABLE=true"
visit "/configuration"

expect(page).to have_content("Configuration")
expect(page).to have_content("Sign In with GitHub")
end

scenario "displays the configuration page with params and missing ?" do
visit "/configuration&utm_source=Intercom&SPLIT_DISABLE=true"
visit "/configuration&utm_source=Intercom"

expect(page).to have_content("Configuration")
expect(page).to have_content("Sign In with GitHub")
Expand Down
24 changes: 0 additions & 24 deletions spec/requests/split_route_spec.rb

This file was deleted.

2 changes: 1 addition & 1 deletion spec/support/helpers/authentication_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def stub_sign_in(user)

def sign_in_as(user, token = "letmein")
stub_oauth(username: user.username, email: user.email, token: token)
visit root_path(SPLIT_DISABLE: "true")
visit root_path
click_link(I18n.t('authenticate'), match: :first)
end
end

0 comments on commit 35f551c

Please sign in to comment.