Data Export in Batch fails to acknowledge Facet selections

Created on 18 October 2023, about 1 year ago
Updated 7 February 2024, 10 months ago

Problem/Motivation

I have a view with >50,000 records. I am trying to export several thousand records as CSV. Standard mode fails to complete for large exports, so I must use Batch mode. But batch mode does not recognize facets, nor does it return the correct number of records. (Aside: Standard export mode DOES recognize search facets.)

I'm running Drupal 9.5.11, PHP 8.1.23.

A similar issue is discussed here (see comment #193), but for 8.x-1.x-dev:
https://www.drupal.org/project/views_data_export/issues/2789531#comment-... โœจ Support for batch operations Fixed

Steps to reproduce

Create a view and add search facets. Add a download CSV button and set the mode to "batch" rather than "standard". Set the batch size to 100 records. Specify the correct Facet Source. If my search facet selections return 50 records, when I click the download button I get 100 records (instead of 50), and none of these downloaded records recognize my facet selections. If my faceted search returns 140 records, when I click the download button I get 200 records (none of which match my facet selections).

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States jhinds

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024