Rules supports using multiple UIs, however there is no good way to keep track of via which UI a rule is configured. There is $rule->module which initially was there for that, however meanwhile that's also used for the module who exported a rule.

However, we want exported rules to still belong to a certain UI to allow UIs to filter on that.

Files: 
CommentFileSizeAuthor
#3 d7_rules_owner.patch5.13 KBfago
PASSED: [[SimpleTest]]: [MySQL] 347 pass(es).
[ View ]
#3 d7_rules_owner-interdiff.txt946 bytesfago
#2 d7_rules_owner-interdiff.txt963 bytesfago
#2 d7_rules_owner.patch5.13 KBfago
PASSED: [[SimpleTest]]: [MySQL] 347 pass(es).
[ View ]
#1 d7_rules_owner.patch4.5 KBfago
PASSED: [[SimpleTest]]: [MySQL] 347 pass(es).
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new4.5 KB
PASSED: [[SimpleTest]]: [MySQL] 347 pass(es).
[ View ]

Attached patch adds a new owner column, allowing modules to keep track of the configurations managed via a custom UI.

StatusFileSize
new5.13 KB
PASSED: [[SimpleTest]]: [MySQL] 347 pass(es).
[ View ]
new963 bytes

Updated patch to also include the new property when serializing rules.

StatusFileSize
new946 bytes
new5.13 KB
PASSED: [[SimpleTest]]: [MySQL] 347 pass(es).
[ View ]

fixed setting owner during save.

Status:Needs review» Fixed

Committed.

Status:Fixed» Closed (fixed)

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

Status:Closed (fixed)» Active

I think this is the source of a problem for me in the new version. Rules exported via features no now longer appear in the list for editing. Maybe rules exported by features should still have an owner of "rules"?

Title:Keep track via which UI a rules has been configuredAfter update to Rules 2.4/2.5, some Rules components disappear from Rules component listing

Yes, just ran into this myself after updating to 2.5. It looks like the owner column is empty on rules that were imported with Features prior to 2.4.

I had to disable my feature and uninstall it, then re-enable it to make the components appear again.

Strangely, the components would appear if the feature was in its default state, but as soon as I'd open a component for editing and make a change, the components would disappear after the save. It could still edit them if I knew the URL.

I'm having the same issue.
I had to completely remove my rules from the feature.

  1. Remove rules from feature, recreate the feature, disable it.
  2. Change the module and owner tables for each rule back to "rules".
  3. Re-enable the feature.

Priority:Normal» Major

I had serious issues with existing Rules when upgrading.

When I updated settings on Authnet payment rule, or set it to active, the whole thing vanished from the Rules UI. I disabled, uninstalled, and cleared cache, that did not work.

When I looked at the db table, the Rule owner said 'commerce payment'. I deleted that record, and repeated the above process. This time, when I installed it, the owner was 'rules', progress, I thought.

Then I edited it. The owner was set back to commerce_payment, and it disappeared from the interface again. If I set the owner in the database to rules, it appeared in the admin interface.

This is a really annoying bug.

Title:After update to Rules 2.4/2.5, some Rules components disappear from Rules component listingKeep track via which UI a rules has been configured
Status:Active» Fixed

Please do not change issue titles of existing issues - that gets very confusing. Best create a follow-up issue for the problem and just link it here.

Status:Fixed» Closed (fixed)

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