When we click on Select all entities button after checking all entities on first page, it processes only 50% of data then skips remaining data. So we have to start the operation again.

Steps:

  1. Create view
  2. Add bulk operation field to view with any action(for me it is delete)
  3. Save view
  4. Check all rows and click the button Select all results in this view (You must have pager in the result with results more than count of first page)
  5. Select the action and click Apply to selected items button

So if I have view with 100 records and pager of 10 on each page, the VBO will perform action for 50 records only.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

patilvishalvs created an issue. See original summary.

patilvishalvs’s picture

Graber’s picture

Please provide steps to reproduce.

patilvishalvs’s picture

Issue summary: View changes
Graber’s picture

Still can't reproduce.

See https://du32t.ply.st/admin/content (login: admin, pass: admin), all 150 of 150 nodes are processed.

Can you provide some more information?

Graber’s picture

Assigned: Unassigned » Graber
Priority: Normal » Major

A very important issue and something I overlooked from the very beginning: it occurs when an action changes entity parameters that are also in the view query conditions or simply deletes entities.

The solution is to populate the entire list before processing all, as it is in the D7 version.

Thanks @patilvishalvs.

Graber’s picture

Status: Active » Needs work
Graber’s picture

Assigned: Graber » Unassigned
Status: Needs work » Needs review
FileSize
12.07 KB

Here's a patch. Be sure to pull before applying.

  • Graber committed ff25bbd on 8.x-1.x
    Issue #2925446 by Graber, patilvishalvs: Only 50% data processed, then...
Graber’s picture

Status: Needs review » Fixed
Graber’s picture

Title: Only 50% data processed, then skips » Batch processing of actions affecting view query results causing items beeing not processed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.