As we discussed shortly at the Rules workshop on the Drupalcity camp in Berlin, it may be a good idea to provide the ability to disable some Rules components for testing purposes during site building.

Until now, as there isn't such an option, if you want to test how a rule works without a certain component, you have to delete the component (and to rebuild it again and again while testing).

I guess, this feature request is especially relevant for Rules conditions and actions, maybe not for events. However, combining elements of the same component type, a rule may become quite complex. In my opinion, the ability to disable single conditions or actions would provide a good support in looking for logical errors / misconfiguration issues.

(See attached a screenshot of the relevant Rules admin page.)

Comments

olafski’s picture

Issue summary: View changes

typo

bsandor’s picture

Title: Provide disable/enable link for Rules conditions » Provide disable/enable link for Rules Conditions & Actions
Component: User Interface » User interface

I think this gives a big-big improovement.

fago’s picture

Version: 7.x-2.0-rc1 » 7.x-2.x-dev

Sounds like a good idea to me, needs some work though.

bsandor’s picture

Title: Provide disable/enable link for Rules Conditions & Actions » Provide disable/enable Link or Checkbox for Rules Conditions & Actions
StatusFileSize
new11.55 KB

I think it should go into both 6.x and 7.x

Also I think the best solution is a checkbox like in the attached picture:

chefnelone’s picture

Component: User interface » User Interface

I also think that this feature would be very useful.

AdrianB’s picture

Found this issue when searching for a way to temporary disable an action without deleteing and recreating it. I guess this issue means that there is no way to do that today?

mitchell’s picture

There's a sandbox project that kinda does this from #1768430: Add actions commenting, see Comment Rules. It depends on Conditional Rules.

cursor’s picture

+1 for this. Any progress on this?

adam_b’s picture

+1

vasike’s picture

Status: Active » Needs review
StatusFileSize
new10.5 KB

here is a patch with a first work on this.
any review/feedback is welcomed.

this element status could be somehow used for disabling/enabling modules with Rules elements definitions?

Status: Needs review » Needs work

The last submitted patch, enable_disable_rule_elements-1288874-9.patch, failed testing.

rbrownell’s picture

There is a sandbox module that works really well for this. It is called Rules Developer comments. You can find it at http://drupal.org/sandbox/onkeltem/1719474

rbrownell’s picture

Issue summary: View changes

another typo (sorry for not having used preview)

delacosta456’s picture

Issue summary: View changes

hy @rbrownel

any update please ?

tr’s picture