Install

Works with Drupal: ^8.7.7

Using Composer to manage Drupal site dependencies

Alternative installation files

Download rules-8.x-3.0-alpha6.tar.gztar.gz 190.61 KB
MD5: 31077457a992f31ea069883927131c5b
SHA-1: e26a0e00eefa18428a2afe803f9b862da8878589
SHA-256: e1c391772b8c0a7cbe0c4eebefd421bd1b0dec25a66fe1d6a2d636494a496887
Download rules-8.x-3.0-alpha6.zipzip 413.5 KB
MD5: 5f0db8ddae6cd80be552acd20eb67e0c
SHA-1: 073bf5c23f0ef8f1aebf56538249d50d631d5a24
SHA-256: 92573cd5719a8b7435658c5cb8b773d0fb0059450504eb028f2c8c0acab20671

Release notes

The 8.x-1.0-alpha6 release contains major improvements in usability and functionality over alpha5. The issues that will most affect the end user are:

  • The rules_ban submodule has been removed. Please uninstall rules_ban before upgrading, or follow the instruction in https://www.drupal.org/project/rules/issues/3128954#comment-13561058 if you did not uninstall rules_ban before upgrading.
  • Fixed caching of Rules so that you no longer need to refresh the cache after editing a Rule.
  • Vastly improved UI for managing Rules.
  • Rules can now be enabled and disabled.
  • Implemented drag & drop modification of execution order for condition and actions.
  • Debug logging of Rules execution.
  • Drush 9+ support, including support for new features like enable/disable.
  • Event bundle selection now available when creating new Reaction Rules.
  • Assignment restriction prevents "direct input" from being used where a "data selector" is required.
  • New events, actions, conditions and global context variables, including global site context variables.
  • Global context variables now work.

This is the last release that supports Drupal core 8.7 and prior.

Please make sure to clear your caches both before and after upgrading to this release. As this is an alpha-to-alpha update, there may be API changes that affect you if you have code that integrates with Rules. Also, some Rules might need to be edited/rebuilt - the provided Drush commands will allow you to disable broken rules so that they may be edited from the UI.

Changes since 8.x-3.0-alpha5:

Bug fixes:

  • #2927132 by TR, jonathan1055: List of conditions includes Core conditions which do not work with Rules
  • #3130002 by dcam: Could not use Site token {{@rules.site_context:site.url}}
  • #2769511 by jonathan1055: Cache is not invalidated when Rules are changed
  • #3108494 by jonathan1055: Exception when updating cache with empty data
  • #3105960 by TR: tabledrag doesn't hide weight column if table is empty
  • #3105760 by TR: Empty Rules are firing
  • #3115010 by TR: configFactory() used instead of config() in debug logging
  • #3101013 by jonathan1055: PHP 5.5 - conditions and actions may execute in wrong order if all weights are default
  • #3103295 by TR: Rules is still listening to / reacting on events for disabled Rules
  • #2996421 by andrewbelcher: Impossible to make a rules_expression.[id] nullable
  • #3095531 by TR: TempStoreTrait is missing entityTypeManager property
  • #3095269 by TR: Data comparison action should restrict data input to 'selector'
  • #3093830 by TR: Undefined variable in RuleExpression::addExpression()
  • #3093808 by TR: Wrong number of parameters passed to a method
  • #3079069 by TR: Stop using ! placeholder in rules.drush.inc

New features:

  • #3159469 by TR: Rename SystemMailToUsersOfRole to SystemEmailToUsersOfRole
  • #3159876 by jonathan1055: Set assignment restrictor for two list and data conditions
  • #3125443 by TR: Move rules_ban plugins back into Rules core
  • #3121052 by TR: Node conditions should be in the "Content" category
  • #3114756 by TR: Port node.rules.inc actions to D8
  • #2932325 by TR: Site tokens
  • #3104328 by TR: Move list builders from D8RE into Rules
  • #3107426 by TR: Process tags with an #entity_builder
  • #3106987 by TR: Add event bundle selection to "Add a reaction rule" form
  • #3106213 by TR: Add filtering to component list builder
  • #3104328 by TR: Move list builders from D8RE into Rules
  • #3100995 by TR: Move RulesAction tests into RulesAction directory
  • #3104109 by TR: Implement rendering of debug logs to screen and database
  • #3103555 by TR: Update RulesDebugLoggerChannel to use RulesDebugLog and to preprocess variables
  • #3104001 by TR: Add description to RulesSettings form
  • #3103959 by TR: Port all D7 uses of rules_log() to the D8 logging system
  • #3102627 by TR: Move changes to ReactionRuleEditForm/RulesComponentEditForm from tr_rulez into Rules
  • #3103439 by TR: Create RulesDebugLog logger to hold temporary debug logs
  • #3103291 by TR: 'provided' entities should not all be named 'entity'
  • #3102292 by TR: Add kernel.terminate event
  • #3060957 by TR, semanthis: Support renaming "provided" variables
  • #3102614 by TR: Change Rules configuration settings
  • #3075601 by TR, jungle: Add support for Drush 9+
  • #3102515 by TR: Improve "UUID already exists in the container" Exceptions
  • #3101199 by TR: Create a new rules logger channel for logging things to the database
  • #3101211 by TR: Refactor rules_ban Actions
  • #3101194 by TR: Rename logger.channel.rules to logger.channel.rules_debug
  • #2648334 by TR, yanniboi: Implement action/condition reordering with drag & drop
  • #3099931 by TR: Setters should in general return $this
  • #3099654 by TR: Add config schema for rules_or expression
  • #3099653 by TR: Fix rules_expression.* configuration schema
  • #3094046 by TR: Set 'assignment_restriction' in Condition and RulesAction contexts
  • #3094053 by TR: Set 'required' in Condition and RulesAction contexts
  • #2804941 by jonathan1055, TR: Implement assignment restriction in plugin context
  • #3093457 by TR: All condition and action context parameters should have a description
  • #3092084 by TR: Add $memory_cache parameter to ReactionRuleStorage

Testing:

  • #3110461 by jonathan1055: Add rules_ban actions and conditions to functional tests
  • #2471481 by jonathan1055: Form Widget tests for all Conditions and Actions
  • #3098187 by jonathan1055: Deprecations: Replace non-boolean use of assertTrue() and assertFalse()
  • #3098342 by TR: Remove usage of static Drupal:: calls in tests
  • #3095033 by TR: Exported component in rules_test fails schema check and can't be imported
  • #3095191 by TR: Annotations in test modules need updating
  • #3095036 by TR: Actions in test modules need updating
  • #2800779 by TR: Remove d7-tests from code-base and create issues for remaining coverage
  • #3093582 by TR: Fix variable name typo in tests

Core Drupal changes:

  • #3160128 by TR: *-rtl.css files are eliminated in Drupal 8
  • #3114966 by TR: Remove legacy usage of entity.manager
  • #3098110 by jonathan1055: Deprecation: add $defaultTheme to BrowserTestBase
  • #3108310 by TR, jonathan1055: Deprecation: add $defaultTheme to javascript test EventBundleTest
  • #3092087 by TR: Deprecate 'context' in Rules @RulesAction annotation
  • #3030295 by TR: 'context' deprecated in Rules @Condition annotation and Rules Event discovery *.rules.events.yml
  • #3030291 by andreyjan, TR: ConfigurablePluginInterface is deprecated in core 8.7.x
  • #3092093 by TR: Using the "owner" public property of a TempStore lock is deprecated in Drupal 8.7.0
  • #3089549 by TR: Fix TempStore deprecations

Code cleanup:

Created by: TR
Created on: 20 Jul 2020 at 05:20 UTC
Last updated: 28 Jul 2020 at 22:30 UTC
Bug fixes
New features

Other releases