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

Convert recent activity block to use new Events API

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.1, 2.6.2, 2.7
    • Fix Version/s: 2.7
    • Component/s: Logging
    • Labels:
    • Testing Instructions:
      Hide

      Start test before upgrade:

      First copy code of the included behat test, run it and make sure it passes.

      1. Create course and enrol two students
      2. Add two activities
      3. Login as a student1 and view the course, log out.
      4. Login again as a teacher
      5. Edit one of activities (change name)
      6. Delete second one
      7. Create another activity

      Upgrade

      1. Log in as a student1
      2. View the course and make sure you can see the structural changes that have happened before upgrade but after previous view: one activity added, another edited, and another one deleted.
      3. Log in as a student2
      4. View the course and make sure you can see that there were two activities added (the deleted one will not be shown at all, the edit action will not be shown as well).
      5. Try creating, editing, deleting activities as a teacher and view the course as teacher and/or different users. This is pretty much covered by behat test anyway.
      1. Run cron, make sure that cron for block_recent_activity was executed
      Show
      Start test before upgrade: First copy code of the included behat test, run it and make sure it passes. Create course and enrol two students Add two activities Login as a student1 and view the course, log out. Login again as a teacher Edit one of activities (change name) Delete second one Create another activity Upgrade Log in as a student1 View the course and make sure you can see the structural changes that have happened before upgrade but after previous view: one activity added, another edited, and another one deleted. Log in as a student2 View the course and make sure you can see that there were two activities added (the deleted one will not be shown at all, the edit action will not be shown as well). Try creating, editing, deleting activities as a teacher and view the course as teacher and/or different users. This is pretty much covered by behat test anyway. Run cron, make sure that cron for block_recent_activity was executed
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Epic Link:
    • Pull Master Branch:
      wip-MDL-41285-master
    • Story Points:
      20
    • Sprint:
      BACKEND Sprint 11

      Attachments

        Issue Links

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/May/14