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
MockingProgress: replaced getVerificationListeners() with fireVerificationEvent(..) #965
MockingProgress: replaced getVerificationListeners() with fireVerificationEvent(..) #965
Conversation
fireVerificationEvent(..)
Codecov Report
@@ Coverage Diff @@
## release/2.x #965 +/- ##
==============================================
Coverage ? 86.69%
Complexity ? 2255
==============================================
Files ? 287
Lines ? 5733
Branches ? 663
==============================================
Hits ? 4970
Misses ? 574
Partials ? 189
Continue to review full report at Codecov.
|
blub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I am okay with this, but the original solution was working out just fine thus far 😄
Thats true for almost every refactoring on this planet ;-). Exposing implementation details to other classes are a no go even if it looks handy. I've seen more than one product that became unmaintainable after the sum of all technical depts get out of control. Every tiny improvement is a good invest for a healty product. |
The reason I made that comment is that I am not aware of any planned changes to that class. So I would rather refactor if we see the need to, than to make these changes. Yes it is a different design, but also this one has some disadvantaged. Therefore I am inclined to wait, until we find a reason to change the implementation and also apply these changes 😄 |
okay let's see what the other core-members say |
I'm happy to review a PR if it brings some feature in :) Otherwise, it's hard prioritize PRs that are only refactorings without clear value. Normally, for every refactoring-only PR, I glance at the code change and if it does not stick out immediately as useful, I move on without leaving a comment. I'd rather allocate my limited resources to reviewing issues / PRs / coding stuff that adds clear value (or makes me happy). Here's an example of a refactoring that removes unnecessary code and is needed to implement a feature: #1011 (it removes ~20 lines of build logic code that is magic to most folks besides build authors). The refactoring in this PR adds ~30 lines of code (net). I'd rather avoid getting into a debate how / if the refactorings in this PR are useful. I'm sure you will convince us ;) I'm happy to review this PR once I clean up all PRs that clearly add value (new features, improved behavior), and once my personal backlog of favorite features is implemented. Thanks for reading and for supporting the team!!! |
@ChristianSchwarz, do you want to take a stab at this one #1013? :) |
Closing this one for now. Feel free to apply these refactorings when the behavior of the classes has to be changed 😄 |
With this PR MockingProgress don't need to expose its listeners. This keeps the notification of listeners and the logic in one place to avoid "solution sprawl". Later on we can unify or improve the notification behaviour in MockingProgressImpl.