-
Notifications
You must be signed in to change notification settings - Fork 120
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
Start button AB test For July 2016 #2655
Conversation
5e7839e
to
150f0c1
Compare
I have added the labels |
Could you please update the commit notes of 4fd1053 and describe why you are confident it is not breaking anything in smart-answers. |
function browserSupportsHtml5HistoryApi() { | ||
return !! (history && history.replaceState && history.pushState); | ||
} | ||
|
||
function isExpectedPath(slug) { // Used mostly during A/B testing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not clear to me what this method is doing, because the argument is not a path, it is a smart-answer name. It might make be better to rename it to something similar to:
SmartAnswer.isStartPage(‘overseas-passports’)
If there are any particular reasons for doing split("/").join("")
it would be good to explain it in the commit notes.
I am not sure either about having this function isolated. I would prefer so see it enclosed within an object / module. I will facilitate maintenance and testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your suggestion is for defining SmartAnswer.isStartPage(‘overseas-passports’)
this way is also possible.
657c607
to
e208b4c
Compare
@pmanrubia Great point and thanks for pointing this out. I have examined closely the diff from v4.14.0 to v4.8.0 I haven't see anything that is of concern.. @selfthinker can you take a quick look. I am also reviewing it again |
I've looked at all the changes Ikenna listed in the bump commit (ebe9cab):
And I can confirm that none of them would have an effect on Smart Answers as far as I can tell. |
80f9a10
to
1e6ac98
Compare
@ikennaokpala is there any reason for this commit: 4fdd4d5? |
1605f63
to
7fda193
Compare
@pmanrubia I have rebased the branch to sort that out.. |
Thank you @ikennaokpala and @selfthinker for reviewing the gem upgrade. LGTM |
@pmanrubia Thank you for pointing out the none obvious points. |
This commit bumps the front-end toolkit from 4.8.0 to 4.14.0 as a result of the recent update to the front-end toolkit. * alphagov/govuk_frontend_toolkit#296 * alphagov/govuk_frontend_toolkit#294 * alphagov/govuk_frontend_toolkit#292 SmartAnswers makes use of the following files from the frontend_toolkit: Stylesheets: - _conditionals.scss - _typography.scss - _colours.scss - _shims.scss - design-patterns/_buttons.scss - _grid_layout.scss Javascript: - govuk/multivariate-test Having reviewed the diff between 4.8.0 and 4.14.0 alphagov/govuk_frontend_toolkit@0cfc216...37d23c1. This diff composes of 82 commits, 34 Merge Commits and 48 concrete commits. I gone through each tracing the possible areas that this might affect smart answers. To the best of my knowledge I have found only cosmetic changes to the following files. Stylesheets: - _typography.scss e05ca517 , 70f53d27c - _colors.scss 11798945a , 3853a726c , 0052024b4b9 , 984d53292 , 2180a72e4 UI examination was carried by Anika and myself and we found nothing of concern. Already existing unit, regression and integration tests passed, giving assurance that the aforementioned commit/changes have had no (interfering) affect to the transit route or flow or other routes within check uk visa or other smart answers.
7fda193
to
dcf9ceb
Compare
This commit sets up AB test for the following smart answers: * overseas-passport * calculate-your-child-maintenance * marriage-abroad Cohorts across the aforementioned smart answers fall under the following. * Start now * Continue * Next The isStartPage checks that the current path matches the slug of the smart answers that has been identified for A/B testing. It splits the pathname with the forward slash delimiter and joins all. This in effect returns a combination of all the characters in the path for the current page, returning true for only paths that equal the defined slug.
dcf9ceb
to
e471dae
Compare
Trello card
Description
This PR sets up AB test for the following smart answers:
Cohorts across the aforementioned smart answers fall under the following.
Currently being tested in the Integration environment.
Also as a result of the recent update to the front-end toolkit.
customDimensionIndex
option govuk_frontend_toolkit#294This PR also contains a bump to the front-end toolkit from 4.8.0 to 4.14.0
_NB:_
This branch has already been tested on the integration server by @vp2015 and Dan.
See on Integration (Deploy App Job):
Heroku Preview Links: