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 2016/17 rates for register-a-death #2425

Merged
merged 5 commits into from Apr 5, 2016

Conversation

chrisroos
Copy link
Contributor

Trello card: https://trello.com/c/SWiqvfDo

I've extracted the hardcoded fees table from north_korea_result and oru_result outcomes templates and moved it to a new _fees partial.

I've extracted the hardcoded costs from the new _fees and moved them to the new register_a_birth.yml rates file.

I've added the 2016/17 rates and checked that they'll be displayed from 6 April 2016 by deploying to Heroku and setting the RATES_QUERY_DATE environment variable to 6 April.

Factcheck

Price change for Afghanistan

  • GOV.UK (currently live) - £105 / £65
  • Heroku (live from 6 Apr 2016) - £150 / £50

Expected changes after 6 April 2016

URLs to check

Before 6 April 2016

pr-2425-before

After 6 April 2016

pr-2425-after

@chrisroos chrisroos force-pushed the add-2016-17-rates-for-register-a-death branch 2 times, most recently from 5a845bb to 6cf7b43 Compare April 1, 2016 03:40
@chrisroos chrisroos added this to the April 6 milestone Apr 5, 2016
@ikennaokpala
Copy link
Contributor

PP LGTM

To DRY up some of the duplication between north_korea_result and
oru_result.
This will allow us to add rates for 2016/17 that can be deployed before
6 April 2016.

I wanted to set the start_date as 2015-04-06 but that causes the
register-a-death regression tests to fail after I add rates for 2016/17.
This is because the date for the regression tests is hardcoded as 1 Jan
2015 which means that no suitable rates are found, which means that the
`RatesQuery` falls back to using the most recent rates (2016/17).
Setting the start_date to 2015-01-01 ensures that these rates continue
to be used in the regression tests.
Updated using:

    $ rails r script/generate-checksums-for-smart-answer.rb \
    register-a-death \
    lib/data/rates/register_a_death.yml
This is necessary because of the unrelated changes to
the `RegistrationsDataQuery` class.

Updated using:

    $ rails r script/generate-checksums-for-smart-answer.rb \
    register-a-birth
This is necessary because of the unrelated changes to
the `RegistrationsDataQuery` class.

Updated using:

    $ rails r script/generate-checksums-for-smart-answer.rb \
    marriage-abroad
@chrisroos chrisroos force-pushed the add-2016-17-rates-for-register-a-death branch from 6cf7b43 to 7d59573 Compare April 5, 2016 13:51
@chrisroos
Copy link
Contributor Author

Thanks for reviewing, @ikennaokpala!

I've rebased this on master and force pushed in preparation for merging.

I ran the register-a-death regression tests locally to confirm that they're still passing after the rebase.

@chrisroos chrisroos merged commit 84afc6f into master Apr 5, 2016
@chrisroos chrisroos deleted the add-2016-17-rates-for-register-a-death branch April 5, 2016 13:58
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.

None yet

2 participants