-
Notifications
You must be signed in to change notification settings - Fork 194
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
feat: add compatibility with individual date extensions for submissions #2026
Conversation
Thanks for the pull request, @Ian2012! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
a483dc3
to
48d168e
Compare
fe1cbe9
to
f9e64b8
Compare
36f655a
to
1dce338
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2026 +/- ##
==========================================
- Coverage 95.09% 94.98% -0.12%
==========================================
Files 158 158
Lines 17420 17482 +62
Branches 1622 1630 +8
==========================================
+ Hits 16566 16605 +39
- Misses 641 662 +21
- Partials 213 215 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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 left a few more comments!
1dce338
to
bed275c
Compare
This PR is our first proposal to add this functionality, but we have only an edge case in which we would like your opinion: If the Subsection due date is configured to any date after the One solution we have in mind is to query for a UserDate (which stores individual date extensions) object related to the subsection and to the student. What do you think? @Colin-Fredericks @Daniel-hershel |
@Ian2012 So we've got 5 dates at work here:
My feeling is that learner extensions should override everything else, and the ORA dates should override the subsection due date. Does that make sense? Did I answer the wrong question? |
@Ian2012 Thanks for these changes! Hi @jmakowski1123, could you please create a feature ticket for this PR? Or will we not need one since there is an existing issue (#1959) that is being (partially) fixed here? |
@Ian2012 I just wanted to give you a heads up that we are planning to launch a very similar feature in the next week or so. I am going to meet with the lead engineer working on that project later today to review how this PR compares to the feature implementation we are planning to launch, and we will give an update after that meeting. Thank you for your contribution. |
@Daniel-hershel thanks for the information @Colin-Fredericks yes, that's the question. I will update the implementation to match this without tests, and wait for the result of your internal discussion |
We shouldn't need one. If #1959 doesn't meet the full need, we should update it. |
@Ian2012 I have met with our lead engineer on this project @jansenk , and my understanding is that the feature update we're about to launch will include the functionality included in this PR. The work we are finishing up will allow course authors to make a selection in studio that has 3 choices:
My understanding is that this PR's functionality would essentially mirror the first option listed above. Please let me know if you think I'm missing something here and happy to keep talking it through. @jansenk I know you were going to look into this a little more after our chat yesterday to so feel free to amend anything I'm saying here. thanks CC: @e0d |
Basically, it is. But also, allow instructors to extend a student's due date based on individual due date extensions. As it aligns with your use case. Could you provide further instructions for this PR? @Daniel-hershel |
@Ian2012 if you think there is still additional value in this PR that isn't represented in the work Jansen is doing, can you please help me understand what that additional value is? The other question is whether anything in this PR will conflict with the release we are preparing to make. That is something that @jansenk would have to weigh in on. Thanks |
@Daniel-hershel: if the functionality you folks have been working on includes the use case of allow instructors to extend a student's due date based on individual due date extensions, then I think we're good to go since it's basically what we're attempting here. Should we close this PR then? Also, let us know when you release the new version so we can test it! |
@jansenk can you please confirm the answer to the question @mariajgrimaldi is asking. Thanks! |
@Ian2012 Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future. |
Based on this discussion #1959 (comment) this PR will be closed |
TL;DR - Adds compatibility with individual date extensions behind a waffle flag
Partially fixes: #1959
What changed?
due
date of the submission is greater than thesubmission_due
date,due
is used for thesubmission_range
.due
date of the assessment step is greater than theassessment_due
date,due
is used for theassesment_step
range.Developer Checklist
Testing Instructions
Add a waffle flag for everyone:
openresponseassessment.due_date_extension
Before this change, users were unable to answer:
After setting a due date for yesterday:
After granting an individual date extension:
The second commit allows us to apply the individual due date extension for every step in the workflow:
c005190
Things to consider
Unit tests will be added once we receive our first product review and concerns are resolved
Reviewer Checklist
Collectively, these should be completed by reviewers of this PR:
FYI: @openedx/content-aurora