-
Notifications
You must be signed in to change notification settings - Fork 400
task: Remove storedBy from tracker objects [DHIS2-21537] #23971
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
8cd5250
task: Remove storedBy from tracker objects [DHIS2-21537]
muilpp e14b5b1
task: Fix unit tests [DHIS2-21537]
muilpp 48ad48c
task: Rename stored by migration file [DHIS2-21537]
muilpp f1db651
Merge branch 'master' into DHIS2-21537-TE-enrollments-events
maikelarabori File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...igration/2.44/V2_44_8__drop_stored_by_from_tracked_entities_enrollments_and_events_by.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| alter table trackedentity drop column if exists storedby; | ||
| alter table enrollment drop column if exists storedby; | ||
| alter table trackerevent drop column if exists storedby; | ||
| alter table singleevent drop column if exists storedby; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -142,7 +142,6 @@ class JdbcTrackerEventStore { | |
| entry("enrollment.followUp", "en_followup"), | ||
| entry("status", "ev_status"), | ||
| entry("scheduledDate", "ev_scheduleddate"), | ||
| entry("storedBy", "ev_storedby"), | ||
| entry("lastUpdatedBy", "ev_lastupdatedbyuserinfo"), | ||
| entry("createdBy", "ev_createdbyuserinfo"), | ||
| entry("created", "ev_created"), | ||
|
|
@@ -298,8 +297,6 @@ private List<TrackerEvent> fetchEvents( | |
| } | ||
| coc.setCategoryOptions(options); | ||
| event.setAttributeOptionCombo(coc); | ||
|
|
||
| event.setStoredBy(resultSet.getString("ev_storedby")); | ||
| event.setScheduledDate(resultSet.getTimestamp("ev_scheduleddate")); | ||
| event.setOccurredDate(resultSet.getTimestamp("ev_occurreddate")); | ||
| event.setCreated(resultSet.getTimestamp("ev_created")); | ||
|
|
@@ -397,9 +394,9 @@ private EventDataValue parseEventDataValue( | |
| eventDataValue.setDataElement(dataElement); | ||
| JsonObject dataValueJson = JsonMixed.of(dataValueResult).asObject(); | ||
| eventDataValue.setValue(dataValueJson.getString("value").string("")); | ||
| eventDataValue.setStoredBy(dataValueJson.getString("storedBy").string(null)); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we still have
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm removing it from event data values in this other PR |
||
| eventDataValue.setProvidedElsewhere( | ||
| dataValueJson.getBoolean("providedElsewhere").booleanValue(false)); | ||
| eventDataValue.setStoredBy(dataValueJson.getString("storedBy").string(null)); | ||
|
|
||
| eventDataValue.setCreated(DateUtils.parseDate(dataValueJson.getString("created").string(""))); | ||
| if (dataValueJson.has("createdByUserInfo")) { | ||
|
|
@@ -719,7 +716,7 @@ private void addSelect(StringBuilder sql, TrackerEventQueryParams params) { | |
| ev.eventid as ev_id, ev.status as ev_status, | ||
| ev.occurreddate as ev_occurreddate, ev.scheduleddate as ev_scheduleddate, | ||
| ev.eventdatavalues as ev_eventdatavalues, | ||
| ev.completedby as ev_completedby, ev.storedby as ev_storedby, | ||
| ev.completedby as ev_completedby, | ||
| ev.created as ev_created, ev.createdatclient as ev_createdatclient, | ||
| ev.createdbyuserinfo as ev_createdbyuserinfo, | ||
| ev.lastupdated as ev_lastupdated, ev.lastupdatedatclient as ev_lastupdatedatclient, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.