Skip to content

Conversation

@ela-kotulska-frequenz
Copy link
Contributor

@ela-kotulska-frequenz ela-kotulska-frequenz commented Dec 10, 2024

This makes it more readable.

This makes more readable.

Signed-off-by: Elzbieta Kotulska <[email protected]>
@ela-kotulska-frequenz ela-kotulska-frequenz added the part:actor Affects an actor ot the actors utilities (decorator, etc.) label Dec 10, 2024
@ela-kotulska-frequenz ela-kotulska-frequenz self-assigned this Dec 10, 2024
@ela-kotulska-frequenz ela-kotulska-frequenz requested a review from a team as a code owner December 10, 2024 07:32
@ela-kotulska-frequenz ela-kotulska-frequenz added this to the v1.0.0-rc1500 milestone Dec 10, 2024
@github-actions github-actions bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests labels Dec 10, 2024
Copy link
Contributor

@llucax llucax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't go for this, this will be renamed to unique_id and then it doesn't make sense to have the class name in the unique ID. If you want to get a representation of the instance, just use str(instance) (or f"{instance}" or logging.debug("%s", instance)) instead of using the name explicitly (instance.name, f"{instance.name}", etc.), that will give you the full class name + unique ID.

This change is already done in core, I just didn't have time to finish the core library and do the migration. We could also update BackgroudService for now but I don't think it is worth it if we'll need to change this once we move to using core.

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

Projects

Development

Successfully merging this pull request may close these issues.

2 participants