Closed (fixed)
Project:
Rules
Version:
7.x-2.x-dev
Component:
Rules Core
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2013 at 13:13 UTC
Updated:
17 Oct 2013 at 13:23 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | d7_rules_owner.patch | 5.13 KB | fago |
| #3 | d7_rules_owner-interdiff.txt | 946 bytes | fago |
| #2 | d7_rules_owner-interdiff.txt | 963 bytes | fago |
| #2 | d7_rules_owner.patch | 5.13 KB | fago |
| #1 | d7_rules_owner.patch | 4.5 KB | fago |
Comments
Comment #1
fagoAttached patch adds a new owner column, allowing modules to keep track of the configurations managed via a custom UI.
Comment #2
fagoUpdated patch to also include the new property when serializing rules.
Comment #3
fagofixed setting owner during save.
Comment #4
fagoCommitted.
Comment #6
Angry Dan commentedI 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"?
Comment #7
guypaddock commentedYes, 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.
Comment #8
gjones commentedI'm having the same issue.
I had to completely remove my rules from the feature.
Comment #9
kevinquillen commentedI 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.
Comment #10
fagoPlease 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.
Comment #11
fagoplease see #1568134: Enabling or disabling a contrib rule makes it disappear