Skip to content

feat: allow short name as display property in orgunit tree (DHIS2-21511) - #3478

Merged
janhenrikoverland merged 1 commit into
masterfrom
fix/org-unit-tree-short-name
Oct 4, 2026
Merged

janhenrikoverland merged 1 commit into
masterfrom
fix/org-unit-tree-short-name

Conversation

@janhenrikoverland

@janhenrikoverland janhenrikoverland commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

Implements DHIS2-21562

Description

The org unit tree always showed displayName, even when the analysis display property was set to short name.

Three changes were needed:

  • @dhis2/analytics: OrgUnitDimension now passes displayNameProp to OrganisationUnitTree as displayProperty
  • @dhis2/ui: OrganisationUnitTree supports the displayProperty prop
  • AppWrapper: the display property is now read from /userSettings instead of me.settings. me.settings only contains values the user has set explicitly, so a system-level short name setting was ignored for users without their own setting. /userSettings falls back to the system setting.

Note: since the system setting is now respected, users who relied on the fallback will see short names wherever DV uses the display property (dimension panel, dialogs, downloads), not only in the org unit tree.

image

@dhis2-bot

Copy link
Copy Markdown
Contributor

🚀 Deployed on https://pr-3478.data-visualizer.netlify.dhis2.org

@dhis2-bot
dhis2-bot temporarily deployed to netlify October 4, 2026 11:31 Inactive
@janhenrikoverland janhenrikoverland changed the title fix: respect short name display property in org unit tree [DHIS2-21562] fix: respect short name display property in org unit tree (DHIS2-21562) Oct 4, 2026
@janhenrikoverland janhenrikoverland changed the title fix: respect short name display property in org unit tree (DHIS2-21562) feat: allow short name as display property in orgunit tree (DHIS2-21511) Oct 4, 2026
Read display property from /userSettings so the system setting is used
as a fallback when the user has not set one, and upgrade
@dhis2/analytics and @dhis2/ui so the org unit tree receives and
applies the display property.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@janhenrikoverland
janhenrikoverland force-pushed the fix/org-unit-tree-short-name branch from 75ac178 to 60f4a68 Compare October 4, 2026 12:18
@sonarqubecloud

sonarqubecloud Bot commented Oct 4, 2026

Copy link
Copy Markdown

@janhenrikoverland
janhenrikoverland merged commit 9bcbbd9 into master Oct 4, 2026
33 checks passed
@janhenrikoverland
janhenrikoverland deleted the fix/org-unit-tree-short-name branch October 4, 2026 12:54
dhis2-bot added a commit that referenced this pull request Oct 4, 2026
## [101.6.5](v101.6.4...v101.6.5) (2026-10-04)

### Bug Fixes

* respect short name display property in org unit tree [DHIS2-21562] ([#3478](#3478)) ([9bcbbd9](9bcbbd9))
@dhis2-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 101.6.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

This branch was successfully deployed

1 active deployment
netlify — 60f4a680 Deployed Oct 4, 2026 by dhis2-bot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants