avniproject / avni-server

Backend APIs for Avni
https://avniproject.org
GNU Affero General Public License v3.0
7 stars 25 forks source link

Case insensitive location matching #724

Closed mahalakshme closed 5 months ago

mahalakshme commented 5 months ago

https://avni.freshdesk.com/a/tickets/3751 https://avni.freshdesk.com/a/tickets/3897

Issue:

Frequently same location with different cases are uploaded leading to duplicate locations and corrupted data(individuals registered in both locations). This in turn causes issues when updating locations, say when trying to update location properties via CSV since multiple locations with same parent would exist.

Screenshot 2024-05-03 at 9 08 40 AM

AC:

Screenshot 2024-05-03 at 9 19 26 AM
1t5j0y commented 5 months ago
mahalakshme commented 5 months ago

@1t5j0y can you share some screenshot of the error message. Mentioned the AC for error message so, since it was also the way how it was handled currently in certain cases. You mean we will be showing the toast in the screenshot along with the error message in the field? If so, that is fine. If not kindly share screenshot.

1t5j0y commented 5 months ago

@mahalakshme here you go image

mahalakshme commented 5 months ago

@1t5j0y found the below issue:

mahalakshme commented 5 months ago

Joy mentioned the above is handled

AchalaBelokar commented 5 months ago
himeshr commented 5 months ago

@AchalaBelokar and @mahalakshme As per our discussion, we do not have to mark the csv upload entry as error, when the case is not same as previous value for the same addressLevel, as it helps avoid User reuploads with minor case corrections. So moving it back to QA Ready, for further validation if needed.

AchalaBelokar commented 5 months ago

edit location.csv

errors-edit location (1).csv

mahalakshme commented 5 months ago

@AchalaBelokar found it is working fine, in rwb staging. tested with below 2. only issue is that for Edit+create it expects parent locations to be of same case - which can be fixed later(as part of this card - need not be blocker for release), since it will not lead to corrupted data

edit_location_edit_rwb_2 copy.csv edit_location_edit_rwb_2.csv