Account switching doesn't work correctly for drush command

Created on 17 July 2025, 20 days ago

Problem/Motivation

In Support views data export using drush Needs review Drush commands were added back, including a most welcome option to switch the user for executing the View. Unfortunately, the switching does not work correctly if there is a batch that needs processing.

Steps to reproduce

  • Have a VDE View that only works for a privileged user
  • Make sure the View uses batch processing
  • Export the View using the drush command
  • Notice that the export does not work correctly due to the missing user permissions

Proposed resolution

Pass the current user ID when building the batch, and check whether it is required to switch to a different user when processing the batch.

Remaining tasks

  • Create MR
  • Review
  • Merge

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

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

Comments & Activities

Production build 0.71.5 2024