Problem/Motivation

The Webform module includes the ability to export submissions to a CSV but it does not provide an easy way to import submissions from a CSV.

The Migrate Source CSV module (https://www.drupal.org/project/migrate_source_csv) combined with the Webform Migrate module (https://www.drupal.org/project/webform_migrate) can provide a mechanism to import CSV submissions. Drupal's Migrate module and the Webform Migrate module are still under development.

Proposed Resolution

Provide a straight forward tool for importing submissions from a CSV document.

Notes

  • Import must use a standardized CSV format. For example, column names would be each element's key and the row values the submission's raw data.
  • Using the Migrate Source CSV module will still be a recommended long term option.
  • UUID will be used to merge data. CSV data imported from D7 should use https://www.drupal.org/project/webform_submission_uuid
  • Importing files will need be supported.
  • Rollbacks will NOT be supported.
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’s picture

Issue summary: View changes
jrockowitz’s picture

Issue summary: View changes
jrockowitz’s picture

Title: Provide straightforward Drush commands for exporting and importing submissions into and out of a CSV document. » Provide straightforward Drush commands for importing submissions from an CSV document
Issue summary: View changes
kclarkson’s picture

FileSize
7.56 KB

@jrock

Here is the are the webform examples:

- Event Registration
- Submission Application Evaluation
- Funding Appliation

  • jrockowitz committed 91969a8 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 3011a07 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 089044b on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...
  • jrockowitz committed 2fbdb57 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 02ea434 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed f58ad0a on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 023b280 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...
jrockowitz’s picture

Title: Provide straightforward Drush commands for importing submissions from an CSV document » Provide a straight forward tool for importing submissions from a CSV document.
Issue summary: View changes

  • jrockowitz committed b5fc30e on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...
jrockowitz’s picture

Status: Active » Needs review
FileSize
112.26 KB

Status: Needs review » Needs work

The last submitted patch, 15: 2902977-16.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

  • jrockowitz committed 1e61e44 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...
  • jrockowitz committed 2ae1aa5 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...
jrockowitz’s picture

Status: Needs work » Needs review
FileSize
129.81 KB

  • jrockowitz committed 00cade0 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...
  • jrockowitz committed 487d053 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 72ce2b6 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 2ee1c9e on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed d65d1a0 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed b0c3abe on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 554b4d3 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed f3ef2e5 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 85972a3 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 30367a8 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed def2ac2 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 72edc40 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 1cbd925 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...
  • jrockowitz committed 2a4692c on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed ef58986 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 86077a2 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 1a5a8fe on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 08d8140 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 212f635 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...
jrockowitz’s picture

The attached patch allows CSV source columns to be mapped to Submission destination properties and elements. The patch also now includes test coverage.

  • jrockowitz committed 2d3594a on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...
  • jrockowitz committed 4de7853 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 31de817 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed f6a5441 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed c2c0683 on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...

  • jrockowitz committed 17bee4e on 2902977-export-import
    Issue #2902977 by kclarkson: Provide straightforward Drush commands for...
jrockowitz’s picture

This final patch integrates a demo video which is also included in the change record.

Please review the attached patch and change record.

  • jrockowitz committed fb02bd9 on 8.x-5.x
    Issue #2902977 by jrockowitz, kclarkson: Provide a straight forward tool...
jrockowitz’s picture

Status: Needs review » Fixed

I committed the patch. Please download the latest dev release to review.

Please open new tickets if you find any issues or bugs.

jrockowitz’s picture

kclarkson’s picture

Really excited about this feature. Thanks sir!

Status: Fixed » Closed (fixed)

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