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

Add setStreamId method to EventTransformation to support transformations for new streams #17

Merged
merged 1 commit into from
Oct 25, 2018

Conversation

MartinYSpasov
Copy link
Contributor

No description provided.

@@ -32,34 +25,30 @@
* @deprecated use DEACTIVATE instead
*/
@Deprecated
public static final Action ARCHIVE = new Action(false, true, false, false);
public static final Action ARCHIVE = new Action(false, true, false);

Choose a reason for hiding this comment

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

INFO Do not forget to remove this deprecated code someday. rule

@MartinYSpasov MartinYSpasov force-pushed the stream-id-fix branch 2 times, most recently from 20c4985 to 336f8a4 Compare October 16, 2018 15:12
@coveralls
Copy link

coveralls commented Oct 16, 2018

Coverage Status

Coverage increased (+0.7%) to 91.348% when pulling a989e19 on stream-id-fix into cb45b28 on master.

@MartinYSpasov MartinYSpasov force-pushed the stream-id-fix branch 2 times, most recently from aef7505 to 8e6a8e1 Compare October 17, 2018 13:34
// public Optional<UUID> setStreamId(final JsonEnvelope event) {
// return Optional.of(STREAM_ID);
// }
// }
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this commented out code be removed?

@MartinYSpasov MartinYSpasov force-pushed the stream-id-fix branch 4 times, most recently from a4de397 to 611a045 Compare October 18, 2018 14:25
@cjs-common-platform-ci
Copy link
Member

SonarQube analysis reported 1 issue

  • INFO 1 info

Watch the comments in this conversation to review them.

@MartinYSpasov MartinYSpasov force-pushed the stream-id-fix branch 3 times, most recently from c7e9027 to 75eb75d Compare October 23, 2018 09:03
final EventTransformationStreamIdFilter eventTransformationStreamIdFilter = new EventTransformationStreamIdFilter();
final Optional<UUID> eventTransformationStreamId = eventTransformationStreamIdFilter.getEventTransformationStreamId(newHashSet(transformation1, transformation2), Arrays.asList(event1, event2));

assertFalse(eventTransformationStreamId.isPresent());
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this correct? The test name seems to indicate that this would be true

@mapingo mapingo merged commit f14d6b3 into master Oct 25, 2018
@mapingo mapingo deleted the stream-id-fix branch October 25, 2018 14:53
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

4 participants