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 2015-2016 option and Remove 2011-2012 option from ESAP Smart Answer #2783

Merged

Conversation

ikennaokpala
Copy link
Contributor

@ikennaokpala ikennaokpala commented Oct 13, 2016

Supersedes #2782
Trello card

Motivation

Having entered 2016-2017 tax year there is little need for the older tax years.

This PR seeks to disable the selection of 2011-2012 option on the Estimate your penalty for late Self Assessment tax returns and payments Smart Answer.

Factcheck 2011-2012

Preview link
GOV.UK

Expected changes

  • 2011-2012 option no longer available for selection

Before

screen shot 2016-10-06 at 12 01 36

After

screen shot 2016-10-13 at 17 00 59

Factcheck 2015-2016

Expected changes

  • 2015-2016 option will be available for selection

Before

screen shot 2016-10-07 at 11 20 18

After

screen shot 2016-10-07 at 11 19 20

@ikennaokpala ikennaokpala changed the title Remov 2011-2012 option from ESAP Smart Answer Remove 2011-2012 option from ESAP Smart Answer Oct 13, 2016
@ikennaokpala ikennaokpala added needs content review Waiting for a content designer to approve Ready for code review labels Oct 13, 2016
@pmanrubia
Copy link
Contributor

LGTM @ikennaokpala

@ikennaokpala ikennaokpala changed the title Remove 2011-2012 option from ESAP Smart Answer Add 2015-2016 option and Remove 2011-2012 option from ESAP Smart Answer Oct 14, 2016
pmanrubia and others added 6 commits October 14, 2016 14:41
In preparation to add new years to the calculator, we add a test for
the method that calculates the start of the year.
In preparation to add new years to the calculator, we add a test for
the method that calculates `one year after start date for penalties`
Using a default value does not make sense from a policy perspective.
If we don’t have a match for one of the selected years it is because
we are not listing them correctly, and something need to be fixed.

This update surfaced an issue with the test as it was assigning a symbol
to the calculator (attribute tax_year), and the application is assigning 
a string.
Regression tests: we have not generated the questions and expected results using
the script: `script/generate-responses-and-expected-results-for-smart-answer`.
The reason is because not all combination of `which_year`, `when_submited` and
`when_paid` make sense. So, to make it compliant with the rest of questions and
expected responses I have manually extended the file:
`test/data/estimate-self-assessment-penalties-responses-and-expected-results.yml`
with the compatible options for year 2015-16
This commit shows the preparatory step of removing
2011-12 from the regression test configuration files.

This removal triggers the renaming of 2011-12 to
2012-13 regression files.

This also has similar change for 2012-13 to 2013-14.

For 2014-2015 new file have been created.

This commit doesn't show any changes to the first
question (i.e estimate-self-assessment-penalties/y),

This give assurance that this setup will form the basis
for evaluating the removal of 2011-12 in later commits.

Already existing unit, regression and integration tests passed, giving
assurance that the aforementioned commit/changes have had no
(interfering) effect to other smart answers.
This commit removes the 2011-2012 option for Estimate Self Assessment
Penalties Smart Answer.

Direct removal have been made to templates and flow (related test) files respectively.

These changes have been made upon request from the Content Team.

Already existing unit, regression and integration tests passed, giving
assurance that the aforementioned commit/changes have had no
(interfering) effect to other smart answers.
@ikennaokpala ikennaokpala force-pushed the estimate-self-assessment-penalties/remove-2011-2012-cntd branch from 5dd0476 to 398881c Compare October 14, 2016 13:42
@ikennaokpala ikennaokpala added Passed factcheck and removed needs content review Waiting for a content designer to approve labels Oct 17, 2016
@ikennaokpala ikennaokpala merged commit 54e89f4 into master Oct 17, 2016
@ikennaokpala ikennaokpala deleted the estimate-self-assessment-penalties/remove-2011-2012-cntd branch October 17, 2016 09:28
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.

2 participants