-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Added PathRule that evaluates it's composite rules if it's primary ru… #108
Conversation
…le evaluates to true
Hi @dagframstad Thank you for your PR! Even though it is excellent (production code + test code), I'm not sure if this feature should be provided by easy rules. It's always a tradeoff to decide what should go in the tool/framework and what should be left to the user. In this case, a "PathRule " is a specific requirement and can be left to the user when needed. Do you agree? Kr |
Hi @dagframstad Any update? Kr |
Sorry for late reply. Regarding your earlier comment if this PathRule should be left to the user to implement. |
Hi @dagframstad , As commented here, I suggest to deprecate the In regards to your
Anyway, let me know what do you think. Kr |
Maybe @dagframstad wanted a |
@cemo I will let @dagframstad reply but from my understanding from the code, the idea is to have a primary rule that acts as a precondition to trigger a rule group. If the condition of the primary rule is satisfied, the primary rule's action is executed, then other (applicable) rules will be executed. @dagframstad I suggested renaming this to |
@benas Your understanding of my contribution here is correct, a single rule to decide if we should execute a group of rules. ConditionalRuleGroup sounds like a better name than the one I came up with (I struggled to find a good name).
|
@dagframstad Great!! As explained here, I have started the preparatory work to welcome your PR. Could you please update the PR as follows:
You can rebase your work on the Many thanks upfront. |
…le evaluates to true