Problem/Motivation

As YAML Form elements get more complex, developers may need to export the raw submission data as JSON, YAML, or XML.

Proposed resolution

Provide a document exporter which creates JSON, YAML, and XML documents for submissions in a zipped archive.

Notes

  • Document file names will use token
  • Each document will contain the serializes YamlFormSubmission::toArray(TRUE) output.
  • Not sure what meta data needa to be added the export.

Remaining tasks

  • Add entityStorage to YamlFormExporter plugin as dependancy
  • Add columns=TRUE to YamlFormExport annotation
  • Convert FileHandleBaseYamlFormExporter to FileHandleYamlFormExporterTrait
  • Create TabularBaseYamlFormExporter
  • Move getFieldDefinitions() ADD CACHING
  • Move getElements() ADD CACHING
  • Move buildHeader
  • Move buildRecord
  • Create DocumentBaseYamlFormExporter
  • Hide most options for data export if columns = FALSE.

User interface changes

Export form is going to change.

API changes

YamlFormExporterInterface is going to change.

Development Notes

  • Branch Name: 2821781-provide-document-exporter
  • Commit message: Issue #2821781: Provide a document exporter
CommentFileSizeAuthor
#5 provide_a_document-2821781-5.patch62.37 KBjrockowitz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jrockowitz created an issue. See original summary.

jrockowitz’s picture

Issue summary: View changes

  • jrockowitz committed da0d13f on 2821781-provide-document-exporter
    Issue #2821781: Provide a document exporter
    

  • jrockowitz committed ec7e158 on 2821781-provide-document-exporter
    Issue #2821781: Provide a document exporter. Build document exporters...
jrockowitz’s picture

Status: Active » Needs review
FileSize
62.37 KB

  • jrockowitz committed 0302a1a on 8.x-1.x
    Issue #2821781 by jrockowitz: Provide a document exporter
    
jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.