Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Jan2024 phase 2 AB tests #3091

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 0 additions & 53 deletions app/controllers/content_items_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ class ContentItemsController < ApplicationController
def show
load_content_item

temporary_ab_test_stop_self_employed_2
temporary_ab_test_sa_video_return_2
set_expiry

if is_service_manual?
Expand Down Expand Up @@ -269,55 +267,4 @@ def csp_connect_src

@content_item.csp_connect_src
end

# TEMPORARY (author: richard.towers, expected end date: February 2024)

def temporary_ab_test_stop_self_employed_2
placeholder = "{{ab_test_sa_video_stop_self_employed_2}}"
if @content_item.base_path == "/stop-being-self-employed" && @content_item.body.include?(placeholder)
ab_test = GovukAbTesting::AbTest.new(
"SAVideoStopSelfEmployed2",
dimension: 47, # https://docs.google.com/spreadsheets/d/1h4vGXzIbhOWwUzourPLIc8WM-iU1b6WYOVDOZxmU1Uo/edit#gid=254065189&range=69:69
allowed_variants: %w[A B Z],
control_variant: "Z",
)
@requested_variant = ab_test.requested_variant(request.headers)
@requested_variant.configure_response(response)

replacement = case @requested_variant.variant_name
when "A"
I18n.t("ab_tests.sa_video_stop_self_employed_2.A")
when "B"
I18n.t("ab_tests.sa_video_stop_self_employed_2.B")
else
I18n.t("ab_tests.sa_video_stop_self_employed_2.Z")
end
@content_item.body.sub!(placeholder, replacement)
end
end

def temporary_ab_test_sa_video_return_2
placeholder = "{{ab_test_sa_video_return_2}}"
if @content_item.base_path == "/log-in-file-self-assessment-tax-return" && @content_item.body.include?(placeholder)
ab_test = GovukAbTesting::AbTest.new(
"SAVideoReturn2",
dimension: 47,
allowed_variants: %w[A B Z],
control_variant: "Z",
)
@requested_variant = ab_test.requested_variant(request.headers)
@requested_variant.configure_response(response)

replacement = case @requested_variant.variant_name
when "A"
I18n.t("ab_tests.sa_video_return_2.A")
when "B"
I18n.t("ab_tests.sa_video_return_2.B")
else
I18n.t("ab_tests.sa_video_return_2.Z")
end
@content_item.body.sub!(placeholder, replacement)
end
end
# /TEMPORARY
end
9 changes: 0 additions & 9 deletions config/locales/ar.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
ar:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/az.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
az:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/be.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
be:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/bg.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
bg:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/bn.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
bn:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/cs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
cs:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/cy.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
cy:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/da.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
da:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
de:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/dr.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
dr:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/el.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
el:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
en:
ab_tests:
sa_video_return_2:
A: <h2 id="if-you-do-not-have-a-government-gateway-account">If you do not have a Government Gateway account</h2>
B: <div class="gem-c-govspeak govuk-govspeak " data-module="govspeak"><p>Watch this video to find out more about how to file your tax return.</p><p><a href="https://www.youtube.com/watch?v=_N0ekIOnURM">My first Self Assessment tax return</a></p></div><h2 id="if-you-do-not-have-a-government-gateway-account">If you do not have a Government Gateway account</h2>
Z: <h2 id="if-you-do-not-have-a-government-gateway-account">If you do not have a Government Gateway account</h2>
sa_video_stop_self_employed_2:
A: <p>You’ll need to provide your <a href="/national-insurance/your-national-insurance-number">National Insurance number</a> and <a href="/find-utr-number">your UTR number</a>.</p>
B: <p>You’ll need to provide your <a href="/national-insurance/your-national-insurance-number">National Insurance number</a> and <a href="/find-utr-number">your UTR number</a>.</p><div class="gem-c-govspeak govuk-govspeak" data-module="govspeak"><p>Watch this video to find out how to tell HMRC you're stopping self-employment.</p><p><a href="https://www.youtube.com/watch?v=g-CkQRLGb0Q">How to stop Self Assessment online if you’re self-employed</a></p></div>
Z: <p>You’ll need to provide your <a href="/national-insurance/your-national-insurance-number">National Insurance number</a> and <a href="/find-utr-number">your UTR number</a>.</p>
call_for_evidence:
and: and
another_website_html: This call for evidence %{closed} held on <a href="%{url}">another website</a>
Expand Down
9 changes: 0 additions & 9 deletions config/locales/es-419.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
es-419:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
es:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/et.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
et:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/fa.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
fa:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/fi.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
fi:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
fr:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/gd.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
gd:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/gu.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
gu:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/he.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
he:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
9 changes: 0 additions & 9 deletions config/locales/hi.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
---
hi:
ab_tests:
sa_video_return_2:
A:
B:
Z:
sa_video_stop_self_employed_2:
A:
B:
Z:
call_for_evidence:
and:
another_website_html:
Expand Down
Loading
Loading