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.)
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | enable_disable_rule_elements-1288874-9.patch | 10.5 KB | vasike |
| #3 | Screen shot 2012-02-21 at 02.50.56.png | 11.55 KB | bsandor |
| rules-components-admin-page.png | 12.92 KB | olafski |
Comments
Comment #0.0
olafskitypo
Comment #1
bsandor commentedI think this gives a big-big improovement.
Comment #2
fagoSounds like a good idea to me, needs some work though.
Comment #3
bsandor commentedI 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:
Comment #4
chefnelone commentedI also think that this feature would be very useful.
Comment #5
AdrianB commentedFound 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?
Comment #6
mitchell commentedThere's a sandbox project that kinda does this from #1768430: Add actions commenting, see Comment Rules. It depends on Conditional Rules.
Comment #7
cursor commented+1 for this. Any progress on this?
Comment #8
adam_b commented+1
Comment #9
vasikehere 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?
Comment #11
rbrownellThere 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
Comment #11.0
rbrownellanother typo (sorry for not having used preview)
Comment #12
delacosta456 commentedhy @rbrownel
any update please ?
Comment #13
tr commented