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

Allow optional command generation on event #1114

Merged
merged 9 commits into from
Jul 15, 2019

Conversation

alexander-yevsyukov
Copy link
Contributor

@alexander-yevsyukov alexander-yevsyukov commented Jul 15, 2019

This PR allows to have @Command methods that accept an event to ignore it returning Optional.empty() or Either with Nothing.

AggregateRoot, AggregatePart and corresponding repositories were marked @Experimental to reflect the fact that this API has not been proved to be in real projects.

@alexander-yevsyukov alexander-yevsyukov self-assigned this Jul 15, 2019
@codecov
Copy link

codecov bot commented Jul 15, 2019

Codecov Report

Merging #1114 into master will decrease coverage by 0.01%.
The diff coverage is 76.47%.

@@             Coverage Diff              @@
##             master    #1114      +/-   ##
============================================
- Coverage     92.45%   92.44%   -0.02%     
- Complexity     3947     3951       +4     
============================================
  Files           526      526              
  Lines         12690    12694       +4     
  Branches        721      721              
============================================
+ Hits          11733    11735       +2     
- Misses          740      743       +3     
+ Partials        217      216       -1

Copy link
Contributor

@dmdashenkov dmdashenkov left a comment

Choose a reason for hiding this comment

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

@alexander-yevsyukov, LGTM.

However, please mention the reasoning behind marking AggregatePart as @Expperimental.

…er-on-event

Conflicts:
	server/src/main/java/io/spine/server/command/model/CommandHandlerMethod.java
@alexander-yevsyukov alexander-yevsyukov merged commit b58c7d8 into master Jul 15, 2019
@alexander-yevsyukov alexander-yevsyukov deleted the fix-commander-on-event branch July 15, 2019 20:14
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.

3 participants