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
BAL-3498: enhance rule-engine evaluation logic with path comparison (#3069)
* feat(rule-engine): enhance rule evaluation logic with path comparison
- Introduce isPathComparison flag in Rule schema for clearer distinction
- Update extractValue method to handle operators with and without path comparison
- Adjust validation logic to accommodate new extracted value structure
* fix(rule-engine): correct path comparison validation logic
- Ensure 'isPathComparison' is only true when present in the rule
- Update condition to prevent false positives in comparison checks
* refactor(rule-engine): improve operator extraction logic and constants usage
- Move OPERATORS_WITHOUT_PATH_COMPARISON to constants for better reusability
- Refactor extraction logic to use isObject utility for clarity
- Update imports to reflect the new constants structure
* fix(rule-engine): improve rule extraction validation
- Refactor validation logic for extracted values
- Utilize 'in' operator for better readability and accuracy
* feat(tests): enhance rule engine tests with path comparison functionality
- Add isPathComparison flag to various rule definitions
- Implement new unit tests for path comparison scenarios
- Update integration tests to include path comparison in validation
0 commit comments