closes VICE-4492
flag=discussion_checkpoints
Test plan:
- Go to SiteAdmin -> Feature Options and enable
the Discussion Checkpoints feature flag
- Create a course and enroll yourself as teacher
or student; take a note of the course id
- Create a graded discussion with checkpoints
and add due dates
- Create a graded discussion with checkpoints
but do not add due dates
- Get undated assignments from the Calendar API
http://<canvas url>/api/v1/calendar_events?
type=assignment&context_codes[]=course_<course id>&undated=1
- Verify that response is an empty array
- Repeat the API call for type=sub_assignment
- Verify that the two undated checkpoints are returned
Change-Id: I1630561f5817fb39acd8f7534b873b6d6825c56a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/354994
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Chawn Neal <chawn.neal@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>