fixes CNVS-18145
test plan:
- set start and end dates for a term and course within the term
- with 'users can only participate' box in course setting unchecked, attempt to
create an assignment using the quick add button on an assignment group
- attempt to set a due date that falls outside of the term start and end range
- proper errors should show for term start and term end
- check off 'users can only participate' box in course settings
- repeat above process for course start and end dates, proper errors should show
- setting due date within valid range should work as expected and save
- create an assignment from the edit page and set a lock and unlock date
- go to quick edit for the assignment on the assignment index page
- attempt to set a due date before unlock date and then after unlock date
- proper errors should show for both
- setting a due date between the unlock and lock dates should save as expected
- create an assignment with multiple due dates
- no date validations errors should occur on quick edit
- test plan on fix for CNVS-16520 should still work as expected
Change-Id: If142214d8297cae5e6e421d3a1fbb28e3a7760c2
Reviewed-on: https://gerrit.instructure.com/47730
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
QA-Review: Adam Stone <astone@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>