Hi,

Today I've been trying to use VBO in a Drupal 7 site I'm developing. I've spent some time figuring out how to use VBO in my custom views data types and how to execute aggregated bulk operations. Finally I think I found the best way of doing that (i.e hook_views_bulk_operations_object_info + hook_TYPE_operations). Sadly, even the approach is probably correct, it's not working. In fact, after a lot of debugging, I started trying some more basic examples, and they are also not working.

Tomorrow I'll try to do some more debugging. For some reason I've not understood yet, the bulk op form is overwritten somewhere, and therefore submit and validations are not executed.

So, my question is: should I continue debugging what's going on, or the D7 migration of VBO is in a very early stage and should not be used?

Thank you!

Comments

infojunkie’s picture

The D7 migration is at an early stage, and should not be used until further notice. If you want to help with the migration, please let me know :-)

carlosabalde’s picture

I need the VBO module urgently, but only the most basic stuff (i.e. select rows and apply bulk operation to the aggregated group of object ids), so today I got the VBO implementation and removed all the stuff I don't need. After this step, I found the reason for all my problems with the current D7 version. Two simple fixes solved the problem for me:

  • Adding 'path' => drupal_get_path('module', 'views_bulk_operations') to the views_bulk_operations_views_api hook.
  • Using $form_state['cache'] = TRUE instead of $form['#cache'] = TRUE in views_bulk_operations_form.

Hope this helps in the migration and to other people wanting to start using VBO in D7 :)

molave’s picture

Subscribing

molave’s picture

Title: Drupal 7 status » Drupal 7 status (VBO)

Added "(VBO)" to issue title for quicker identification in the Dashboard.

lsolesen’s picture

+1

lsolesen’s picture

Have you created a roadmap for the 7.x version yet? And any plans on release date?

muschpusch’s picture

@carlosabalde: could you provide a patch?

carlosabalde’s picture

@muschpusch, I can't. Once I found the bugs pointed out in comment #2, I forked the VBO module, removing lots of VBO features, fixing other bugs and adding sightly different behaviors. So, now I'm using s completely different module adapted to my particular use cases.

thomas4019’s picture

subscribing

andrebonfanti’s picture

subscribing

seanberto’s picture

Infojunkie, I've been following your work with Meedan.net. Andrea Burton is a good friend. I love VBO. Thank you for your hard work on porting it to D7. Please let me know if there's anything I can do to help - primarily in terms of testing patches and releases, or anything else that comes up!

infojunkie’s picture

@seanberto - thanks for the kind words, but I really haven't been putting effort into the D7 port. I've been focusing on getting a strong new D6 version, that I hope can be the base for D7 - and I'll probably be seeking a co-maintainer for D7 to help out.

boombatower’s picture

subscribe

boombatower’s picture

Seems to run fairly well, haven't hit a bug yet. Perhaps an alpha1 or somesuch to grab more testers and to provide a reference point?

bojanz’s picture

For anyone interested, I'm doing some VBO work at this sandbox: http://drupal.org/sandbox/bojanz/1149374
It branches off from today's 7.x-3.x and makes VBO a field, allowing it to be used with any style plugin.
This actually works!

sun’s picture

Status: Active » Closed (won't fix)

The current status is crystal clear: http://drupal.org/project/issues/views_bulk_operations?version=7.x

@bojanz: That looks interesting. @infojunkie might want to grant git access to VBO, so we can move that code into a feature branch 7.x-field. That way, more people will be able to see it and also test it. Let's create a proper issue for that.

bojanz’s picture

alltooeasy’s picture

We've got VBO working on D7.7 on our latest build.

Essentially we're using it to change (initially just one set of taxonomy terms "status" and 4 options).

So we've got it to the point where its only querying the status of each term and want to get it to now display these 4 options in a "permissions" style check box list. That means we can perform bulk changes to "status" of these views.

I am led to believe that 'update field' will be moved into VBO in the not too distant future. Is anyone working on this? Can we lend a hand and if so how?

Cheers

John

bojanz’s picture

See #1057158: Provide an action for modifying entity values
It's at the top of the issue queue...