-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework the actions system (CMI) #168
Comments
Related issue that should be addressed as part of this conversion: #351 |
Taking a look at this issue, I think we're confronted with a larger problem about what we should do with configurable actions in the first place. We currently have a number of non-configurable actions, including:
And then we have configurable actions, including:
Because we have removed Trigger module from core, there is currently no way to use any of these configurable actions. You set them up, but then they can't actually be executed. We do have support for Views Bulk Operations to execute the non-configurable commands, so if you set up a View, you can do things like bulk unpublish nodes or content. Rules module, for example, has found the core system too restrictive to be much use, and redefines its own set of actions using a separate API and UI. Because actions are so limited in core already, what I'd like to do is remove the entire concept of a configurable action, as well as the UI for actions from System module. We'd retain all the non-configurable actions and even expand them, since we need them for Views Bulk Operations like Cancel user account (see #149). The UI and entire config storage for configurable actions would be done through contrib, with integration into the core action system through hook_config_info(). |
I filed a PR at backdrop/backdrop#543 for this. The PR is aggressive in this "conversion" to CMI, where it just removes the concept of configurable actions entirely and the need for any configuration at all in the process. This sets us up for doing more comprehensive conversions in #149, where we'll need to change the user and node management pages to use VBO. |
I actually really like this proposal. If there's no way to use configurable actions in core, doesn't mean they are also untestable? If contrib in Drupal 7 hasn't found a way to make them useful by now, then they have essentially proven their lack of worth. Why keep them around? What we'll have in Backdrop core are actions that are "triggered" by the admin forms (content list, comment list, user list, etc). To improve on these, contrib could make a |
Merged in backdrop/backdrop#543. This will need a change notice. Actions are no longer configurable in core. Old:
New:
New:
|
We need to take data that's currently stored in the actions table and save each entry as a config file instead.*
*Not every action needs to have a config file. Actions that are NOT configurable (for example, module-defined actions such as publishing a node or deleting a comment) should not have config files OR entries in the database table.
The actions database table (hook_schema, and all associated code) should be deleted.
The text was updated successfully, but these errors were encountered: