Skip to content

fix: format period names for stage-prefixed date dim. in aggregate queries (DHIS2-21531) - #23964

Merged
janhenrikoverland merged 2 commits into
masterfrom
DHIS2-21531_AGGR_METADATA_ITEMS_DATE_FIX
May 22, 2026
Merged

fix: format period names for stage-prefixed date dim. in aggregate queries (DHIS2-21531)#23964
janhenrikoverland merged 2 commits into
masterfrom
DHIS2-21531_AGGR_METADATA_ITEMS_DATE_FIX

Conversation

@luciano-fiandesio

@luciano-fiandesio luciano-fiandesio commented May 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes a bug where stage-prefixed date dimensions (e.g. A03MvHHogjR.EVENT_DATE:LAST_6_MONTHS) returned raw ISO period strings (e.g. "202102") as metadata item names instead of human-readable formatted names (e.g. "February 2021").

Regular pe dimensions already handled this correctly via DimensionalObjectProvider.
This change applies the same I18nFormat.formatPeriod() approach to
MetadataItemsHandler.addPeriodDimensionMetadataValue() for date query items with dimension values.

See: https://dhis2.atlassian.net/browse/DHIS2-21531

@luciano-fiandesio luciano-fiandesio added run-api-analytics-tests Enables analytics e2e tests run-api-analytics-tests-doris Enables analytics e2e tests on Doris labels May 20, 2026
@github-actions

Copy link
Copy Markdown

Surefire reports for analytics API tests against Doris have been pushed to the repository. View reports

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Surefire reports for analytics API tests against Doris have been pushed to the repository. View reports

@janhenrikoverland
janhenrikoverland merged commit 13abf21 into master May 22, 2026
18 checks passed
@janhenrikoverland
janhenrikoverland deleted the DHIS2-21531_AGGR_METADATA_ITEMS_DATE_FIX branch May 22, 2026 13:20
@janhenrikoverland janhenrikoverland changed the title fix: format period names for stage-prefixed date dim. in aggregate queries fix: format period names for stage-prefixed date dim. in aggregate queries (DHIS2-21531) Jun 23, 2026
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 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