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:

Ie apps:

implementer-interface:

 

 

Notes:

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

Attachments

1

Activity

Himabindu Thungathurty September 26, 2021 at 11:31 AM

update the Bahmni wiki.

Himabindu Thungathurty September 26, 2021 at 10:34 AM

Tested the functionality on and the functionality is working as expected.

I was able to download more than one file by selecting relevant forms. It downloaded with .zip extension. The count in the downloaded zip file matches with the selected number of forms.

The form which is in draft mode will not be selected for download. Only the forms which are published will have the option to select for bulk download.

Sneha Bagri January 20, 2020 at 7:35 AM

Few things need to made configurable, creating a different card as it needs discussion of how we want to do it for implementer interface-

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

UAT Assignee

Components

Sprint

Fix versions

Priority

Created September 12, 2019 at 11:19 AM
Updated September 26, 2021 at 11:31 AM
Resolved September 26, 2021 at 10:35 AM