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

Simplify unicast event routing #1317

Merged
merged 13 commits into from
Oct 26, 2020

Conversation

alexander-yevsyukov
Copy link
Contributor

@alexander-yevsyukov alexander-yevsyukov commented Oct 23, 2020

This PR adds unicast() methods for EventRouting to simplify the cases when an event target is only one entity.

Previously, it was required to wrap the ID of the target entity into EventRoute.withId() utility call.

Only some of the withId() calls were replaced with simplified calls to make this PR merge sooner.
We'll migrate to simpler API where appropriate when corresponding framework areas or tests are updated.

@alexander-yevsyukov alexander-yevsyukov self-assigned this Oct 23, 2020
@codecov
Copy link

codecov bot commented Oct 23, 2020

Codecov Report

Merging #1317 into master will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #1317      +/-   ##
============================================
- Coverage     91.06%   91.05%   -0.02%     
- Complexity     4746     4750       +4     
============================================
  Files           608      609       +1     
  Lines         15090    15101      +11     
  Branches        854      854              
============================================
+ Hits          13742    13750       +8     
- Misses         1080     1082       +2     
- Partials        268      269       +1     

Copy link
Contributor

@yuri-sergiichuk yuri-sergiichuk 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
Copy link
Contributor Author

51fecc6 also addresses #1316.

@alexander-yevsyukov alexander-yevsyukov merged commit 4515237 into master Oct 26, 2020
@alexander-yevsyukov alexander-yevsyukov deleted the simplify-unicast-event-routing branch October 26, 2020 18:59
@yuri-sergiichuk yuri-sergiichuk mentioned this pull request Dec 14, 2020
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.

4 participants