Skip to content

Releases: yoyowallet/business-rules

v1.6.0

02 May 09:32
Compare
Choose a tag to compare

Added support for Python versions 3.8 to 3.12.

1.5.0

08 Apr 13:04
f827cb5
Compare
Choose a tag to compare

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

07 Feb 15:18
ffefc86
Compare
Choose a tag to compare

Add PY2 compat for getfullargspec

Required dependency added

10 Dec 12:24
b2451c6
Compare
Choose a tag to compare

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

10 Dec 11:54
fe5b59f
Compare
Choose a tag to compare

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

13 Mar 16:20
100f7aa
Compare
Choose a tag to compare

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

31 Jan 16:15
a3acc14
Compare
Choose a tag to compare

Use relative imports for first-party modules.

New Time format

12 Dec 09:46
b016683
Compare
Choose a tag to compare

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

22 Aug 15:06
Compare
Choose a tag to compare

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

05 Jul 16:43
Compare
Choose a tag to compare

Release notes

  1. Public property added to variables to control visibility of them
  2. Validators completely removed
  3. Conditions part of rule is optional now
  4. Test coverage increased to 99%
  5. Required dependencies added