Skip to content
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

WIP: Add client database side validations to report issues through bugsnag #1377

Open
himeshr opened this issue Apr 16, 2024 · 1 comment
Open
Assignees

Comments

@himeshr
Copy link
Contributor

himeshr commented Apr 16, 2024

Motivation

In certain scenarios, we make complex changes to the Avni-client Realm DB Datamodel, which might end up causing data loss issue on the client. These when synced to server, end-up wiping out the old data. This issue though takes a lot of time to surface and reach the Product team. We should rather have validations in place that ensures that there is no rampant errosion of data and notify when that changes using bugsnag.

Ex: A background test that runs every midnight, which maintains count of say ProgramEnrolment entities amongst other entity types, that have non empty observations and notifies when there is a change of more than 10 entries or decrease by 10%, from previous recorded count for that entityType.

Acceptance Criteria

Run data-validation checks once every day, for all the major entities that store transactional data on the client, to ensure that Observations data count is not changed drastically over the last 24 hours.

@himeshr himeshr self-assigned this Apr 16, 2024
@mahalakshme
Copy link
Contributor

Suggestions given:

  • Issue might not happen again
  • Have some tables immutable - done in other systems?
  • Check added in server side for individual and enrolment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New Issues
Development

No branches or pull requests

2 participants