From fcee09f84f7097b30b1f642551a0bab312781dc8 Mon Sep 17 00:00:00 2001 From: teleivo Date: Thu, 4 Jan 2024 12:12:02 +0100 Subject: [PATCH] chore: make deprecated field easy to find for Tracker (#16056) These orderable fields cannot be annotated with Deprecated which is why we have this comment. Make it easier for us in team tracker by prefixing it a TODO for team tracker. --- .../controller/tracker/export/event/EventMapper.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/tracker/export/event/EventMapper.java b/dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/tracker/export/event/EventMapper.java index 1e8566f6c14f..f840ead21e73 100644 --- a/dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/tracker/export/event/EventMapper.java +++ b/dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/tracker/export/event/EventMapper.java @@ -72,7 +72,10 @@ public interface EventMapper entry("enrollmentStatus", "enrollment.status"), entry("event", "uid"), entry("followUp", "enrollment.followUp"), - entry("followup", "enrollment.followUp"), // Deprecated 2.41 + entry( + "followup", + "enrollment.followUp"), // TODO(tracker): Deprecated 2.41, making it a TODO so we + // tracker remember to remove this. entry("occurredAt", "occurredDate"), entry("orgUnit", "organisationUnit.uid"), entry("program", "enrollment.program.uid"), @@ -93,7 +96,11 @@ public interface EventMapper @Mapping(target = "orgUnit", source = "organisationUnit.uid") @Mapping(target = "occurredAt", source = "occurredDate") @Mapping(target = "scheduledAt", source = "scheduledDate") - @Mapping(target = "legacyFollowUp", source = "enrollment.followup") // Deprecated 2.41 + @Mapping( + target = "legacyFollowUp", + source = + "enrollment.followup") // TODO(tracker): Deprecated 2.41, making it a TODO so we tracker + // remember to remove this. @Mapping(target = "followUp", source = "enrollment.followup") @Mapping(target = "createdAt", source = "created") @Mapping(target = "createdAtClient", source = "createdAtClient")