-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
new criteria and actions for groups #19986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -5855,7 +5855,7 @@ private function assetBusinessRules($condition) | |||
} | |||
|
|||
// Set the condition (add or update) | |||
$output = $ruleasset->processAllRules($input, [], [], [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please note this is probably a big change, but I struggle to estimate properly.
It aligns the behavior with RuleTicket as you can see here
Lines 11250 to 11255 in aad5067
$input = $rules->processAllRules( | |
$input, | |
$input, | |
$rules_params, | |
$rules_options | |
); |
Without passing the input to the &output
parameter, 'append' group action behaves like an 'assign', no previous groups were passed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea on the imapct this can have; but at least, existing tests are OK, so LGTM.
Please add dedicated tests cases.
(Maybe wait for other feedbacks before working on this) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems OK, please add tests.
Description
Add "group" and "group in charge" in both criteria and actions for Business rules for assets.
It has been asked by our ops team to explore the multi-group feature of asset shipped in 11.0