canvas-lms/lib/migration_helpers/student_visibilities
Sarah Gerard 04ff10a7b9 Add visibilities for learning objects
this slightly adjusts the current ASV/QSV visibilities
to also create visiblities for wiki pages and discussion
topics. Attachments are not yet included. The only changes
that needed to be made for these objects is account for the
objects's assignments. Otherwise these views are the same as
the ASV/QSV views

closes LF-1039
flag=differentiated_modules

test plan:
- Run the appropriate visibilities for each different
  object, testing out various types of overrides and
  ensure that the correct students appear in the list
- DiscussionTopic.find(id).discussion_topic_student_visibilities
- WikiPage.find(id).wiki_page_student_visibilities
- Test adding these objects to a module with student and
  section overrides, ensure the correct students appear.
- Create a graded discussion and add it to a module with
  a section or student assigned to the module
- Act as a student that is assigned to that module, and
  go to the Assignment index page
- Expect the graded discussion to appear
- Act as a student not assigned to that module, and
  go to the assignment index page
- Expect the graded discussion not to appear

Change-Id: I1fa77765cbcc207661e883593dbe74fa8b0ac8f4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/344017
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Migration-Review: Isaac Moore <isaac.moore@instructure.com>
Product-Review: Sarah Gerard <sarah.gerard@instructure.com>
2024-04-03 18:04:35 +00:00
..
student_visibilities_v4.rb Account for unassign_item in ASV/QSV views 2023-11-20 15:16:31 +00:00
student_visibilities_v5.rb Create module_student_visibilities view 2024-01-16 20:38:56 +00:00
student_visibilities_v6.rb Look at assignment's quiz's ContentTags in ASV 2024-02-27 23:25:43 +00:00
student_visibilities_v7.rb Add visibilities for learning objects 2024-04-03 18:04:35 +00:00