-
Notifications
You must be signed in to change notification settings - Fork 22
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 client migration to remove the individual outside of user's catchment #1161
Comments
based on discussions with @mahalakshme . making the migration independent of uuid. |
…with lowestAddressLevel = null
I thought General.logDebug does not work in avni-models. In any case, not sure if it is a good idea to log in a loop. Also, what happens to related objects when the individual is deleted? |
…elated to individual along with individual
…with lowestAddressLevel = null (cherry picked from commit a205093)
…elated to individual along with individual (cherry picked from commit 3c9d21e)
logging inside loop not addressed. |
@1t5j0y : I've left logging in place to aid debugging. i don't expect the number of such records to be high, and there's one log per record. |
Test DetailsThe approaches tried to create additional individuals with "null" lowestAddressLevels where as follows:
Above scenarios failed due to
Because of these, we are forced to test this by use of FastSync replace, which can only help test already existing data anamolies and not create new ones. |
…undefined" error after running migration 180
In-order to Validate this better, modified the filter criteria for migration180, to be all individuals, irrespective of whether the addressLevel is null or not.
This helped validate various type of deletions involved in the migration180, such as
|
Whats the issue:
The individual with uuid, 572b1b77-f886-4770-949b-d95a3959d232 is in some of the user's device though it doesn't belong to the users' catchment. Hence its lowestAddressLevel in realmdb is null. This is causing app crash when the user clicks on the individual card from say, the subject search results page.
Analysis:
To do:
Out of scope:
Identifying the root cause of the issue since enough time has been spent and now we have a non-null check added on realmdb tables to identify such issues ahead.
The text was updated successfully, but these errors were encountered: