-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Methods for metadata export #167
Comments
Hi! Due to a lack of activity on this issue over time (7.776*10^9 ms and counting, to be precise) it seems to be stale. If there is no further progress on it, it will be closed automatically. If this is still relevant, maybe there is something you can do to move it forward? For example provide further information in a comment, or supply a PR? Any activity on this issue will keep it open. Thanks! 🤖 |
In several applications (5 to be precise in the last year) we use the metadata endpoints through axios instead of d2 as the main connector to DHIS2. Real world scenarios Data entry apps for datasets and programs. We use the /dataSets/metadata and /programs/metadata to get everything in one request instead of doing multiple requests to the server to retrieve all the categories, categoryOptions, categoryOptionCombos, sections, dataElements, programStages... Metadata synchronization. We sometimes require to obtain multiple metadata objects of different types in a same request. Traversing the whole metadata database without the /metadata endpoint (using the "id:in" filter) is impossible without either growing old or crashing the server with internal java OOM. |
We are using metadata export at one of our DHIS2 apps at UPC and we're building it on-top of d2 library.
We find it would be useful to:
Access the general export "/api/metadata.json" endpoint directly from the d2 library.
Access the specific export endpoints (such as /api/dataSets/ID/metadata.json) to gather elements with dependencies.
Include in the d2 models an attribute to know if the modelProperties are included/excluded from the metadata exporting on DHIS2.
I'm not sure if GitHub is the proper method for asking such questions, please suggest any better option for discussion.
Thanks and apologies,
Alexis Rico
WISCENTD-UPC
The text was updated successfully, but these errors were encountered: