Skip to content

Conversation

yuri-sergiichuk
Copy link
Contributor

This PR fixes #1352.

The root cause of the issue was using hasProducedEvents method which actually is just checking that the ProducedEvents message is set, but does not check if there are any events inside.

@yuri-sergiichuk yuri-sergiichuk self-assigned this Jan 13, 2021
@yuri-sergiichuk
Copy link
Contributor Author

@armiol @alexander-yevsyukov PTAL.

@codecov
Copy link

codecov bot commented Jan 13, 2021

Codecov Report

Merging #1353 (0383a6b) into master (967fd9a) will decrease coverage by 0.00%.
The diff coverage is 75.00%.

@@             Coverage Diff              @@
##             master    #1353      +/-   ##
============================================
- Coverage     91.02%   91.01%   -0.01%     
- Complexity     4765     4771       +6     
============================================
  Files           614      614              
  Lines         15135    15137       +2     
  Branches        858      858              
============================================
+ Hits          13776    13777       +1     
  Misses         1087     1087              
- Partials        272      273       +1     

Copy link
Contributor

@alexander-yevsyukov alexander-yevsyukov left a comment

Choose a reason for hiding this comment

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

Elegantly solved! LGTM

/**
* Ignores temperature changes outside its own range.
*/
public final class SafeThermometer extends Aggregate<ThermometerId, Thermometer, Thermometer.Builder> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Грядущими морозами навеяло? ;)

@yuri-sergiichuk yuri-sergiichuk merged commit 69dd272 into master Jan 14, 2021
@yuri-sergiichuk yuri-sergiichuk deleted the fix-empty-dispatching-delivery branch January 14, 2021 08:26
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.

Aggregate tries to update its state after @Reaction even when no events are produced
2 participants