-
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
Data loss issue #1214
Comments
On analysis of the db entry for individual with uuid "69f77ba9-177b-4fc1-a949-c7b5d9e8e5ac", we found that the Details are different across the PROD DB snapshots of 29Nov2023 and 04Dec2023PROD 04Dec2023[2023-12-04 17:36:23] Connected PROD 29Nov2023[ We queried the DB to figure out amount of individuals created by the useropenchs.public> select count(*) from individual where created_by_id = 8735 We needed to determine which APK version was used by the client to sync the data, so we queries the sync_telemetry table for the useropenchs.public> select * from sync_telemetry where user_id = 8735 order by last_modified_date_time desc There are only 13 rows for dates 03Oct2023 and 01Nov2023 for the user, indicating that the bulk of data uploaded by the user was not through APK but other means. We then looked for BulkImport Subjects files in S3 for Power Org and found a large number of files from the date 31Oct2023 till 30Nov2023Therefore, the data must have been introduced through the BulkImport Subjects route. This is a major point of concern, as Avni BulkSubject Import overwrites the Subjects based on the id column value if specified.This is also mentioned clearly in Avni Readme documentation here. ConclusionSInce Power admin users have uploaded BulkSubject create files with repetition in ID values, we have overwritten the entries based on the same, as per design. This is a User error, which has resulted in overwrite of data and needs no further intervention from Avni Product or support team. |
https://avni.freshdesk.com/a/tickets/3265
The text was updated successfully, but these errors were encountered: