Skip to content

fix: Initial dataValue audit log [DHIS2-20047]#96

Open
gqcorneby wants to merge 2 commits into
2.41from
fix/initial-datavalue-audit-DHIS2-20047
Open

fix: Initial dataValue audit log [DHIS2-20047]#96
gqcorneby wants to merge 2 commits into
2.41from
fix/initial-datavalue-audit-DHIS2-20047

Conversation

@gqcorneby

@gqcorneby gqcorneby commented Aug 28, 2025

Copy link
Copy Markdown

Background

Currently, when entering a value in the Data Entry app:

  • The first value is stored as a data value, including metadata (who entered it, when).
  • However, when the value is changed, the initial information is replaced and the audit log only stores the new value and who updated it.
  • As a result, the information about who created the initial value and when is lost as soon as the value is updated.

Issue

The root issue is the placement of the audit creation logic when initializing the dataValue.

  • Currently: audit creation only happens when re-initiating after soft deletion

Fix

Move the audit creation outside of condition, ensuring that an audit entry is always created.

Additional References

  • similar issue reported: community and the resulting jira ticket jira
    • it was stated that one concern with "CREATE" audit logs is the table size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant