Actions
Bug #17907
openError in popup when trying to disable an active technique
Pull Request:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Rudder settings | Plugins
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
If a technique has directives is applied in enabled rules, we have an error in the popup when trying to disable it
Can not find dependencies. Can not build tree of dependencies for Technique ActiveTechniqueId(4d13880e-7e2a-4ac0-85ef-aeabdc9b9c45)
cause is within filterRules
the ruleTargets in the groupLib.allTargets is of the form
PolicyServerTarget(NodeId(root)), GroupTarget(NodeGroupId(34e8f886-a25f-4b34-b877-d105206959be)), AllNodesWithoutRole, GroupTarget(NodeGroupId(a4314db4-7fb3-4bae-b270-24d70f21ef5a)), GroupTarget(NodeGroupId(037aacb9-e3e2-45ef-a72b-65b612185f1e)),
yet the targets.target of the rule has the format
{"include":{"or":["group:5d22bfb4-d422-4ed2-a732-a7500adbeef3"]},"exclude":{"or":[]}}(a CompositeRuleTarget)
so it cannot match
I doesn't break, but it is not very nice
Actions