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

Track and deleting of emitted streams #970

Merged
merged 1 commit into from Jul 7, 2016

Conversation

pgermishuys
Copy link
Contributor

@pgermishuys pgermishuys commented Jul 5, 2016

Fixes #968
The emitted streams can be tracked if the user indicates that he/she wants
to do so. This is an additional parameter that can be passed when creating a projection.

The user also has the ability to indicate that he/she wants to delete the emitted streams of a projection if it has been tracked. This is an additional parameter that can be passed when deleting a projection.

For the above to work correctly (especially if the user creates another projection that emits to the previously deleted emitted streams), the EmittedStream needed to have it's logic adjusted for establishing whether an emitted stream is a new physical stream or not. Previously this was done by checking against the number of events in the read result. It has been adjusted to check whether the LastEventNumber of the read result is -1 (NoStream)

The ManagedProjection has also been reviewed and cleaned up as part of
this exercise.

The Projection Event Types have also extracted and moved into it's own class in a class called ProjectionEventTypes

@pgermishuys pgermishuys force-pushed the track-emitted-streams branch 4 times, most recently from 4e98e42 to aee7471 Compare July 7, 2016 06:25
The emitted streams can be tracked if the user indicates that he/she wants
to do so, this is an option when creating a projection.
When the user wants to delete a projection he/she can indicate that they
want to delete all of the emitted streams that resulted from the
projection.

The ManagedProjection has also been reviewed and cleaned up as part of
this exercise

Track and deleting of emitted streams
The emitted streams can be tracked if the user indicates that he/she wants
to do so, this is an option when creating a projection.
When the user wants to delete a projection he/she can indicate that they
want to delete all of the emitted streams that resulted from the
projection.

The ManagedProjection has also been reviewed and cleaned up as part of
this exercise
@hayley-jean
Copy link
Member

Looks good

@hayley-jean hayley-jean merged commit ebfdaf4 into release-v3.8.0 Jul 7, 2016
@hayley-jean hayley-jean deleted the track-emitted-streams branch July 7, 2016 12:42
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

2 participants