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

Split marriage-abroad outcome for Poland #2622

Merged
merged 6 commits into from
Jul 11, 2016

Conversation

chrisroos
Copy link
Contributor

The current outcome template (outcome_opposite_sex_marriage_in_poland_when_residing_in_uk_or_poland) contains two logical outcomes:

  • One for residents of UK
  • One for residents of Poland

The outcome body contains multiple if/else statements that, when combined,
essentially results in one of two logical outcomes being displayed. Splitting
these logical outcomes and moving the "routing logic" to the flow is more
consistent with the majority of this Smart Answer. Note that there is some
common content between these logical outcomes but there is more that's
different so I still think it makes sense to split the template.

@floehopper floehopper self-assigned this Jul 7, 2016
@floehopper
Copy link
Contributor

LGTM 👍

The current outcome template (outcome_opposite_sex_marriage_in_poland_when_residing_in_uk_or_poland) contains two logical outcomes:

* One for residents of UK
* One for residents of Poland

The outcome body contains multiple `if/else` statements that, when combined,
essentially results in one of two logical outcomes being displayed.  Splitting
these logical outcomes and moving the "routing logic" to the flow is more
consistent with the majority of this Smart Answer. Note that there is some
common content between these logical outcomes but there is more that's
different so I still think it makes sense to split the template.

This change will make it easier to split the outcome in a subsequent commit.
The new outcome template is a copy of
outcome_opposite_sex_marriage_in_poland_when_residing_in_uk_or_poland.

I'll remove the logic and content relating to residents outside of the UK in a
subsequent commit.
I'll remove the logic and content for residents outside of Poland in a
subsequent commit.
I've removed all the logic and content related to residents of Poland.

This diff is best viewed using the `--ignore-all-space` option.
I've removed all the logic and content related to residents of the UK.

This diff is best viewed using the `--ignore-all-space` option.
Updating as the marriage-abroad regression tests are passing.
@chrisroos chrisroos force-pushed the split-marriage-abroad-outcome-for-poland branch from 1537f4a to 88282e7 Compare July 11, 2016 15:59
@chrisroos
Copy link
Contributor Author

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

@chrisroos chrisroos merged commit fe62cf4 into master Jul 11, 2016
@chrisroos chrisroos deleted the split-marriage-abroad-outcome-for-poland branch July 11, 2016 16:03
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