Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-49642

Give time/date extensions to users and groups in lesson

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.9
    • 2.8.5
    • Lesson
    • MOODLE_28_STABLE
    • MOODLE_29_STABLE
    • Hide

      I don't think it is necessary to test this on all databases that Moodle support because all queries are adapted from the ones used by quiz overrides and also there are many behat tests that should help to get some confidence this is working as expected.

      Basic user overrides functionalities

      You need a course with users, groups and users in groups

      1. Create a lesson and note values of settings that can be overridden. This includes:
      • all the settings in the "Availability" section (Available from, Deadline, Time limit, Password)
      • In the "Flow control" section "Provide option to try a question again" and "Maximum number of attempts"
      • In the "Grade" section "Re-takes allowed"
      1. Create some user overrides, overriding some of the lesson settings and verify that they work as expected (that is only this user is affected, and lesson settings are correctly overridden)
      2. edit some of these overrides and verify the new values are taken into account
      3. verify duplicating a user override is working and if you can edit the duplicate without change to the original
      4. verify that if you create a new override for an user that already have one, they are merged when you save the second override
      5. verify that when you are on the edit override screen the "Save and enter another override" permit you to create a new override based on the previous one and both are correctly saved
      6. verify that if you create an override for a student and then unenrol that student from the course, the override is displayed greyed and a message "* Student does not have the correct group or role to view/attempt the lesson" is displayed below the overrides list.

      Basic group overrides functionalities

      1. create some group overrides for the lesson
      2. verify only users in these groups are affected
      3. verify that if an user has both a group and an user override, the user one has precedence.
      4. verify that if an user is member of 2 different groups and there are group overrides for each of these groups, the most relaxed settings are applied.
      5. verify that if you delete a group for which there is an override created, it is correctly deleted (the same don't apply to user override, see last paragraph on user overrides)

      Logging system

      Verify that all actions have been correctly logged in the new logging system.

      Backup and restore

      Backup the course and restore it as a new course including user info, verify that all overrides are correctly restored and user, groups mappings are correct.
      Do the same without including user info when restoring, verify that group overrides are correctly restored and mapped correctly, and verify (also checking the DB) that user overrides have not been restored.
      Verify that availability and deadline dates are correctly shifted in all overrides.
      Restore a Moodle 1.9 and Moodle 2.7 backup and verify no error or warning is displayed

      Events

      Verify that an user with an override see correct events in the calendar, and that if this override is edited, calendar events are correctly updated
      Verify that if an user or group override is deleted, corresponding calendar events are deleted

      Show
      I don't think it is necessary to test this on all databases that Moodle support because all queries are adapted from the ones used by quiz overrides and also there are many behat tests that should help to get some confidence this is working as expected. Basic user overrides functionalities You need a course with users, groups and users in groups Create a lesson and note values of settings that can be overridden. This includes: all the settings in the "Availability" section (Available from, Deadline, Time limit, Password) In the "Flow control" section "Provide option to try a question again" and "Maximum number of attempts" In the "Grade" section "Re-takes allowed" Create some user overrides, overriding some of the lesson settings and verify that they work as expected (that is only this user is affected, and lesson settings are correctly overridden) edit some of these overrides and verify the new values are taken into account verify duplicating a user override is working and if you can edit the duplicate without change to the original verify that if you create a new override for an user that already have one, they are merged when you save the second override verify that when you are on the edit override screen the "Save and enter another override" permit you to create a new override based on the previous one and both are correctly saved verify that if you create an override for a student and then unenrol that student from the course, the override is displayed greyed and a message "* Student does not have the correct group or role to view/attempt the lesson" is displayed below the overrides list. Basic group overrides functionalities create some group overrides for the lesson verify only users in these groups are affected verify that if an user has both a group and an user override, the user one has precedence. verify that if an user is member of 2 different groups and there are group overrides for each of these groups, the most relaxed settings are applied. verify that if you delete a group for which there is an override created, it is correctly deleted (the same don't apply to user override, see last paragraph on user overrides) Logging system Verify that all actions have been correctly logged in the new logging system. Backup and restore Backup the course and restore it as a new course including user info, verify that all overrides are correctly restored and user, groups mappings are correct. Do the same without including user info when restoring, verify that group overrides are correctly restored and mapped correctly, and verify (also checking the DB) that user overrides have not been restored. Verify that availability and deadline dates are correctly shifted in all overrides. Restore a Moodle 1.9 and Moodle 2.7 backup and verify no error or warning is displayed Events Verify that an user with an override see correct events in the calendar, and that if this override is edited, calendar events are correctly updated Verify that if an user or group override is deleted, corresponding calendar events are deleted

      This is a specific implementation for the lesson activity of the proposal from MDL-7315.

        1. lesson_course_reset.feature
          4 kB
          Stephen Bourget
        2. lesson_group_override.feature
          9 kB
          Stephen Bourget
        3. lesson_user_override.feature
          9 kB
          Stephen Bourget
        4. Screen Shot 2015-03-25 at 7.50.08 PM.png
          856 kB
          Stephen Bourget
        5. student-lessonadministration.png
          432 kB
          Stephen Bourget

            jmvedrine Jean-Michel Vedrine
            jmvedrine Jean-Michel Vedrine
            Stephen Bourget Stephen Bourget
            David Monllaó David Monllaó
            Mark Nelson Mark Nelson
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.