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

Akka.Persistence.Query: include more descriptive ToString() values for all Offset types #6927 #6978

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

YariSPB
Copy link
Contributor

@YariSPB YariSPB commented Oct 29, 2023

Fixes #6927

Changes

Added mandatory override ToString() for Offset implementations, which displays Value. Added respective unit tests. Exposed new public API ToString().

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

Latest dev Benchmarks

Include data from the relevant benchmark prior to this change here.

This PR's Benchmarks

Include data from after this change here.

Each Offset implementationclearly logs its value via ToString() so users can include that Offset directly into log statements without needing to filter through the underlying types.
Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

LGTM - the failing tests are racy (I need to look into that) and are unrelated to your changes.

@Aaronontheweb Aaronontheweb merged commit 3834b77 into akkadotnet:dev Oct 31, 2023
9 of 12 checks passed
@YariSPB YariSPB deleted the 6927-Akka.Persistence.Query branch October 31, 2023 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Akka.Persistence.Query: include more descriptive ToString() values for all Offset types
2 participants