You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, in AnyRule we are completely ignoring enclosed Rule#transformMessage instead we should use null assignment operator so the enclosing Rule's transformMessage does not override the enclosed Rule's transformMessage. Plus this issues points out a fundamental flaw on the usage of transfomMessage in the current implementation. We'll need to rethink the implementation details of transformMessage.
Complex rules such as
AnyRule
overwrite thetransformMessage
of theRule
s themselves.Expected Behavior
The
transformMessage
of aRule
should have higher priority than anything above it.Current Behavior
The
transformMessage
ofAnyRule
and other similarRule
s have higher priority than their subrules.Possible Solution
We should add a contract for Complex Rules such as this so it becomes difficult to make mistakes like this.
Steps to Reproduce (for bugs)
The following Test can reproduce it
Output
Your Environment
The text was updated successfully, but these errors were encountered: