Skip to content

Fixes Issue #332#333

Merged
damianh merged 5 commits into
NEventStore:masterfrom
damianh:Issue-332
Mar 15, 2014
Merged

Fixes Issue #332#333
damianh merged 5 commits into
NEventStore:masterfrom
damianh:Issue-332

Conversation

@damianh

@damianh damianh commented Mar 13, 2014

Copy link
Copy Markdown
Contributor

Fixes Issue #332.

Adds OnPurge and OnStreamDelete to IPipelineHook. Key implementer is the OptimisticPipelineHook so that it's cache of tracked heads are cleaned up accordingly. The PipelineHooksAwarePersistanceDecorator is responsible for calling these additional extension points.

Honestly, feels a bit leaky to me, but can't think of a better way...

@fschmied

Copy link
Copy Markdown

@damianh I could only look through it on my phone, but it looks good - can't see any flaws ATM. The only thing I've noticed is that apparently the decorator is not responsible for raising the PreCommit and PostCommit hooks. Those are raised directly by OptimisticEventStore, which I find a little asymmetric. Doesn't really have much to do with this pull request, though.

@damianh

damianh commented Mar 14, 2014

Copy link
Copy Markdown
Contributor Author

Agreed, hence the leakyness of this. But.. its a narrow use case -
integration tests - so I think I'm OK with it.
On 14 Mar 2014 23:04, "fschmied" notifications@github.com wrote:

@damianh https://github.com/damianh I could only look through it on my
phone, but it looks good - can't see any flaws ATM. The only thing I've
noticed is that apparently the decorator is not responsible for raising the
PreCommit and PostCommit hooks. Those are raised directly by
OptimisticEventStore, which I find a little asymmetric. Doesn't really have
much to do with this pull request, though.

Reply to this email directly or view it on GitHubhttps://github.com//pull/333#issuecomment-37702391
.

damianh added a commit that referenced this pull request Mar 15, 2014
@damianh damianh merged commit 8d98641 into NEventStore:master Mar 15, 2014
@damianh damianh deleted the Issue-332 branch April 1, 2014 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants