Skip to content

task: Remove storedBy from tracker objects [DHIS2-21537] - #23971

Merged
muilpp merged 4 commits into
masterfrom
DHIS2-21537-TE-enrollments-events
May 27, 2026
Merged

task: Remove storedBy from tracker objects [DHIS2-21537]#23971
muilpp merged 4 commits into
masterfrom
DHIS2-21537-TE-enrollments-events

Conversation

@muilpp

@muilpp muilpp commented May 21, 2026

Copy link
Copy Markdown
Contributor

I’m removing storedBy from tracked entities, enrollments, and events because the same information is already available in createdByUserInfo. At the API level, Android and Frontend can use createdBy instead.

The failing tests are in analytics, so those need to be fixed before I can merge this PR.

@muilpp muilpp changed the title Dhis2 21537 te enrollments events task: Remove storedBy from tracker objects [DHIS2-21537] May 25, 2026
muilpp and others added 2 commits May 25, 2026 11:38
@muilpp
muilpp force-pushed the DHIS2-21537-TE-enrollments-events branch from 037cf84 to e14b5b1 Compare May 25, 2026 09:38
@muilpp
muilpp marked this pull request as ready for review May 25, 2026 10:14
@muilpp
muilpp requested a review from a team as a code owner May 25, 2026 10:14

@ameenhere ameenhere left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor naming comment. Approving anyway. Hope we can get the Analytics fixes in the same branch before merging

@ameenhere
ameenhere requested a review from a team May 25, 2026 20:56
eventDataValue.setDataElement(dataElement);
JsonObject dataValueJson = JsonMixed.of(dataValueResult).asObject();
eventDataValue.setValue(dataValueJson.getString("value").string(""));
eventDataValue.setStoredBy(dataValueJson.getString("storedBy").string(null));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we still have storedBy in event data values? Same for single events

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm removing it from event data values in this other PR

@maikelarabori maikelarabori added the run-api-analytics-tests Enables analytics e2e tests label May 27, 2026
@sonarqubecloud

Copy link
Copy Markdown

@muilpp
muilpp merged commit 488028f into master May 27, 2026
18 checks passed
@muilpp
muilpp deleted the DHIS2-21537-TE-enrollments-events branch May 27, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-api-analytics-tests Enables analytics e2e tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants