Skip to content

Commit

Permalink
feat: Sort data elements and event fields as single unit [DHIS2-18012]
Browse files Browse the repository at this point in the history
  • Loading branch information
muilpp committed Dec 18, 2024
1 parent 86919cc commit d4c9da3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class HibernateEventChangeLogStore {
private static final String COLUMN_CHANGELOG_USER = "ecl.createdByUsername";
private static final String COLUMN_CHANGELOG_DATA_ELEMENT = "d.uid";
private static final String COLUMN_CHANGELOG_FIELD = "ecl.eventField";
private static final String ORDER_DATA_ITEM_EXPRESSION =
private static final String ORDER_CHANGE_EXPRESSION =
"CONCAT(COALESCE(d.formname, ''), COALESCE(" + COLUMN_CHANGELOG_FIELD + ", ''))";
private static final String DEFAULT_ORDER =
COLUMN_CHANGELOG_CREATED + " " + SortDirection.DESC.getValue();
Expand All @@ -71,7 +71,7 @@ public class HibernateEventChangeLogStore {
Map.ofEntries(
entry("createdAt", COLUMN_CHANGELOG_CREATED),
entry("username", COLUMN_CHANGELOG_USER),
entry("change", ORDER_DATA_ITEM_EXPRESSION));
entry("change", ORDER_CHANGE_EXPRESSION));

private static final Map<Pair<String, Class<?>>, String> FILTERABLE_FIELDS =
Map.ofEntries(
Expand Down

0 comments on commit d4c9da3

Please sign in to comment.