Skip to content

fix: upgrade analytics to get the org unit apostrophe fix (DHIS2-17302) - #3483

Merged
janhenrikoverland merged 2 commits into
masterfrom
fix/upgrade-analytics-DHIS2-17302
Dec 1, 2026
Merged

janhenrikoverland merged 2 commits into
masterfrom
fix/upgrade-analytics-DHIS2-17302

Conversation

@janhenrikoverland

@janhenrikoverland janhenrikoverland commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Implements DHIS2-17302

Description

Upgrades @dhis2/analytics from 29.8.1 to 29.8.2 to pick up the fix from dhis2/analytics#1878: apostrophes were shown HTML-escaped (') in org unit texts.

  • In the org unit selector, the "Selected: ..." summary text, visible with e.g. a French locale.
  • In the pivot table title row, whenever a selected org unit name contains an apostrophe. This one is not locale dependent.

29.8.2 is the smallest version containing the fix and it is the only change in this bump. Later analytics releases (29.9.0 abort signal, 29.10.0 v44 period labels) are intentionally left out so they can be adopted separately.


Testing

Build of master (analytics 29.8.1) versus build of this branch (29.8.2), running against a 2.42 instance with the Sierra Leone demo database. The French UI was forced in the browser; no server settings were changed.

Case master this branch
FR, org unit modal, user org unit Sélectionné : Unités d'organisation de l'utilisateur Sélectionné : Unités d'organisation de l'utilisateur
FR, org unit in tree + level + group Sélectionné : 1 unité d'org, 1 niveau et 1 groupe Sélectionné : 1 unité d'org, 1 niveau et 1 groupe
EN, pivot table title, filter on Sierra Leone + St. Mary's Clinic + District level District levels in Sierra Leone, St. Mary's Clinic District levels in Sierra Leone, St. Mary's Clinic
EN, column chart title, same selection correct correct

All six combinations of user org units, tree org units, levels and groups in the modal summary show the escaped entity on master and a literal apostrophe on this branch.

Cypress specs covering the org unit modal pass on both builds: dimensions/orgUnit.cy.js 10/10, dimensionsPanel.cy.js 18/18, drillDown.cy.js 12/12. Jest (40 suites / 188 tests) and a production build pass.

Not tested: level or group names containing an apostrophe (none exist in the database; they go through the same code path), and the dashboard plugin.


Quality checklist

Add N/A to items that are not applicable.

  • Dashboard tested — N/A (not tested inside Dashboard; patch-level dependency bump)
  • Cypress and/or Jest tests added/updated — N/A (dependency bump, covered in analytics)
  • Docs added — N/A
  • d2-ci dependency replaced — N/A (released npm version)
  • Tester approved (name) — N/A (verified in the running app as described above)

🤖 Generated with Claude Code

@dhis2-dev-status

dhis2-dev-status Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Release check (trial)

Jira issue DHIS2-17302
Issue type Bug
Expected commit type fix, perf (title uses fix ✓)
Issue target versions Missing
PR target version 2.44, 2.43.3 (frozen), 2.42.8, 2.41.12
PR fix version 2.44, 2.42.8, 2.41.12 (if merged now)
PR fixed app version v101.6.7 if merged now (fix → patch; latest is v101.6.6)
Jira Fixed App Version: empty
Frozen version Yes: patch/2.43.3 pins v101.6.5, so this reaches 2.43.3 only if the pin moves

@dhis2-bot

Copy link
Copy Markdown
Contributor

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

@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2026

Copy link
Copy Markdown

@dhis2-bot
dhis2-bot temporarily deployed to netlify December 1, 2026 23:18 Inactive
@janhenrikoverland
janhenrikoverland merged commit b3aa68e into master Dec 1, 2026
48 of 50 checks passed
@janhenrikoverland
janhenrikoverland deleted the fix/upgrade-analytics-DHIS2-17302 branch December 1, 2026 23:37
dhis2-bot added a commit that referenced this pull request Dec 1, 2026
## [101.6.7](v101.6.6...v101.6.7) (2026-12-01)

### Bug Fixes

* upgrade analytics to get the org unit apostrophe fix (DHIS2-17302) ([#3483](#3483)) ([b3aa68e](b3aa68e))
@dhis2-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 101.6.7 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

This branch was previously deployed

1 inactive deployment
netlify — 202bd186 Deployed Dec 1, 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