-
Notifications
You must be signed in to change notification settings - Fork 3
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
396 hrs autocomplete on expire #140
Conversation
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.
Looks good, just added two thoughts/comments.
|
||
# if there are no answers or the answer came before the last execution of the dialog, | ||
# return None | ||
if last_answer is None or last_answer.datetime < last_execution.last_time: |
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.
So the last_time value is always only set when a dialog is completed, not yet when it is started?
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.
last_time
is updated when the dialog is started, this is why if the answer came before that, it is for sure from another run
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.
Ah I seee, that makes sense!
self.set_new_state(ExecutionRunState(self.user_id)) | ||
|
||
else: | ||
next_day = datetime.now() + timedelta(days=1) |
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 was wondering if adding one day is a good idea, since there might be a structural reason why people did not complete the dialog now. For example, could we just use people's preferred time from the profile creation dialog for this? But I suppose especially at the start people might not yet have such a preferred time. And maybe this is just overcomplicating things.
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.
That's a good point. We can also check if the preferred time has been set and use it if it exists, and add one day otherwise.
SonarCloud Quality Gate failed. 0 Bugs 0.0% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Fixes: PerfectFit-project/virtual-coach-issues#396
Fixes: PerfectFit-project/testing-tickets#25
Fixes: PerfectFit-project/virtual-coach-issues#393
Fixes: PerfectFit-project/testing-tickets#26