canvas-lms/lib/cc/qti
Matthew Berns 4eb43afc2f remove unpublished items; apply rules for locked modules
closes CNVS-24830
closes CNVS-24776

- Adds `module_locked` field to export data for assignments, discussion
  topics, quizzes & wiki pages.
- epub converters updated to exclude module locked content.
- wiki page epub converter updated to exclude unpublished pages (woops).
- module epub converter updated to exclude unpublished modules.

test plan:
- have a course with some unpublished items and locked modules
- for full testing, make 5 locked modules, 2 time locked, 2 prerequisite
  locked, and one locked by both
- have one of the time locked modules have an unlock date that has
  already passed, have the student fulfill the requirement for one of the
  prerequisite locked modules
- export one ePub as a student and one as a teacher
- unpublished items should not appear in either ePub
- modules should all appear as unlocked for the teacher
- modules should be locked as appropriate for the student
- items that should be in the syllabus but in a locked module should still
  be in the syllabus, but not linked to
- items that are in locked modules should have their titles listed in the
  modules content, but the items themselves should not be in the ePub
  and the titles should be plain text instead of hyperlinks
- update settings so that content sorting is enabled.
- export one ePub as a student.
- content part of a locked module should not be present in the ePub.

- have a course with unpublished modules.
- export course with module-sorting enabled (the default).
- observe that unpublished modules are not present.

test plan for changes to content exporter:
- using the same course as above, export the course as a course
  cartridge.
- start a new course and import the above course into it.
- observe that all modules are present as expected.

Change-Id: I99394ae4bca251875c7a0cb614c3b1530e1c0f9b
Reviewed-on: https://gerrit.instructure.com/66600
Tested-by: Jenkins
QA-Review: Michael Hargiss <mhargiss@instructure.com>
Reviewed-by: Matt Berns <mberns@instructure.com>
Product-Review: Cosme Salazar <cosme@instructure.com>
Reviewed-by: John Corrigan <jcorrigan@instructure.com>
2015-11-18 14:51:51 +00:00
..
qti.rb fix typo in module definition 2013-09-23 15:57:26 +00:00
qti_generator.rb remove unpublished items; apply rules for locked modules 2015-11-18 14:51:51 +00:00
qti_items.rb use BigDecimal to compute numeric error margin 2015-04-01 18:51:25 +00:00
qti_manifest.rb assignment freezing improvements and fixes 2012-05-24 15:37:34 -06:00