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 latest protos from EventStore v21.6.0+ #43

Merged
merged 10 commits into from
Jul 2, 2021
Merged

Conversation

the-mikedavis
Copy link
Collaborator

@the-mikedavis the-mikedavis commented Jul 2, 2021

connects #41

sets the stage for using persistent subscriptions to the all stream and a new batch_append function

@the-mikedavis
Copy link
Collaborator Author

running the test suite against eventstore 21.2.0 fails a bunch of persistent subscription test cases

there's a chance I'm just treating these protos wrong but if these new protos are not backwards compatible then we're kinda borked and will have to hold on to potentially all versions of all protos 😬

@the-mikedavis
Copy link
Collaborator Author

actually it looks like the protos are backwards compatible because of the way the indexing of the fields works

Comment on lines -22 to +24
event_store.client.shared.StreamIdentifier stream_identifier = 1;
oneof stream_option {
event_store.client.StreamIdentifier stream_identifier = 1;
event_store.client.Empty all = 5;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

example of how this works with backwards compatibility: the fields are indexed as their locations in the encoded proto messages, so eventstore can support passing new information to old versions of eventstoredb because the old versions don't know these indices and will fuzz off that data

kinda cool

StreamOptions stream = 4;
AllOptions all = 5;
}
event_store.client.StreamIdentifier stream_identifier = 1 [deprecated=true];
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the [dreprecated=true] symbol has me worried that eventually we'll need to either support multiple major versions of spear or do some smart on-the-fly protobuf-module selection magic 😬

@the-mikedavis the-mikedavis marked this pull request as ready for review July 2, 2021 19:50
@the-mikedavis the-mikedavis requested a review from a team July 2, 2021 19:51
@the-mikedavis
Copy link
Collaborator Author

note that many of the files in this PR are either auto-generated or copied from the EventStore repository

better hygiene around this is desirable. this might actually be a valid use of submodules 🤦

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.

None yet

1 participant