Duplicating a CSV Export as a Sreaming Data Export leaves extra data in YML

Created on 29 August 2023, 10 months ago
Updated 30 August 2023, 10 months ago

Problem/Motivation

The YML for the Streaming Data Export of a view is left with serializer as the display_options: style: type: which then causes the view to break when trying to rebuild the cache if the Streaming Data Export was built from using the Duplicate As Streaming Data Export.

Improper Export
pager:
type: none
options:
offset: 0
style:
type: serializer
options:
formats:
csv: csv

Proper Export
style:
type: csv_streaming_data
options:
delimiter: ','
pager:
type: none
options:
offset: 0

Steps to reproduce

Build a view that has a CSV export
Duplicate the "page" as a Streaming Data Export
Rebuild the cache

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jdevoid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jdevoid
  • πŸ‡ΊπŸ‡ΈUnited States pwolanin

    Need to dig in, but might need a tweak to make sure this works right:
    \Drupal\views\Plugin\views\PluginBase::doFilterByDefinedOptions()

    called from:
    \Drupal\views\Entity\View::duplicateDisplayAsType()

Production build 0.69.0 2024