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

ETL not showing updated Zscores #85

Closed
mahalakshme opened this issue Jan 24, 2024 · 1 comment
Closed

ETL not showing updated Zscores #85

mahalakshme opened this issue Jan 24, 2024 · 1 comment
Assignees

Comments

@mahalakshme
Copy link
Contributor

mahalakshme commented Jan 24, 2024

Related ticket: https://avni.freshdesk.com/a/tickets/3216

Issue:

As part of release 6.1.0 , migration for this card was run. Though observations in program_encounter table show the updated values, but ETL tables doesn't show updated values. From this report, last ETL run for the org in focus also seems to be successful.
Migration run: avniproject/avni-product#1463 (comment)

Example:

  • On doing the following,
select * from jss.individual_phulwari_growth_monitoring where individual_id=1299188 order by id desc;

you will find that the 'Weight for age z-score' is -8.5 for the first encounter visit in ETL table which is the old incorrect value.

  • If you check in the corresponding program encounter observation it is correctly updated as -6.71
@mahalakshme mahalakshme transferred this issue from avniproject/avni-product Jan 24, 2024
@mahalakshme mahalakshme moved this from In Analysis to Ready in Avni Product Jan 24, 2024
@1t5j0y 1t5j0y moved this from Ready to In Progress in Avni Product Jan 25, 2024
@1t5j0y 1t5j0y self-assigned this Jan 25, 2024
@1t5j0y
Copy link
Contributor

1t5j0y commented Jan 25, 2024

Issue suspected to be due to ETL for the org running while the updates were in progress (and moving etl sync status for the table after the updated time).

Recreated ETL schema for the affected org and values seem to be in sync.

Updated manual db update guide to reflect this learning.

@1t5j0y 1t5j0y moved this from In Progress to QA Ready in Avni Product Jan 25, 2024
@mahalakshme mahalakshme moved this from QA Ready to In QA in Avni Product Jan 25, 2024
@mahalakshme mahalakshme moved this from In QA to Done in Avni Product Jan 25, 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