Skip to content

Support for v42#578

Open
eperedo wants to merge 6 commits intofeature/new-dashboard-logic-869cfc51ufrom
feature/migration-v42-869cnr7nt
Open

Support for v42#578
eperedo wants to merge 6 commits intofeature/new-dashboard-logic-869cfc51ufrom
feature/migration-v42-869cnr7nt

Conversation

@eperedo
Copy link
Copy Markdown
Contributor

@eperedo eperedo commented Apr 4, 2026

📌 References

📝 Implementation

  • Migrate d2-api to v42
  • Migrate to new dashboard and data entry app
  • Update to new fields and new structures like: userCredentials and the new sharing object for permissions
  • Generate custom forms for target/actual dataSets in order to enable old dhis2 events like dhis2.de.event.dataValueSaved and global variables like dhis2.de.currentExistingValue. Custom forms are generated after creating/editing a project and in actions "Add Target/Actual values"

🔥 Notes for the reviewer

This PR depends on #577 because there's a lot of changes related to dashboard and this could avoid a lot of merge conflicts in the future.

🎨 Screenshots

image

@eperedo eperedo requested a review from Ramon-Jimenez April 4, 2026 22:15
@Ramon-Jimenez
Copy link
Copy Markdown
Contributor

@eperedo Just did some quick checks using the new 'Add target values' which is using the new Data Entry app, and we are not getting anymore the validation pop-up warnings as soon as you enter data.

They were shown on v40 as soon as you type a wrong value, but they are not kicking in when you use v42. Is this a limitation from new Data Entry or is there something not working in our code?

How to replicate: for the project you show in your screenshot, try animals distributed 100 and goats 200. This on v40 is triggering a warning as soon as you type in 200, but on v42 it is not.

eperedo and others added 3 commits April 15, 2026 20:05
…ad of public

Country dashboards were set to public read+write access (rw------),
allowing any user to see all country dashboards regardless of their
project assignments. Now sharing is restricted to the aggregated
users and user groups from all projects within the country, matching
the pattern already used by project dashboards.

Adds migration 10 to regenerate all existing country dashboards with
the corrected sharing settings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

2 participants