canvas-lms/ui/shared/due-dates
Sarah Gerard bf2e54176f Correctly set only_visible_to_overrides
only_visible_to_overrides should be set to false
IF - there is an everyone card that is NOT because of
a course override, or if there are only module overrides.
Otherwise only_visible_to_override should be set to
true.

closes LX-1670
flag=differentiated_modules

test plan:
- this should work anywhere the tray works, test
  in assignment edit pages and discussion edit
  pages as well
- have a module with assignment overrides and a learning
  object in the module
- I suggest having a rails console open to check the
  value of only_visible_to_overrides as you test.
  Aka, run learning_object.only_visible_to_overrides
- if you're testing a graded discussion, run
  discussion.assignment.only_visible_to_overrides
- open the assign to tray for the object, and add an override
- expect only_visible_to_overrides to be true
- remove the override, leaving only the module overrides
- expect only_visible_to_overrides to be false
- if you add everyone back to the assignment, because you are
  adding everyone through a course override,
  only_visible_to_overrides should be true.
- expect behavior without any module overrides to be the same
  (aka, if there is an everyone card then only_visible_to_overrides
  is false)

Change-Id: I6fd71ec27227df72c7d9c8227660b6242057a411
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/348243
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>
Product-Review: Sarah Gerard <sarah.gerard@instructure.com>
2024-05-28 19:32:13 +00:00
..
backbone Correctly set only_visible_to_overrides 2024-05-28 19:32:13 +00:00
jquery Fill some empty blocks with no-op comment 2022-10-17 20:52:45 +00:00
jst rename some things 2021-04-06 01:12:49 +00:00
react more datetime migration to package 2024-05-23 21:48:42 +00:00
util Add student groups to the item assign to tray 2024-05-16 21:53:54 +00:00
AssignmentOverrideHelper.js more datetime migration to package 2024-05-23 21:48:42 +00:00
package.json move .js files with JSX to .jsx extension 2023-07-24 14:59:37 +00:00