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

Rerun IHMP restore fix #1494

Closed
mahalakshme opened this issue Feb 1, 2024 · 3 comments
Closed

Rerun IHMP restore fix #1494

mahalakshme opened this issue Feb 1, 2024 · 3 comments
Assignees

Comments

@mahalakshme
Copy link

mahalakshme commented Feb 1, 2024

Need:

This will help restoring around 150 registeration details and around 20 enrolment details.

Acceptance criteria:

Rerun the data restore run for IHMP as part of this card, for individual and enrolment tables.

@mahalakshme mahalakshme converted this from a draft issue Feb 1, 2024
@mahalakshme mahalakshme moved this from In Analysis to Ready in Avni Product Feb 2, 2024
@petmongrels petmongrels moved this from Ready to In Progress in Avni Product Feb 5, 2024
@petmongrels petmongrels self-assigned this Feb 5, 2024
@petmongrels petmongrels moved this from In Progress to QA Ready in Avni Product Feb 11, 2024
@mahalakshme mahalakshme moved this from QA Ready to In QA in Avni Product Feb 12, 2024
@mahalakshme
Copy link
Author

mahalakshme commented Feb 12, 2024

@petmongrels was it run both for oct29 and nov29 backup? From the testing found, when compared to the time this card was created, more data is lost. checked for mother enrolment alone - data for 17 more mother enrolments were lost.

select individual.id, first_name,
       address_level.title,
       individual.observations->>'24dabc3a-6562-4521-bd42-5fff11ea5c46',
       individual.observations->>'82fa0dbb-92f9-4ec2-9263-49054e64d909',
       program_enrolment.created_date_time,
       program_enrolment.last_modified_date_time
from program_enrolment join individual on program_enrolment.individual_id = individual.id
join address_level on individual.address_id = address_level.id
         where program_id=1 and program_enrolment.observations->>'1cc6fd5d-1359-483e-a971-4bf36e34a72d' is null
and program_enrolment.last_modified_date_time > '2023-10-01'::timestamptz;

@petmongrels
Copy link

only nov29 backup. do we have to run for oct29 backup also.

@mahalakshme
Copy link
Author

yes yes if its less work will be helpful

@mahalakshme mahalakshme moved this from In QA to In Progress in Avni Product Feb 15, 2024
@petmongrels petmongrels moved this from In Progress to Done in Avni Product Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants