-
Notifications
You must be signed in to change notification settings - Fork 12
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
RDISCROWD-5852 Calc task expiration by create date #836
Conversation
Pull Request Test Coverage Report for Build 4734536223
💛 - Coveralls |
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.
If user sets expiration beyond max expiration from task create date, will api report 403 along with appropriate message such as Task expiration cannot be set beyond max expiration
or it silently sets max expiration from create date and no error reported? If its later, I think NOOP and reporting 403 and appropriate error would be more useful.
Should we implement similar error reporting behavior for importing tasks? the same |
Yes, as this error would occur with task |
@@ -64,7 +64,6 @@ def set_gold_answers(task, gold_answers): | |||
if encrypted(): | |||
url = upload_files_priv(task, task.project_id, gold_answers, TASK_PRIVATE_GOLD_ANSWER_FILE_NAME)['externalUrl'] | |||
gold_answers = dict([(TASK_GOLD_ANSWER_URL_KEY, url)]) |
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 setting gold task should not be setting task expiration as both operations are independent and hence task expiration not to be modified with setting gold task.
@kbecker42 , @XiChenn , @n00rsy thoughts?
0f74350
to
8faf13a
Compare
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.
lgtm
Issue number of the reported bug or feature request: RDISCROWD-5852
Describe your changes
Previously
In #830, we limited the task expiration based on the current date. The task expiration limit was n days from the current day. This allowed for the user to indefinitely extend their tasks' expirations, which we don't want.
Now
Task expiration limit is now n days from the create date of the task, putting a hard cap on task expiration.
Testing performed
Tested locally
Additional context
#830