Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use random UUID for StatusView names #162

Merged
merged 1 commit into from
May 4, 2023
Merged

Use random UUID for StatusView names #162

merged 1 commit into from
May 4, 2023

Conversation

joeshannon
Copy link
Contributor

This generates names which are more clearly distinct when looking through logs.

@joeshannon
Copy link
Contributor Author

Fixes #161

This generates names which are more clearly distinct when looking
through logs.
@codecov
Copy link

codecov bot commented May 2, 2023

Codecov Report

Merging #162 (d64c475) into main (58317f4) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #162   +/-   ##
=======================================
  Coverage   74.47%   74.47%           
=======================================
  Files          37       37           
  Lines        1050     1050           
=======================================
  Hits          782      782           
  Misses        268      268           
Impacted Files Coverage Δ
src/blueapi/worker/reworker.py 33.33% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@DiamondJoseph DiamondJoseph left a comment

Choose a reason for hiding this comment

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

uuid1 is more guaranteed to be unique, but uuid4 is much more obvious when two uuids aren't the same when reading the logs. I think the odds of collision over the lifetime of the service is so low that this is worth using as the standard generator but I leave the final decision to @callumforrester

Copy link
Contributor

@callumforrester callumforrester left a comment

Choose a reason for hiding this comment

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

Happy to do so, I'm also not married to uuids, we can use an atomic counter or something if that helps.

@DiamondJoseph DiamondJoseph merged commit 4c4df02 into main May 4, 2023
@joeshannon joeshannon deleted the uuid branch May 16, 2023 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants