Problem/Motivation

We have a large CSV export run via drush batch. However, even after applying patch from https://www.drupal.org/project/views_data_export/issues/3581446 "ViewsDataExportCommands::viewsDataExport() does not switch accounts properly", some data such as node URLs was missing. This data is present if run as web UI batch by an administrator, but not when invoked via drush, even with --uid=1.

views_data_export does not propagate user correctly during a drush batched export, for the same reason as the former issue. DataExport processBatch() doesn't switch user correctly: $accountSwitcher->switchTo(new UserSession(['uid' => $uid])); should be $accountSwitcher->switchTo(User::load($uid));.

Comments

jonathan_hunt created an issue. See original summary.

jonathan_hunt’s picture

StatusFileSize
new1.04 KB