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
Cleanup deployment-start-time feature branch, add tests #7928
Cleanup deployment-start-time feature branch, add tests #7928
Changes from 29 commits
87eb843
b108a7d
97d41d6
7ab9503
637ad4a
bd0f1c3
ab00c3e
2016455
3a709d3
e5c73f0
58c2217
1c1f555
4ff7d46
259bec9
3eeeb55
9370e2a
23d36dd
be6ff76
5aa10f3
180fd45
8a77b92
6b4f94d
1f9f23e
927deba
74503df
55bfce4
d089ddb
3ef506a
104e72b
8912f52
4b80352
3320144
07c7cb7
b205827
02b9f14
358adb7
eaa14c5
44f03b4
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Since the above exits if both are set you can just do
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.
Do you mean
else:
being wherestart_in
is None andstart_as
in None? Because there is some logic beneath that specific tostart_in
/start_at
for assigningstart_time_parsed
,scheduled_start_time
, andhuman_dt_diff
.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.
Yeah I think you can do
else
instead ofelif start_in is None and start_at is None:
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'm curious too what this would look like without having a helper function for the raw parsing logic.
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 the helper function is a bit harder to read than the initial implementation, especially since it does more than one thing (parses the date time and generates a formatted diff). I don't have strong feelings here though.
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.
(unresolving for visibility; does not mean it needs to be addressed)