-
Notifications
You must be signed in to change notification settings - Fork 14
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 initial support for unrelated relationship #339
Add initial support for unrelated relationship #339
Conversation
tests/integration/questionnaire/test_questionnaire_relationships_unrelated.py
Show resolved
Hide resolved
tests/integration/questionnaire/test_questionnaire_relationships_unrelated.py
Outdated
Show resolved
Hide resolved
…ub.com:ONSdigital/eq-questionnaire-runner into add-initial-support-for-unrelated-relationship
self.current_location.list_item_id, self.current_location.list_name | ||
) | ||
): | ||
return False |
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.
There should also be a check that the list name matches the for_list
of the parent. I think otherwise in a schema with more than one list, it would be possible to use the unrelated page with the wrong list?
self.add_person("John", "Doe") | ||
self.post({"anyone-else": "No"}) | ||
|
||
def test_relationship_unrelated_is_accessible_when_list_name_and_list_item_valid( |
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.
The test names could be made shorter without losing any clarity by removing relationship_unrelated
/ unrelated_relationship
(as all of the tests in this class are testing unrelated relationships).
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.
Husband or wife, or unrelated, what a question? I get the extra page and it looks good structurally, my only query is why if I use my list_item_id, I am giving an option to say I am related to myself, should it not be removed? The only other point is the url change, that we check that its ok.
This card doesn't cover filtering of the As for the URL, it was done after a discussion with @ajmaddaford. I did also bring it with the tech session as it makes things easier to deal with. But ultimately it was changed because the |
mmm, the filter according to the card is "to filter those who have not had a relationship established" its not quite the same |
Correct but it requires modifying how
Have added a small comment to the filter card to filter out the current list item. |
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.
Not a problem, the original card just didn't say that
What is the context of this PR?
Added the initial support unrelated relationship block.
The scope of this PR is just to add the initial screen with not specific functionality however there are quite a few places that doesn't work/haven't been accounted for as it does not impact this piece of work. For example the following are not correct:
A lot of concepts haven't really been thought about and may reveal issues when implementing more of the functionality. Also, it might make sense to extend this piece to support more of the feature so that this is a bit more complete and makes more sense.
How to review
Checklist