Provide a way to automatically upload Requisition templates to an OpenLMIS instance. Currently, all data is uploaded via API using our seed tool. Requisition templates are considered as configuration data. We need to upload it to every instance and for now, we do this manually via UI. It would be a more robust solution to automate this since we will reload such data a lot.
The templates will be almost the same for every instance, so it could be a JSON file with the ability to provide facility types (facility types will depend on instance). We can use /api/requisitionTemplates for that or use docker container and load it via DB.
create a solution for automatic upload
the solution should be executed after seed tool’s job or at the end of the job
the solution should be triggered by Jenkins job
the solution shouldn’t depend on any specific OpenLMIS instance
we need to upload two requisition templates (you can find them on https://covid-ref.openlmis.org/#!/administration/templates)
remove step ‘Add templates based on the covid-ref configuration’ form ‘Manual set up on a new instance’ template