Releases: yoyowallet/business-rules
v1.6.0
1.5.0
Add ActionParam
class which provides functionality of using a default value for Action parameter in case it's not provided in a Rule
definition' parameters.
Add Boolean
type for parameters
1.4.2
Required dependency added
Six dependency was a dev requirement, now is necessary as a main dependency.
Also an issue with cycling dependencies was fixed when trying to install this library as a dependency.
Python 3 compatible
This versions adds compatibility with Python version up to 3.6.
The codebase is still compatible with both versions 2 and 3 and it's planned to remove python 2 compatibility in a future relase.
Check conditions function expose
This (small) release just exposes the function used to check conditions in the rules engine.
This is useful in the case when we want to check a condition without triggering the actions of the rule.
Use relative imports
Use relative imports for first-party modules.
New Time format
This release adds a new format for the time variable type which allows to specify a value without seconds, i.e. %H:%M
.
Note: this change doesn't break backward compatibility.
Return a list of booleans from run_all
It is useful to know which rules were triggered and which were not. So now we return a list of booleans from the run_all
function. A value will be True
if the rule in the corresponding position in rule_list
was triggered.
stop_on_first_trigger
is still supported. In case of early exit, the remaining values in the return list will be False
.
Public property added, Validators removed and Conditions optional
Release notes
- Public property added to variables to control visibility of them
- Validators completely removed
- Conditions part of rule is optional now
- Test coverage increased to 99%
- Required dependencies added