Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
To get started
- pick your actions from below, create an issue for it and edit the list to reference the issue
- look at the
\Drupal\node\Plugin\Action\PublishNode
class (a core action)
data.rules.inc
- Set a data value (data_set) #2409047: Port Set a data value (data_set) to D8
- Calculate a value (data_calc) #2317191: Port "Calculate a value" action to D8
- Calculate a value (data_calc) (for dates) #2350027: Port Calculate a Value Action from D7 to D8 for dates
- Add an item to a list (list_add) #2317193: Port "Add an item to a list" action to D8 Assigned to: dasjo
- Remove an item from a list (list_remove) #2317227: Port "Remove an item from a list" action to D8
- Add a variable (variable_add) #2409049: Port Add a variable (variable_add) to D8 Assigned to: fago
- Create a data structure (data_create) #2409051: Port Create a data structure (data_create) action to D8
- Convert data type (data_convert) #2409053: Adjust context definitions of data_convert action Assigned to: TR
entity.rules.inc
- Fetch entity by id (entity_fetch) #2317199: Port "Fetch entity by id" action to D8 Assigned to: a.milkovsky
- Fetch entity by property (entity_query) #2317233: Port "Fetch entity by property" action to D8 and rename it to "Fetch entity by field"
- Create a new entity (entity_create) #2409055: Port Create a new entity (entity_create) action to D8
Save entity (entity_save)Delete entity (entity_delete)
node.rules.inc
node_publish_action', 'node_unpublish_action', 'node_make_sticky_action', 'node_make_unsticky_action', 'node_promote_action', 'node_unpromote_action- those are covered in Core already
path.rules.inc
- Create or delete any URL alias (path_alias) -> Separate create and delete actions - create already ported to D8, #2318653: Port "Delete any URL alias (path_alias)" action to D8 Assigned to: , #2338595: Port "Delete path alias" action to D8
- Create or delete an entity's URL alias, #2471447: Create a derivative for the creation of path alias for entities
php.rules.inc -> Execute custom PHP code (removed)
rules_core.rules.inc -> ?
system.rules.inc
- Show a message on the site (drupal_message) - Drupal message: #2269587: Port "Drupal Message" action to D8
- Page redirect (redirect) #2471641: Port "Page redirect" action to D8 Assigned to: mariancalinro
- Set breadcrumb (breadcrumb_set) #2351979: Port "Set breadcrumb" action to D8
- Send Mail (mail): #2317213: Port "Send Mail" action to D8
- Send mail to all users of a role (mail_to_users_of_role) #2409059: Port Send mail to all users of a role (mail_to_users_of_role) action to D8
- Block IP address (block_ip) #2317205: Port "Block ip" action to D8
user.rules.inc
- Add user role (user_add_role) #2348839: Port "user_add_role" to D8
- Remove user role (user_remove_role)#2471645: Port "Remove user role" action to D8
- Block a user (user_block) #2317223: Port "Block user" action to D8
- Unblock a user (user_unblock) #2471647: Port "Unblock a user" action to D8
- Send account e-mail (user_send_account_email) #2409061: Port Send account e-mail (user_send_account_email) action to D8
Comments
Comment #1
rinasek CreditAttribution: rinasek commentedComment #2
rinasek CreditAttribution: rinasek commentedComment #3
rinasek CreditAttribution: rinasek commentedComment #4
dasjorequires usable actions system to be implemented first
Comment #5
dasjoComment #6
fubhy CreditAttribution: fubhy commentedComment #7
Torenware CreditAttribution: Torenware commentedAdded "Send Mail" to the actions covered.
Comment #8
fagoComment #9
fagoComment #10
mfernea CreditAttribution: mfernea commentedComment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #12
mirceatihu CreditAttribution: mirceatihu commentedComment #13
rteijeiro CreditAttribution: rteijeiro commentedComment #14
m1r1k CreditAttribution: m1r1k commentedComment #15
icanblink CreditAttribution: icanblink commentedComment #16
mariancalinro CreditAttribution: mariancalinro commentedComment #17
m1r1k CreditAttribution: m1r1k commentedComment #18
dasjoComment #19
kalman.hosszu CreditAttribution: kalman.hosszu commentedComment #20
fagoI've just pushed a RulesIntegrationTestBase into the repo, which we can/should now leverage for all our tests. -> This solves some of the mocking problems some of you ran into. Just merge in recent changes into your branches and look at DataComparisonTest for an example.
Comment #21
dasjocompleted list of actions to be ported
Comment #22
Anonymous (not verified) CreditAttribution: Anonymous commentedI've just noticed naming of Actions do not follow the standards set by the Conditions and need to be swapped around.
Conditions correctly have the operand first then the operation:
Current Actions have the operation first, here's a list of suggested changes:
Comment #23
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #24
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #25
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #26
dasjoComment #27
dasjoComment #28
fago@steve: Created #2349413: Keep using the d7 action naming pattern.
Comment #29
kalman.hosszu CreditAttribution: kalman.hosszu commentedComment #30
dasjoComment #31
dasjoComment #32
dasjoComment #33
fagoComment #34
penyaskitoComment #35
penyaskitoComment #36
nlisgo CreditAttribution: nlisgo commentedComment #37
a.milkovskyComment #38
a.milkovskyComment #39
dasjoComment #40
liquidcms CreditAttribution: liquidcms commentedExecute custom PHP code (removed) - why?
Comment #41
Alexandre360 CreditAttribution: Alexandre360 commentedExecute php code removed ? It was one of the most usefull feature to do things when no other actions can do the job !
Comment #42
TR CreditAttribution: TR commentedAll actions have now been ported to D8, so this meta has been completed. Problems with and/or enhancements of these actions should be handled in follow-up issues.