-
Notifications
You must be signed in to change notification settings - Fork 789
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
Refactor mutation events registration by moving reusable code from relevant steps to EventUti #2609
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 3.7-dev #2609 +/- ##
=============================================
+ Coverage 76.14% 76.81% +0.67%
- Complexity 13152 13194 +42
=============================================
Files 1084 1087 +3
Lines 65160 66303 +1143
Branches 7285 7293 +8
=============================================
+ Hits 49616 50931 +1315
+ Misses 12839 12652 -187
- Partials 2705 2720 +15 ☔ View full report in Codecov by Sentry. |
do you think there should be utilities for all of these sorts of things? like this similar sort of code in |
I think the more we can make logic reusable the better. So, I think we can make utilities for all the relevant places where such event registration is used. |
I'm good with the change, but I have similar question as Stephen. Is it worth adding one extra util file just for the removed events registration? I don't quite see these method used elsewhere. For example, when refactoring for other types of event registration, it might be too much to |
Definitely makes sense 👍 I will update it tomorrow. |
…levant steps to EventUti Related discussion where the conclusion was made to relax individual steps based on necessity: https://lists.apache.org/thread/vjbjh29kwjhd5lcmkqqqqrhw7rw2ynh9 Signed-off-by: Oleksandr Porunov <alexandr.porunov@gmail.com>
0b115d9
to
a0e6869
Compare
@spmallette @xiazcy Pushed an update to make this PR more general. Refactored all places with events registration logic by moving reusable code to |
thanks - added in a couple follow-on bits for formatting/javadoc: bd5836a |
This will allow to reuse callback registration logic for extended classes of mutation steps.
Related discussion where the conclusion was made to relax individual steps based on necessity: https://lists.apache.org/thread/vjbjh29kwjhd5lcmkqqqqrhw7rw2ynh9