Skip to content

Conversation

@daniel-zullo-frequenz
Copy link
Contributor

@daniel-zullo-frequenz daniel-zullo-frequenz commented Jul 22, 2024

The ConfigManagingActor now sends a collections.abc.Mapping type as the output sender type to indicate to the user that the broadcasted configuration is intended to be read-only. This change leverages type checkers (e.g., mypy, etc.) to help ensure that users do not attempt to modify the dictionary contents.

Note that this change won't prevent users from modifying the contents at runtime, but it will help prevent accidental modifications.

@daniel-zullo-frequenz daniel-zullo-frequenz requested a review from a team as a code owner July 22, 2024 14:39
@github-actions github-actions bot added part:tests Affects the unit, integration and performance (benchmarks) tests part:actor Affects an actor ot the actors utilities (decorator, etc.) labels Jul 22, 2024
The ConfigManagingActor now sends a collections.abc.Mapping
type as the output sender type to indicate to the user that
the broadcasted configuration is intended to be read-only.
This change leverages type checkers (e.g., mypy, etc.) to
help ensure that users do not attempt to modify the
dictionary contents.

Note that this change won't prevent users from modifying the
contents at runtime, but it will help prevent accidental
modifications.

Signed-off-by: Daniel Zullo <[email protected]>
@daniel-zullo-frequenz daniel-zullo-frequenz force-pushed the feature/update-config-manager-sender-type branch from c461248 to fee07e3 Compare July 22, 2024 14:40
@github-actions github-actions bot added the part:docs Affects the documentation label Jul 22, 2024
@llucax llucax added the scope:breaking-change Breaking change, users will need to update their code label Jul 23, 2024
@daniel-zullo-frequenz daniel-zullo-frequenz added this to the v1.0.0-rc800 milestone Jul 23, 2024
@daniel-zullo-frequenz daniel-zullo-frequenz added this pull request to the merge queue Jul 23, 2024
Merged via the queue into frequenz-floss:v1.x.x with commit 983a5e4 Jul 23, 2024
@daniel-zullo-frequenz daniel-zullo-frequenz deleted the feature/update-config-manager-sender-type branch July 23, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:actor Affects an actor ot the actors utilities (decorator, etc.) part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests scope:breaking-change Breaking change, users will need to update their code

Projects

Development

Successfully merging this pull request may close these issues.

2 participants