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
Comment #1
infojunkieThe 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 :-)
Comment #2
carlosabalde commentedI 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:
'path' => drupal_get_path('module', 'views_bulk_operations')to theviews_bulk_operations_views_api hook.$form_state['cache'] = TRUEinstead of$form['#cache'] = TRUEinviews_bulk_operations_form.Hope this helps in the migration and to other people wanting to start using VBO in D7 :)
Comment #3
molave commentedSubscribing
Comment #4
molave commentedAdded "(VBO)" to issue title for quicker identification in the Dashboard.
Comment #5
lsolesen commented+1
Comment #6
lsolesen commentedHave you created a roadmap for the 7.x version yet? And any plans on release date?
Comment #7
muschpusch commented@carlosabalde: could you provide a patch?
Comment #8
carlosabalde commented@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.
Comment #9
thomas4019 commentedsubscribing
Comment #10
andrebonfanti commentedsubscribing
Comment #11
seanberto commentedInfojunkie, 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!
Comment #12
infojunkie@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.
Comment #13
boombatower commentedsubscribe
Comment #14
boombatower commentedSeems 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?
Comment #15
bojanz commentedFor 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!
Comment #16
sunThe 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.Comment #17
bojanz commentedDone: #1150100: Merge the "reloaded" branch into 7.x-3.x
Comment #18
alltooeasy commentedWe'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
Comment #19
bojanz commentedSee #1057158: Provide an action for modifying entity values
It's at the top of the issue queue...