EyeSeeTea / WHO-custom-forms

Custom forms developed for WHO
GNU General Public License v3.0
0 stars 0 forks source link

Move dicctionary to DataStore #39

Closed xurxodev closed 3 years ago

xurxodev commented 3 years ago

:pushpin: References

https://app.clickup.com/t/buybcj

:memo: Implementation

:art: Screenshots

:fire: Is there anything the reviewer should know to test it?

It's necessary to create the snake-bite namespace with a customFormData key in the data store and with the content in this json: customMetadata.json.zip

To generate Snakebite custom form is necessary changes in metadata:

To generate the custom form:

cd /HEP-data-entry
yarn build
node lib/cli.js --url='http://user:pwd!@dhisUrl' --dataset-id='XBgvNrxpcDC' --module='snakebite'

Important: the command uploads all data set to the server. Important: Sometimes to generate the custom form, age category options are duplicated in data elements. I think this is an API bug.

:bookmark_tabs: Others

ifoche commented 3 years ago

Minor comment: Looks like the key is "customMetadata", instead of what's written in the description