|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +# 44.0.0 [#1286](https://github.com/openfisca/openfisca-core/pull/1286) |
| 4 | + |
| 5 | +#### New features |
| 6 | + |
| 7 | +- Add `CoreEntity.variables` |
| 8 | + - Allows for querying the variables defined for an entity. |
| 9 | + |
| 10 | +#### Deprecations |
| 11 | + |
| 12 | +- Remove `CoreEntity.check_role_validity` |
| 13 | + - The method in itself had no relation to `entities` (it was a static |
| 14 | + method, so no depending neither on an entity class nor an instance). It |
| 15 | + could have been kept as a `populations` helper, where it was exclusively |
| 16 | + used. Nonetheless, `check_role_validity` had the peculiar behaviour of |
| 17 | + not failing but when the value of `role` is not `None`, that granted it |
| 18 | + in the author's opinion the right to be removed so as to avoid confusion. |
| 19 | +- Deprecate `class_override` arg from `entities.build_entity` |
| 20 | + - That argument actually did nothing, and linters have been complaining |
| 21 | + about this argument for almost 10 years now. It is only being marked as |
| 22 | + a breaking change for respect to the semantic versioning protocol. |
| 23 | +- Deprecate `CoreEntity.check_variable_defined_for_entity` |
| 24 | + - The feature is still provided by `CoreEntity.get_variable` when passed |
| 25 | + the optional positional or keyword argument `check_existence`. In fact, |
| 26 | + the removed method was duplicating and already existing behaviour. |
| 27 | +- Deprecate `CoreEntity.set_tax_benefit_system` |
| 28 | + - The feature is now provided by simple variable assignment: |
| 29 | + ```python |
| 30 | + entity.tax_benefit_system = tax_benefit_system |
| 31 | + ``` |
| 32 | + - Likewise, `entity.tax_benefit_system` becomes part of the public API |
| 33 | + (which implicitly it was as the private marker was being violated). |
| 34 | + |
| 35 | +#### Technical changes |
| 36 | + |
| 37 | +- Fix failing `openfisca-extension-template` tests |
| 38 | + |
3 | 39 | ### 43.2.2 [#1280](https://github.com/openfisca/openfisca-core/pull/1280) |
4 | 40 |
|
5 | 41 | #### Documentation |
|
0 commit comments