-
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
Content changes for opposite and same sex outcomes where user lives in UK or SA #2467
Conversation
67beb52
to
8b7de14
Compare
cd2d8b8
to
7c41882
Compare
7c41882
to
67e7d4c
Compare
calculator.resident_of_uk? || | ||
calculator.resident_of_ceremony_country? || | ||
calculator.resident_of_third_country? | ||
) |
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.
Is this check needed? A user must always be either a resident of the UK, a resident of South Africa or a resident of another country, so this check will always be truthy.
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.
@leenagupte this check initially started with like with the require for user either a uk resident or resident of ceremony_country
elsif calculator.ceremony_country == 'south-africa' &&
(
calculator.resident_of_uk? ||
calculator.resident_of_ceremony_country?
)
After factcheck FCO made another requirement for third_country
I have decided to keep it this way for explicit reasons, make it a bit more obvious the 3 potential areas affected by this node.
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.
I agree with @leenagupte about removing this check. I think it makes the code more complex for no real benefit.
Apart from my comments, LGTM. |
79229df
to
580a1c7
Compare
These changes affect All opposite and same sex outcomes where user lives in the United Kingdom or in South Africa. These changes were requested by the content team. Affecting only these URLs/pages: UK citizen living in the UK /marriage-abroad/y/south-africa/uk/partner_british/opposite_sex /marriage-abroad/y/south-africa/uk/partner_british/same_sex /marriage-abroad/y/south-africa/uk/partner_local/opposite_sex /marriage-abroad/y/south-africa/uk/partner_local/same_sex /marriage-abroad/y/south-africa/uk/partner_other/opposite_sex /marriage-abroad/y/south-africa/uk/partner_other/same_sex UK citizen in ceremony country /marriage-abroad/y/south-africa/ceremony_country/partner_british/opposite_sex /marriage-abroad/y/south-africa/ceremony_country/partner_british/same_sex /marriage-abroad/y/south-africa/ceremony_country/partner_local/opposite_sex /marriage-abroad/y/south-africa/ceremony_country/partner_local/same_sex /marriage-abroad/y/south-africa/ceremony_country/partner_other/opposite_sex /marriage-abroad/y/south-africa/ceremony_country/partner_other/same_sex UK citizen in third country /marriage-abroad/y/south-africa/third_country/partner_british/opposite_sex /marriage-abroad/y/south-africa/third_country/partner_british/same_sex /marriage-abroad/y/south-africa/third_country/partner_local/opposite_sex /marriage-abroad/y/south-africa/third_country/partner_local/same_sex /marriage-abroad/y/south-africa/third_country/partner_other/opposite_sex /marriage-abroad/y/south-africa/third_country/partner_other/same_sex Update marriage abroad test expectations. Add tests for marriage outcomes South Africa
580a1c7
to
a728525
Compare
Trello Story: https://trello.com/c/SSdBWMvO/107-marriage-abroad-south-africa
Factcheck
Expected changes
Before
After
Factcheck
Expected changes
Before
After
Factcheck
Expected changes
Before
After
Factcheck
Expected changes
Before
After