|
2 | 2 |
|
3 | 3 | ## Summary |
4 | 4 |
|
5 | | -<!-- Here goes a general summary of what this release is about --> |
| 5 | +This release includes a new `ConfigManager` class to simplify managing the configuration, and ships other improvements and fixes to the config system in general. |
6 | 6 |
|
7 | 7 | ## Upgrading |
8 | 8 |
|
|
11 | 11 | * `LoggingConfigUpdater` |
12 | 12 |
|
13 | 13 | + Renamed to `LoggingConfigUpdatingActor` to follow the actor naming convention. |
14 | | - + Make all arguments to the constructor keyword-only. |
| 14 | + + The actor must now be constructed using a `ConfigManager` instead of a receiver. |
| 15 | + + Make all arguments to the constructor keyword-only, except for the `config_manager` argument. |
| 16 | + + If the configuration is removed, the actor will now load back the default configuration. |
15 | 17 |
|
16 | 18 | * `LoggingConfig` |
17 | 19 |
|
|
31 | 33 | + The `base_schema` argument is now keyword-only. |
32 | 34 | + The arguments forwarded to `marshmallow.Schema.load()` now must be passed explicitly via the `marshmallow_load_kwargs` argument, as a `dict`, to improve the type-checking. |
33 | 35 |
|
| 36 | + * `ConfigManagingActor`: Raise a `ValueError` if the `config_files` argument an empty sequence. |
| 37 | + |
34 | 38 | ## New Features |
35 | 39 |
|
36 | | -- `LoggingConfigUpdatingActor` |
| 40 | +- `frequenz.sdk.config` |
| 41 | + |
| 42 | + - Logging was improved in general. |
| 43 | + |
| 44 | + - Added documentation and user guide. |
| 45 | + |
| 46 | + - `LoggingConfigUpdatingActor` |
37 | 47 |
|
38 | | - * Added a new `name` argument to the constructor to be able to override the actor's name. |
| 48 | + * Added a new `name` argument to the constructor to be able to override the actor's name. |
| 49 | + |
| 50 | + - `ConfigManager`: Added a class to simplify managing the configuration. It takes care of instantiating the config actors and provides a convenient method for creating receivers with a lot of common functionality. |
| 51 | + |
| 52 | + - `BaseConfigSchema`: Added a `marshmallow` base `Schema` that includes custom fields for `frequenz-quantities`. In the futute more commonly used fields might be added. |
| 53 | + |
| 54 | + - `wait_for_first()`: Added a function to make it easy to wait for the first configuration to be received with a timeout. |
| 55 | + |
| 56 | + - `ConfigManagingActor`: Allow passing a single configuration file. |
39 | 57 |
|
40 | 58 | ## Bug Fixes |
41 | 59 |
|
42 | 60 | - Fix a bug in `BackgroundService` where it won't try to `self.cancel()` and `await self.wait()` if there are no internal tasks. This prevented to properly implement custom stop logic without having to redefine the `stop()` method too. |
| 61 | + |
| 62 | +- Fix a bug where if a string was passed to the `ConfigManagingActor` it would be interpreted as a sequence of 1 character strings. |
0 commit comments