A graded discussion can have a todo date if it was converted
from an ungraded discussion to a graded discussion. In that
case we should not show to todo date on the modules page.
fixes LX-1964
flag=none
test plan:
- create an ungraded discussion and check the 'add to student
to do' box and add a date
- create a module and add the ungraded discussion to it
- expect to see the to do date on the module item
- go back to the discussion and change it from ungraded
to graded
- check the modules page, expect to see no date on the
discussion module item
- add a due date to the discussion and return to the module
page
- expect to see the due date on the discussion module item
Change-Id: If32c99af3aa5c49137a2e99593b090d30360dd8c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/355009
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Sarah Gerard <sarah.gerard@instructure.com>