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

Dashboard events should indicate which page was reset ($private; MY_PAGE_*)

    XMLWordPrintable

    Details

      Description

      The dashboard events don't indicate which of the two My pages have been reset. This makes it difficult to provide any meaningful functionality when using them.

      Our requirement is to provide custom blocks to users based on their enrolled cohorts, effectively co-branding users' default dashboards. In order to ensure these changes are applied post-reset, we need to re-insert our custom records into the my_pages and block_instances tables inside an event observer. We therefore need to know which My page we're performing a reset operation for.

      The affected events are as follows:

      • \core\event\dashboard_reset
      • \core\event\dashboards_reset

      Patch to follow shortly. I am happy to backport these changes to previous Moodle versions if they would be accepted there.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lukecarrier Luke Carrier
              Reporter:
              lukecarrier Luke Carrier
              Peer reviewer:
              Jun Pataleta
              Integrator:
              Dan Poltawski
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Nov/16