[Form builder] Export multiple(One and more) form builder forms in implementer-interface

Description

As an implementation engineer

I want to export the latest versions for each form created on the implementer interface

So that I save time by downloading multiple forms or uploading multiple forms in a single instance

Description:
Currently, on Implementer Interface to import and export forms, we need to manually import or export forms one by one. Instead, this functionality will help import or export all the forms

This approach was discussed in PAT Call on 12th June and proposed on this OpenMRS Talk: https://talk.openmrs.org/t/import-export-of-multiple-forms-2-0-from-implementer-interface/23649

Assumptions

Import and export for a single form is currently working and is extensible

Acceptance Criteria:

  1. A user can choose/select which forms to export through the checkboxes next to form names

  2. The export file will contain translations for the form

  3. The forms will be downloaded/exported as a zip

  4. User can also download file one at a time based on the existing button in the action column

  5. In case of errors, have a separate text file for the error but the zip file with other files should be downloaded

  6. Error message at the top in red to say: “There is an error in your download. Please check the logs.”

Implementation notes:

  1. Checkboxes will be provided for all the published forms in form list in the form builder

  2. And an export button will be provided beside the import button in form builder

  3. We need to select one or more forms by checking the checkboxes and click on the export button

  4. A new endpoint has been added ‘/export’ which will be taking a list of UUIDs of the select forms and returns with a zip folder containing jsons of all the selected forms.

  5. All the failed form names will be attached to the response, which we will display them on a red banner on UI with a message “These forms failed with export, please verify logs”

  6. Currently, for load purpose, we limited the number of forms to be selected to ‘20’. Need to make it configurable.

 

Openmrs Talk link: https://talk.openmrs.org/t/import-export-of-multiple-forms-2-0-from-implementer-interface/23649

PR links:

bahmni ie apps:

implementer-interface:

 

 

Notes:

bahmni ie apps PR should be merged first, and then implementer-interface PR has to be merged

Status

Assignee

Unassigned

Reporter

Yalla Alekhya

Units

None

PercentDone

None

DueTime

None

Clients

None

External issue ID

None

UAT Assignee

None

Reviewer

None

Components

Fix versions

Configure