-
Notifications
You must be signed in to change notification settings - Fork 108
Add read-only status and event timestamps to metadata #276
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
Add read-only status and event timestamps to metadata #276
Conversation
My bad. I think by tomorrow I will open a PR on |
Co-authored-by: Tyler Treat <[email protected]>
FYI, you may need this to test the feature |
3411c72
to
6e140d7
Compare
Changes lgtm. Would be good to get some tests around the changes to |
Yes. I am waiting for liftbridge-io/go-liftbridge#90 to be merged, so I can create a PR for go-liftbridge adding the timestamps. I would then use it to add some API tests (in api_test.go) using |
I guess a small unit test around IMO, the new feature you will add in the client may be tested separately using api mock (already in the client). |
@Jmgr Right, I forgot the go-liftbridge PR hasn't been merged yet. |
I don't think so, unfortunately, because to test the received message timestamps you need to be able to publish a message. The changes in liftbridge-io/go-liftbridge#93 should allow testing this. |
1d83ebb
to
81f45cb
Compare
Done. |
lgtm, I think it just needs dependencies to be updated? |
Yes, I'm waiting for liftbridge-io/go-liftbridge#93 to be merged. I will remove the |
I've merged liftbridge-io/go-liftbridge#93 |
I have updated the dependency. |
This PR adds the read-only status to the metadata, as well as the first and latest timestamps of received messages, paused and read-only status changes.
I wasn't able to test this for now because
FetchPartitionMetadata
has not been pushed to go-liftbridge yet, so creating this PR as a draft.