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

Context freezing not logged

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      1. Navigate to Site administration => Development => Experimental settings
      2. Enable "Context freezing" and save changes
      3. Create a category (Categoty 1)
      4. Create a course (Course 1)
      5. Add an activity to Course 1 as Activity 1

      Tests

      1. Login as admin
      2. Navigate to Category 1
      3. Freeze and then Unfreeze the category
      4. Navigate to "Site administration > Reports > Logs"
      5. Get the logs and verify that you can see an entry for your freezing and unfreezing of the category.
      6. Verify that clicking on the Event name takes you to Category 1
      7. Navigate to Course 1
      8. Freeze and then Unfreeze the course
      9. In the course action menu select More... then navigate to "Reports > Logs"
      10. Get the logs and verify that you can see an entry for your freezing and unfreezing of the course.
      11. Verify that clicking on the Event name takes you to Course 1
      12. Navigate to Activity 1
      13. Freeze and then Unfreeze the activity
      14. From the activity action menu select Logs
      15. Get the logs and verify that you can see an entry for your freezing and unfreezing of the activity.
      16. Verify that clicking on the Event name takes you to Activity 1
      Show
      Setup Navigate to Site administration => Development => Experimental settings Enable "Context freezing" and save changes Create a category ( Categoty 1 ) Create a course ( Course 1 ) Add an activity to Course 1 as Activity 1 Tests Login as admin Navigate to Category 1 Freeze and then Unfreeze the category Navigate to "Site administration > Reports > Logs" Get the logs and verify that you can see an entry for your freezing and unfreezing of the category. Verify that clicking on the Event name takes you to Category 1 Navigate to Course 1 Freeze and then Unfreeze the course In the course action menu select More... then navigate to "Reports > Logs" Get the logs and verify that you can see an entry for your freezing and unfreezing of the course. Verify that clicking on the Event name takes you to Course 1 Navigate to Activity 1 Freeze and then Unfreeze the activity From the activity action menu select Logs Get the logs and verify that you can see an entry for your freezing and unfreezing of the activity. Verify that clicking on the Event name takes you to Activity 1
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull from Repository:
    • Pull 3.6 Branch:
      MDL-65443-m36
    • Pull 3.7 Branch:
      MDL-65443-m37
    • Pull Master Branch:

      Description

      Changing the freeze state should be logged so we can see who/when the context state changed.

      I went looking for an event because we want to implement other actions when a course context is freezed - like converting some database based enrolments to manual enrolments.

        Attachments

        1. unlocked-event.png
          unlocked-event.png
          12 kB
        2. MDL-65443_02.png
          MDL-65443_02.png
          118 kB
        3. MDL-65443_01.png
          MDL-65443_01.png
          200 kB
        4. locked-event.png
          locked-event.png
          12 kB

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Sep/19

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 1 hour, 15 minutes
                1d 1h 15m