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

Backport of MDL-44627: show/hide module button does not trigger module updated event

XMLWordPrintable

    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • Hide

      To check if the course modules is triggering events follow these steps:

      • Add a new course
      • Add one or more activities (assignment, forum, quiz..)

      TEST VISIBILITY CHANGE EVENT

      • Click Edit Menu and Hide the assignment using the Eye Icon
      • Check the Reports > Logs to see if the event log entry was created
      • Go back on Course Page, Click Edit Menu and Show the assignment using the Eye Icon
      • Check the Reports > Logs to see if the event log was created

      TEST RENAME EVENT

      • In the Course page, change the assignment name using the Pencil icon
      • Check the Reports > Logs to see if the event log was created

      TEST GROUP MODE

      • In course page, change the assignment group mode using the group icon
      • Check the Reports > Logs to see if the event log was created

      TEST EDIT SETTINGS

      • In the course page, click on Edit menu and Edit Settings option.
      • Change the description and click Save and return to course
      • Check the Reports > Logs to see if the event log was created

      TEST HIDE/SHOW SECTION GENERATE EVENTS FOR EACH MODULE

      • In the course page, click on eye icon on upper right corner of the section.
      • Check if the visibility of all modules of this section changed.
      • Go to Reports > Logs and check if the events was created for each module
        (If you have 2 modules, must have 2 events created)

      TO TEST NON-AJAX CHANGES

      • Disable JavaScript in your browser
      • In the course page, click on Eye icon(Hide/Show).
      • Check the Reports > Logs to see if the event log was created
      • Change the Group mode using the person icon (Separate Groups/Visible Groups).
      • Check the Reports > Logs to see if the event log was created
      • Change the section visibility
      • Go to Reports > Logs and check if the events was created for each module in the section

      Finally, run PHPUnit tests and check to see if doesn't fail:
      vendor/bin/phpunit core_course_courselib_testcase course/tests/courselib_test.php

      Show
      To check if the course modules is triggering events follow these steps: Add a new course Add one or more activities (assignment, forum, quiz..) TEST VISIBILITY CHANGE EVENT Click Edit Menu and Hide the assignment using the Eye Icon Check the Reports > Logs to see if the event log entry was created Go back on Course Page, Click Edit Menu and Show the assignment using the Eye Icon Check the Reports > Logs to see if the event log was created TEST RENAME EVENT In the Course page, change the assignment name using the Pencil icon Check the Reports > Logs to see if the event log was created TEST GROUP MODE In course page, change the assignment group mode using the group icon Check the Reports > Logs to see if the event log was created TEST EDIT SETTINGS In the course page, click on Edit menu and Edit Settings option. Change the description and click Save and return to course Check the Reports > Logs to see if the event log was created TEST HIDE/SHOW SECTION GENERATE EVENTS FOR EACH MODULE In the course page, click on eye icon on upper right corner of the section. Check if the visibility of all modules of this section changed. Go to Reports > Logs and check if the events was created for each module (If you have 2 modules, must have 2 events created) TO TEST NON-AJAX CHANGES Disable JavaScript in your browser In the course page, click on Eye icon(Hide/Show). Check the Reports > Logs to see if the event log was created Change the Group mode using the person icon (Separate Groups/Visible Groups). Check the Reports > Logs to see if the event log was created Change the section visibility Go to Reports > Logs and check if the events was created for each module in the section Finally, run PHPUnit tests and check to see if doesn't fail: vendor/bin/phpunit core_course_courselib_testcase course/tests/courselib_test.php

      See MDL-44627, it was originally reported for 2.6 and it might be reasonable to backport it to 2.6 as well

            lameze Simey Lameze
            marina Marina Glancy
            Ankit Agarwal Ankit Agarwal
            Damyon Wiese Damyon Wiese
            Dan Poltawski Dan Poltawski
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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