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
Persons with incomplete home addresses from different jurisdictions can not be merged #11017
Comments
I consider this a bug because it seems like there's a problem in our implementation, specifically the implementation of location merging. We definitely can't use the logic "if it's empty in the leading entity, copy it over" for jurisdictions here because that will inevitably lead to issues like the one reported here. We should refine this, but my suggestion would be to go with solution 2, i.e. if the home addresses don't match, copy the home address of the discarded person over to the other addresses of the leading person. Needs to be discussed with HZI though. |
@JaquM-HZI and @SahaLinaPrueger does the proposed solution number 2 seem suitable for you? |
@adinaflorea9 We discussed this: We go with solution Nr. 2. |
…ictions can not be merged - changes after review
…ictions can not be merged - changes after review
…ictions can not be merged - changes after review
…ictions can not be merged - changes after review
…ictions can not be merged - changes after review
…ictions can not be merged - changes after review
#11233) * #11017 - Persons with incomplete home addresses from different jurisdictions can not be merged * #11017 - Persons with incomplete home addresses from different jurisdictions can not be merged * #11017 - Persons with incomplete home addresses from different jurisdictions can not be merged - changes after review * #11017 - Persons with incomplete home addresses from different jurisdictions can not be merged - changes after review * #11017 - Persons with incomplete home addresses from different jurisdictions can not be merged - changes after review * #11017 - Persons with incomplete home addresses from different jurisdictions can not be merged - changes after review * #11017 - Persons with incomplete home addresses from different jurisdictions can not be merged - changes after review * #11017 - Persons with incomplete home addresses from different jurisdictions can not be merged - changes after review
As discussed with @sergiupacurariu I am reopening the ticket due to the following scenarios: I:
II: |
Verified ticket on the local machine using the latest version of SORMAS from the development branch - 1.79.0-SNAPSHOT(2cbcbbe). |
Problem Description
When using the person merge #5606 to try and merge persons that are from different jurisdictions (in their home address section) a warning appears if one of the persons has an incomplete home address.
A separate ticket has been created as in #5606 it was specified that information from the fields that are not filled in for the leading person should be filled with information from the discarded person. But it was not specified what should be done when the information is conflicting.
The scenario proposed considers 2 persons that are duplicates, one entry could be from a while ago when the person had an incomplete home address from jurisdiction 1, and the second entry for that person in their latest one, and has a complete home address from jurisdiction 2.
Steps:
Create a person that has the following home address:
Create a second person that would be considered a duplicate of the one from step1, but use the following home address:
Try to merge the 2 persons and have the person from step 1 as the leading person;
-> the merge is not possible, as the information from the community field from the discarded person can not be migrated into the leading person.
Proposed Change
Two options for the proposed change:
Would it be desired for the whole home address to be updated for the leading person when the home address information is from different jurisdictions (different districts, and/or different communities)?
Would it be desired for the whole home address to be transferred into the leading person in the form of a 'New entry' in the 'Addresses' section of the leading person?
Acceptance Criteria
Implementation Details
Additional Information
The text was updated successfully, but these errors were encountered: