Skip to content

Commit

Permalink
CA/ACB - Remove Find UTR Number A/B test for 31st January
Browse files Browse the repository at this point in the history
  • Loading branch information
Ana Botto committed Jan 24, 2024
1 parent e9808a0 commit b41d4eb
Show file tree
Hide file tree
Showing 68 changed files with 0 additions and 334 deletions.
25 changes: 0 additions & 25 deletions app/controllers/content_items_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class ContentItemsController < ApplicationController
def show
load_content_item

temporary_ab_test_find_utr_page
temporary_ab_test_stop_self_employed_2
temporary_ab_test_sa_video_return_2
set_expiry
Expand Down Expand Up @@ -272,30 +271,6 @@ def csp_connect_src
end

# TEMPORARY (author: richard.towers, expected end date: February 2024)
# Content specific AB test for the Find your UTR number page
def temporary_ab_test_find_utr_page
placeholder = "{{ab_test_find_utr_number_video_links}}"
if @content_item.base_path == "/find-utr-number" && @content_item.body.include?(placeholder)
ab_test = GovukAbTesting::AbTest.new(
"FindUtrNumberVideoLinks",
dimension: 61, # 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.find_utr_number_video_links.A")
when "B"
I18n.t("ab_tests.find_utr_number_video_links.B")
else
I18n.t("ab_tests.find_utr_number_video_links.Z")
end
@content_item.body.sub!(placeholder, replacement)
end
end

def temporary_ab_test_stop_self_employed_2
placeholder = "{{ab_test_sa_video_stop_self_employed_2}}"
Expand Down
4 changes: 0 additions & 4 deletions config/locales/ar.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
ar:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/az.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
az:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/be.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
be:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/bg.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
bg:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/bn.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
bn:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/cs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
cs:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/cy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
cy:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/da.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
da:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
de:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/dr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
dr:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/el.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
el:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
en:
ab_tests:
find_utr_number_video_links:
A: in the <a href="/guidance/download-the-hmrc-app"><abbr title="HM Revenue and Customs">HMRC</abbr> app</a> under 'Your details' or in the 'Self Assessment' section
B: in the <a href="/guidance/download-the-hmrc-app"><abbr title="HM Revenue and Customs">HMRC</abbr> app</a> - watch a <a href="https://www.youtube.com/watch?v=LXw9ily9rTo">video about finding your UTR number in the app</a>
Z: in the <a href="/guidance/download-the-hmrc-app"><abbr title="HM Revenue and Customs">HMRC</abbr> app</a> under 'Your details' or in the 'Self Assessment' section
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>
Expand Down
4 changes: 0 additions & 4 deletions config/locales/es-419.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
es-419:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
es:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/et.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
et:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/fa.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
fa:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/fi.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
fi:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
fr:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/gd.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
gd:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/gu.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
gu:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/he.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
he:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/hi.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
hi:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/hr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
hr:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/hu.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
hu:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/hy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
hy:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/id.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
id:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/is.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
is:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/it.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
it:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
ja:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/ka.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
ka:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/kk.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
kk:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
4 changes: 0 additions & 4 deletions config/locales/ko.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
ko:
ab_tests:
find_utr_number_video_links:
A:
B:
Z:
sa_video_return_2:
A:
B:
Expand Down
Loading

0 comments on commit b41d4eb

Please sign in to comment.