Skip to content

feat: support ENROLLMENT_OU dimension in TE queries (DHIS2-21072)#24284

Open
luciano-fiandesio wants to merge 3 commits into
masterfrom
DHIS2-21072-enrollment-ou
Open

feat: support ENROLLMENT_OU dimension in TE queries (DHIS2-21072)#24284
luciano-fiandesio wants to merge 3 commits into
masterfrom
DHIS2-21072-enrollment-ou

Conversation

@luciano-fiandesio

Copy link
Copy Markdown
Contributor

Summary

Adds support for two self-documenting enrollment org-unit keywords in the
TrackedEntity analytics endpoint /api/analytics/trackedEntities/query:

  • ENROLLMENT_OU — alias for programId.ou
    e.g. dimension=IpHINAT79UW.ENROLLMENT_OU:USER_ORGUNIT
  • enrollmentouname — alias for programId.ouname
    e.g. headers=IpHINAT79UW.enrollmentouname

Both behave as pure aliases — identical scoping, SQL, headers, and metadata
as their canonical dimension.

@janhenrikoverland janhenrikoverland added the deploy Deploy DHIS2 instance with IM. label Jun 25, 2026
@luciano-fiandesio luciano-fiandesio added run-api-analytics-tests Enables analytics e2e tests run-api-analytics-tests-doris Enables analytics e2e tests on Doris run-api-analytics-tests-clickhouse and removed deploy Deploy DHIS2 instance with IM. labels Jun 25, 2026
@janhenrikoverland janhenrikoverland added the deploy Deploy DHIS2 instance with IM. label Jun 25, 2026
@janhenrikoverland janhenrikoverland changed the title feat:support ENROLLMENT_OU dimension in TE queries feat: support ENROLLMENT_OU dimension in TE queries (DHIS2-21072) Jun 26, 2026
@luciano-fiandesio luciano-fiandesio force-pushed the DHIS2-21072-enrollment-ou branch from ebb7cab to b776478 Compare June 26, 2026 09:56
@janhenrikoverland janhenrikoverland added deploy Deploy DHIS2 instance with IM. and removed deploy Deploy DHIS2 instance with IM. labels Jun 26, 2026
@github-actions

Copy link
Copy Markdown

Instance deployed to https://dev.im.dhis2.org/pr-24284

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deploy Deploy DHIS2 instance with IM. run-api-analytics-tests Enables analytics e2e tests run-api-analytics-tests-clickhouse run-api-analytics-tests-doris Enables analytics e2e tests on Doris

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants