Skip to content

Support for v42 - #578

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

eperedo wants to merge 48 commits into
feature/new-dashboard-logic-869cfc51ufrom
feature/migration-v42-869cnr7nt

Conversation

@eperedo

@eperedo eperedo commented Apr 4, 2026 •

Copy link
Copy Markdown
Contributor

📌 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 25 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>
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 via ProjectSharing.

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>
…data-management-app into fix/country-dashboard-sharing
Block navigation when a benefit data element has values entered but its
paired people data element is empty (and vice versa), surfacing an error
that the user must resolve before leaving the data entry screen.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Fix country dashboard sharing: restrict access to project users/groups
…ation

Paired indicator validation on Actual/Target page exit
get users details before data review notification
Ramon-Jimenez and others added 20 commits August 5, 2026 09:33
… search box width to show full placeholder in small screens
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