- πΊπΈUnited States amaisano Boston
This doesn't work with sub_process plugins. The snippet is sending the 1st item in the array rather than the whole array to the separate file.
- πΊπΈUnited States danflanagan8 St. Louis, US
Would it work to put the single_value plugin in the pipeline ahead of the snippet plugin in that case?
testing: - plugin: single_value source: my_array - plugin: snippet module: my_module path: my_process_pipeline
- πΊπΈUnited States amaisano Boston
@danflanagan8 that seems to be working! What a nice workaround. Thank you.
Snippet YML:
- plugin: sub_process source: bricks process: _stub: plugin: switch_on_condition source: type .....
--migrate-debug output:
... 13 => [] 14 => array:3 [ "_stub" => array:2 [ 0 => "227" 1 => "274" ] "target_id" => "227" "target_revision_id" => "274" ]
It's interesting how the output values contain the pseudo_field, which usually isn't present in the output for Destinations. It has no effect on the import thankfully.
- πΊπΈUnited States alison
I just started using #19 to do identical processing on a bunch of rich text fields and I'm in love, this feature is absolutely wonderful, THANK YOU!!
The status is "Needs work" not "Needs review," so I won't change it to RTBC, but do y'all know what's left needing work, or maybe can we move this to RTBC........?
- πΊπΈUnited States danflanagan8 St. Louis, US
The `snippet` plugin for sure needs test coverage. (Added the tag.) And the IS here describes a different approach. I would be in favor of updating the IS to describe the `snippet` plugin. So I added that tag too.