I went to upgrade VBO and to my surprise the module Actions Permissions was removed.
This is a very recent move, and the only thing I see is an announcement on the project page. The announcement says the Actions Permissions module is now deprecated AND removed in 4.3.0.
I'm sure there is a valid reason but I have some questions.
First question: why is it removed?
Second question: why it is deprecated AND removed in one go?
Third question: is there any documentation on how to reimplement this yourself? It really feels like "it's removed and just figure out how to solve it yourselves"...
Issue fork views_bulk_operations-3482519
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
graber commentedQ1: Short answer: Action attribute class in core doesn't allow any additional parameters anymore like annotations did and the module relied on that.
Q2: Because I chose so. The module has absolutely no funding, it's only my courtesy that it still exists, is actively maintained and supported and I don't have any use cases for the submodule anywhere. No one is forced to upgrade to the latest version and everyone is welcome to rewrite the Actions Permissions module and maintain it as a separate contrib project.
Please update the issue title to something meaningful so maybe someone will work on it.
Comment #3
pahles commentedOK, clear.
I know this is not a democracy or whatever, but a heads up would have been nice. Other people do have use cases for the submodule.
Comment #4
pahles commentedComment #5
graber commentedI can work on this but not as a free work as I'm not using this on any of my projects and have enough work with Drupal LMS that I'm doing for the community currently. If anyone else would like to rewrite the module to work with the current API - I'll also support that work.
I recommend those that need it to stay on 4.2.x before it is recreated this way or the other.
Comment #6
chri5tia commentedHello Graber,
Thank you for your work on this module. Do you know which version of Drupal is the last version that the views bulk operations module 4.2 with the actions permissions will work on? I would be interested in getting a crew together to rebuild that functionality if it's helpful, but need to know where this change in the API occurs.
Comment #7
graber commentedWould be nice, I cannot answer that question without spending time I don't have on additional research though, quite possible that 4.2.x even works with Drupal 11 because I think old annotations way is not removed yet and my goal was to modernize the code as much as possible. Just test it.
Comment #8
jsimonis commentedYeah, I'm stuck not being able to run my database updates for module updates because of this. I've tried removing VBO, but that doesn't seem to fix the problem. Anyone happen to know?
Comment #9
pahles commentedRevert VBO back to 4.2.7 (composer require "drupal/views_bulk_operations:4.2.7"). You will be stuck on 4.2.7. When/if a solution arrives you will be able to change your composer requirement.
Comment #10
abhishek@kumar commentedThe Actions Permissions module was removed from VBO in version 4.3.0 to simplify permissions and improve security. It was deprecated and removed at once to prevent dependency on outdated functionality. To re-implement similar permissions, consider creating custom permissions or setting up role-specific VBO views.
Comment #11
ertiepieJust a note - if like me you upgraded to 4.3.1 without uninstalling Actions Permissions first...
I got a nasty note on the Status report and when running update.php after upgrading - oops.
I tried to downgrade back to 4.2.7 and that completely broke my site. Super oops.
After many upgrade/downgrade/uninstall/reinstalls... I found a way to re-add the actions_permissions module so I could uninstall it after the fact. I'm surprised it worked... but it did!
I downloaded the 4.2.7 tar file, and from within modules folder I grabbed the actions_permissions module folder and dropped it in to the current install (via sftp) - this allowed it to be displayed under Extend > Uninstall and I was able to use that mechanism to uninstall "Actions Permissions" properly.
And then, hooray! The nasty note went away on Status report and update.php - All is well and good... except of course I have no actions permissions :-/
Boooooo.
Comment #12
jsimonis commentedertiepie:
Same. Thankfully, I do run a backup of our account before running updates, so I completely reverted back.
Comment #14
graber commentedPlease test. And if it works well send me a beer because I drank one when rewriting this :P
Comment #15
pahles commentedHave to do some more testing, but it seems to be working. Tested as a patch against 4.3.1.
Comment #16
bramdriesenSeems to work fine on first sight. Thanks @graber!
Updating some meta data. Don't forget to update the project page once this is released.
Comment #18
graber commentedThank you for checking it, I should release it today.