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

Remove marriage-abroad outcome path precalculate blocks #2387

Merged

Conversation

chrisroos
Copy link
Contributor

This supersedes PR #2381. See that PR for discussion.

I'm continuing to refactor marriage-abroad. This branch removes the precalculate blocks from outcome_os_kuwait, outcome_spain and outcome_consular_cni_os_residing_in_third_country by moving logic to the MarriageAbroadCalculator.

We're aiming toward having the `MarriageAbroadCalculator` be the only
object required to render outcomes.

Moving the logic of this `:uk_residence_outcome_path` precalculate block
is the first step toward me being able to remove the block.
We're aiming toward having the `MarriageAbroadCalculator` be the only
object required to render outcomes.

Moving the logic of this `:ceremony_country_residence_outcome_path`
precalculate block is the first step toward me being able to remove the
block.
This was previously used in the `:uk_residence_outcome_path` and
`:ceremony_country_residence_outcome_path` precalculate blocks. It's no
longer required now that the logic of those precalculate blocks has been
moved to the `MarriageAbroadCalculator`.
Using this `MarriageAbroadCalculator` method will allow me to remove the
`:uk_residence_outcome_path` precalculate block.
This is no longer required as I'm using
`MarriageAbroadCalculator#outcome_path_when_resident_in_uk` in the
outcomes.
Using this `MarriageAbroadCalculator` method will allow me to remove the
`:ceremony_country_residence_outcome_path` precalculate block.
This is no longer required as I'm using
`MarriageAbroadCalculator#outcome_path_when_resident_in_ceremony_country`
in the outcomes.
The marriage-abroad regression tests are passing.

Updated using:

    $ rails r script/generate-checksums-for-smart-answer.rb \
    marriage-abroad
chrisroos added a commit that referenced this pull request Mar 19, 2016
…-path-precalculate-blocks

Remove marriage-abroad outcome path precalculate blocks
@chrisroos chrisroos merged commit e8400cb into master Mar 19, 2016
@chrisroos chrisroos deleted the remove-marriage-abroad-outcome-path-precalculate-blocks branch March 19, 2016 22:21
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.

1 participant