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

Add variant A and B links for PopularTasks AB test #3744

Merged
merged 4 commits into from
Aug 22, 2024

Conversation

hannako
Copy link
Contributor

@hannako hannako commented Aug 21, 2024

What

Add URL's and titles for variants A and B for the upcoming PopularTasks AB test

This PR will be easier to review commit by commit

How to test

  • Install Modheader or similar tool

  • Set the following request header, and toggle variants A, B, C or Z

Screenshot 2024-08-21 at 21 26 49

Review apps

Screenshot example (for browse benefits)

Control Variant A Variant B
Screenshot 2024-08-21 at 21 31 13 Screenshot 2024-08-21 at 21 30 48 Screenshot 2024-08-21 at 21 31 01

Related work:

@govuk-ci govuk-ci temporarily deployed to collections-pr-3744 August 21, 2024 19:39 Inactive
Popular tasks are currently present on business and benefits pages only.
As part of our AB test, we will be adding 3 popular tasks to all level 2
browse pages. This commit preps the file for the incoming data.

govuk-docker-run rake translation:add_missing has not been run - so the keys are
missing from other locale files. This is intentional. Browse pages are not
currently translated, and there is no intention of implementing translations. This
AB test code is temporary and will be removed in a few weeks. Adding empty keys
will just make the diff harder to review and reverting the code more time consuming.
Copy link
Contributor

@unoduetre unoduetre left a comment

Choose a reason for hiding this comment

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

Looks good to me

EDIT: As requested I'll also check the data.

config/locales/en/browse.yml Outdated Show resolved Hide resolved
For variants A and B, all browse pages will contain popular links.
For variants C and Z ie the control state, only business and benefits will
contain popular links. The other 14 will default to hiding popular tasks
entirely - as this is the default behaviour currently live on GOV.UK

This commit adds specs to highlight this, and simplifies the existing code. There
is no behavioural change.
@hannako hannako force-pushed the add_popular_browse_ab_test_links branch from f2ab81a to 452215a Compare August 22, 2024 09:07
@govuk-ci govuk-ci temporarily deployed to collections-pr-3744 August 22, 2024 09:07 Inactive
Copy link
Contributor

@unoduetre unoduetre left a comment

Choose a reason for hiding this comment

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

I also did some checks with modified headers.

Approved.

@hannako hannako merged commit b549e63 into main Aug 22, 2024
14 checks passed
@hannako hannako deleted the add_popular_browse_ab_test_links branch August 22, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants