Skip to content

[feature] Migration to DHIS2 v42#346

Open
tokland wants to merge 28 commits intodevelopmentfrom
feature/v42-migration
Open

[feature] Migration to DHIS2 v42#346
tokland wants to merge 28 commits intodevelopmentfrom
feature/v42-migration

Conversation

@tokland
Copy link
Copy Markdown
Contributor

@tokland tokland commented Mar 25, 2026

📌 References

📝 Implementation

🦶 Usability changes to aggregated Data Entry

(To be confirmed by the client)

  • Organisation units selector: Show only org units in the selected data set.
  • Period selector: Show only periods for the selected data set + organisation unit.

✋ Changes to dhis.conf

https://docs.dhis2.org/en/full/manage/dhis-core-version-master/system-administration-guide.html

DHIS2 +42 has set restrictive defaults to configuration settings that limit categories and category combos. Make sure to update dhis.conf, as default values are very low and the app won't work with them. Proposal:

Defaults:

# The maximum number of category options in a single category
metadata.categories.max_options = 50

# The maximum number of categories per category combo
metadata.categories.max_per_combo = 5

# The maximum for the product of the number of options of the categories in a category combo
# Must always be >= metadata.categories.max_options
metadata.categories.max_combinations = 500

Proposal (higher max_options, to accommodate all teams):

metadata.categories.max_options = 50000
metadata.categories.max_per_combo = 5
metadata.categories.max_combinations = 100000

@bundlemon
Copy link
Copy Markdown

bundlemon Bot commented Mar 25, 2026

BundleMon

No change in files bundle size

Groups updated (1)
Status Path Size Limits
Build Folder
./**/*
1.93MB (+52.18KB +2.71%) +20%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@tokland tokland changed the base branch from development to refactor/clean-arch-and-ts April 20, 2026 08:38
@adrianq adrianq changed the base branch from refactor/clean-arch-and-ts to development April 21, 2026 10:18
tokland added 2 commits April 22, 2026 13:17
Upgrade @dhis2/app-runtime to 3.17.0 (adds @dhis2/data-engine peer),
render the Aggregate Data Entry app via <Plugin> with typed
plugin-specific props, and allow overriding the plugin URL for local
development via VITE_DATA_ENTRY_PLUGIN_URL.
Mirror the DataEntry approach: inject a <style> element into the
iframe's document with display:none rules instead of querying and
mutating the DOM. This removes the setDashboardStyling /
waitforElementToLoad polling, the findDOMNode-via-string-ref, and
unifies the title format across Dashboard and DataEntry.
@tokland tokland marked this pull request as ready for review April 24, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant