The actions need to be completely overhauled.

If this is too much work, we'll drop action support for initial stable release.

Comments

miro_dietiker’s picture

berdir’s picture

StatusFileSize
new12.47 KB

Pretty much all actions seem to be broken currently, trigger invocations are certainly broken. Also, there seem to be close to zero contrib projects which still support triggers/actions. Instead, most provide support with Rules, which should be our goal as well.

The attached patch removes the simplenews_actions module.

berdir’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, thou_shall_be_gone.patch, failed testing.

berdir’s picture

Status: Needs work » Needs review
StatusFileSize
new13.29 KB

Forgot two calls to the removed function, this one should be better.

berdir’s picture

Status: Needs review » Fixed

The new rules integration is coming along nicely. See #620498: Integration with Rules module.

Committed the patch and removed the existing, broken actions integration.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

amontero’s picture

Status: Closed (fixed) » Active
StatusFileSize
new1.56 KB

Undoubtedly, Rules integration is more versatile, but 'action' module seems to be available on 8.x, altough as an optional module:
#1008166: Actions should be a module
I still see core style actions a valid use case. For example, an admin view with VBO, not requiring any rules code. Why kill core actions?
The attached patch adds a 'Set user subscriptions' action. It reuses user profile form to present the selection screen. Works well for me and avoids me having to install another module just to do that.
Warning: The selected subscriptions will replace current ones.
Of course, basic Rules module actions can be wrappers around this actions with extended properties. Or the other way around. What do you think?

amontero’s picture

Assigned: berdir » Unassigned
Status: Active » Needs review

Unassigning and letting the testbot run through it.

  • Berdir committed abd42a9 on 8.x-1.x
    Issue #1361288 by Berdir: Actions integration removed in favor of the...