Basic 2.42 support for EFH#1064
Draft
MatiasArriola wants to merge 6 commits into
Draft
Conversation
Update d2-api usage to the 2.40 typed API surface and centralize d2-api type exports through the local wrapper. Remove userCredentials usage. Adjust tracker event and tracked entity repositories for the newer tracker response shapes, and model schema access patterns. Update metadata/model helpers and UI summary components to use the wrapper helpers instead of indexing d2-api models directly.
… 40) fix: mirage tests fetch interception after d2-api upgrade fix: MetadataPayloadBuilder tests to not depend on call order fix: userRoles transformation to fallback to top-level userRoles if not under userCredentials
BundleMonNo change in files bundle size Groups updated (1)
Final result: ✅ View report in BundleMon website ➡️ |
/events api endpoints are deprecated since DHIS 36 and removed in 42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 References
📝 Implementation
@eyeseetea/d2-apifrom1.16.0to1.21.0and move the app typings/imports from DHIS2.36to2.40to support EFH / DHIS 2.42.getApiModel,getModelSchema) so runtime lookups keep working with the newer d2-api typing model.usernameanduserRolesinstead ofuserCredentials.*, which is required by newer DHIS versions.userRolesin metadata transformationscode:eq:defaultas a temporary workaround when retrieving default metadata objects/tracker/eventsinstead of/eventswhich is deprecated in v36+ and removed in v42api.models[...]access.fetchthrough the XHR polyfill so Mirage/Pretender can still intercept requests, and by removing brittle assertions that depended on metadata fetch call order..yarnrc.yml.📹 Screenshots/Screen capture
🔥 Is there anything the reviewer should know to test it?
userCredentialshandling.2.40/ EFH environment, especially:📑 Others
Any change in the GUI library? If so, what branch/PR?
No.
Any change in the D2 Api? If so, what branch/PR?
No backend/API repo changes in this PR. This branch only upgrades the app dependency to
@eyeseetea/d2-api@1.21.0.