Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Updated croner to 8.1.0 and fixed "recurring-interval" type maintenance #4939
Updated croner to 8.1.0 and fixed "recurring-interval" type maintenance #4939
Changes from 2 commits
d616883
4750bd1
7f64bad
4836f72
30f7b48
76deb6e
e791c70
1822b55
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 need a bit of help understanding the
if
-clause you added 😅:Is this not already covered by the
if
orelse
branch above?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.
Hi, @CommanderStorm, so above is an
if
-else if
-else
, and theelse if
is whenthis.end_date
is set, and it calculates ifthis.end_date
will be before the end of the interval. If it is not, thenthis.duration
is leftundefined
.I guess my solution is not the best one, I was not sure if it was left
undefined
for some other purpose, but if it is not, then I guess theelse if
should look something like this:Let me know if you want me to make this change.
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 that is better.
duration
is never explicitly checked for undefined => I think it being undefined is a bug ^^While you are at it, I think that while
if
/... clause would be way better if extracted into a functionthis.duration = this.inferDuration()
That way the controll flow is not as confusing in the future..
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.
Code here
Lmk if this is good.