Skip to content

Add new values for expected_version - #127

Merged
slashdotdash merged 2 commits into
commanded:masterfrom
leifg:expose-any-version-to-es-adapter
Sep 21, 2018
Merged

slashdotdash merged 2 commits into
commanded:masterfrom
leifg:expose-any-version-to-es-adapter

Conversation

@leifg

@leifg leifg commented Jan 20, 2018 •

Copy link
Copy Markdown
Contributor

The eventstore backend allows to skip the expected version check: (https://github.com/commanded/eventstore/blob/2d031e73a668fb518fc96f0670ccc6ed1deb5bc8/lib/event_store.ex#L44)

This PR will extend this feature to the InMemory adapter.

PR for eventstore-adapter will follow

@slashdotdash

Copy link
Copy Markdown
Member

This requires making a breaking change to the EventStore library since it only supports returning an :ok response when appending events.

I'm somewhat hesitant to make this change without a strong need to.

@slashdotdash
slashdotdash force-pushed the master branch 3 times, most recently from 5cfda8f to 784bb61 Compare August 26, 2018 15:32
@slashdotdash
slashdotdash merged commit afae615 into commanded:master Sep 21, 2018
slashdotdash added a commit that referenced this pull request Sep 21, 2018
slashdotdash added a commit that referenced this pull request Sep 21, 2018
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.

2 participants