-
Notifications
You must be signed in to change notification settings - Fork 90
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
Rework executor system #2303
base: release/current
Are you sure you want to change the base?
Rework executor system #2303
Conversation
973055e
to
7f5a549
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/current #2303 +/- ##
=====================================================
+ Coverage 36.16% 36.33% +0.16%
+ Complexity 1653 1647 -6
=====================================================
Files 589 589
Lines 18066 17965 -101
Branches 1176 1173 -3
=====================================================
- Hits 6533 6527 -6
+ Misses 11207 11104 -103
- Partials 326 334 +8 ☔ View full report in Codecov by Sentry. |
52a2434
to
1ddaf1f
Compare
|
||
@Data | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public static class StatusPayloadDocument { |
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.
should we move that to its own file ?
|
||
@JsonProperty("file_drop_file") | ||
private Document fileDropFile; | ||
private StatusPayloadDocument fileDropFile; |
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.
can we use a builder here ?
} | ||
injectStatus.setName(status); | ||
injectStatus.setTrackingSentDate(Instant.now()); | ||
injectStatus.setPayloadOutput(injectUtils.getStatusPayloadFromInject(inject)); | ||
injectStatusRepository.save(injectStatus); | ||
InjectStatus injectStatusSaved = injectStatusRepository.save(injectStatus); | ||
inject.setStatus(injectStatusSaved); |
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.
As you I don't like this approach of updating the object in the method as it can have non explicit impact. I know that is not an universal opinion but having both "return" + updating the inject seems more confusing to me.
No description provided.