Create a new key in node called "dependencies" which will be an array of strings. Which will save module names on which it is dependent. And on module uninstall we will check if any node is dependent on that module and if any rule is active using that node than disable it.
Also add a validation that that a node is not present in a rule whose dependent module is not enabled.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | module_dependency_information_each_node-3082482-4.patch | 15.03 KB | rensingh99 |
| #3 | module_dependency_information_each_node-3082482-3.patch | 14.45 KB | rensingh99 |
Comments
Comment #2
rensingh99 commentedI will work on this.
Comment #3
rensingh99 commentedI have created a patch. Please review it.
Comment #4
rensingh99 commentedPlease check latest patch.
Comment #5
rensingh99 commentedPlease check latest patch.
Comment #6
akshay.kelotra commentedI have reviewed this patch and tested it. It is working fine.
Comment #7
neeravbm commentedI have merged this patch to dev branch.
Comment #9
neeravbm commented