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

feat: Migrate TEA change logs into new table [DHIS2-18474] #19321

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

muilpp
Copy link
Contributor

@muilpp muilpp commented Nov 27, 2024

This PR is the first one focusing on tracked entity change logs:

  • Migrates TE change logs to the new table, where both previous and current values will be present.
  • The encrypted values in the old table will not be migrated to the new one, as discussed on Slack.
  • Refactored the TrackedEntityChangeLogServiceTest to extend TrackerTest, as was already done for event change logs.
  • Similarly to event change logs, Hibernate is used to fetch and create records, and a new mapper is introduced for the view in the web layer.

@muilpp muilpp marked this pull request as ready for review November 27, 2024 19:34
@muilpp muilpp requested a review from a team as a code owner November 27, 2024 19:34
Copy link

sonarcloud bot commented Nov 27, 2024

update="false" property-ref="username"/>

<many-to-one name="programAttribute" class="org.hisp.dhis.program.ProgramTrackedEntityAttribute"
column="trackedentityattributeid" insert="false" update="false" access="field" property-ref="attribute" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just making sure that "trackedentityattributeid" was indeed the intention here. Even for ProgramAttribute?

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.

2 participants