Actions Permissions removed

Created on 22 October 2024, 24 days ago

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"...

💬 Support request
Status

Active

Version

4.3

Component

Core

Created by

🇳🇱Netherlands pahles

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

Merge Requests

Comments & Activities

  • Issue created by @pahles
  • 🇵🇱Poland Graber

    Q1: 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 module and maintain it as a separate contrib project.

    Please update the issue title to something meaningful so maybe someone will work on it.

  • 🇳🇱Netherlands pahles

    OK, 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.

  • 🇳🇱Netherlands pahles
  • 🇵🇱Poland Graber

    I 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.

  • 🇺🇸United States chri5tia PDX

    Hello 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.

  • 🇵🇱Poland Graber

    Would 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.

  • 🇺🇸United States jsimonis

    Yeah, 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?

  • 🇳🇱Netherlands pahles

    Yeah, 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?

    Revert 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.

  • 🇮🇳India abhishek@kumar

    The 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.

  • 🇺🇸United States ertiepie

    Just 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.

  • 🇺🇸United States jsimonis

    ertiepie:

    Same. Thankfully, I do run a backup of our account before running updates, so I completely reverted back.

  • Merge request !90Restored actions permissions. → (Merged) created by Graber
  • 🇵🇱Poland Graber

    Please test. And if it works well send me a beer because I drank one when rewriting this :P

  • 🇳🇱Netherlands pahles

    Have to do some more testing, but it seems to be working. Tested as a patch against 4.3.1.

  • 🇧🇪Belgium BramDriesen Belgium 🇧🇪

    Seems to work fine on first sight. Thanks @graber!

    Updating some meta data. Don't forget to update the project page once this is released.

  • Pipeline finished with Skipped
    7 days ago
    #332866
  • 🇵🇱Poland Graber

    Thank you for checking it, I should release it today.

Production build 0.71.5 2024