-
Notifications
You must be signed in to change notification settings - Fork 5
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
Remove VectorClock type #235
Conversation
proto/identity/api/v1/identity.proto
Outdated
@@ -4,16 +4,15 @@ package xmtp.identity.api.v1; | |||
|
|||
import "google/api/annotations.proto"; | |||
import "identity/associations/association.proto"; | |||
import "identity/associations/signature.proto"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated lint/auto-format changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should do a trial run of a breaking change.
I don't think the week before Christmas is the week to do it. Very soon it's going to be hard to get a hold of node operators. If you want this update before January, I'd suggest doing it in the non-breaking way.
There is no rush on this - just put this up so that we have it on our minds. Can wait until January |
Okay, I figure it is easier to separate the breaking change to a separate PR if we really need it. Just renaming for now which can unblock us on more short-term things like releasing the XIP |
🎉 This PR is included in version 3.73.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
We are no longer referring to this as a 'vector clock', instead it could be more accurately called a cursor.
Seeing as we are renaming anyway, I thought it might be a good opportunity to unnest it, as it complicated the code for using the field. In the original layout, the field could be referred to by three nested names:
last_seen
,VectorClock
,node_id_to_sequence_id
.The issue though is that this is a breaking change, and would require resetting the DB. We may have to do this not just for our own instance of the node, but in any other partner nodes. If this ends up being too difficult, I'm happy to avoid the unnesting and simply rename
VectorClock
->Cursor
. Although it could be a good thing to run through a breaking change as practice regardless.