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

Created event for competency viewed

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
      None
    • Testing Instructions:
      Hide
      • Create framework with competencies
      • Go to the framework page and click on a competency in the tree
      • Go to Site administration->Reports->Logs and the log of viewing a competency should exist in the list
      • Go to a course and add some competencies
      • Go to Course administration -> Reports -> competency breakdown and click on competency you should see a popup
      • Go to Site administration->Reports->Logs and the log of viewing a competency should exist in the list

      Run the unittest:

      mdk phpunit -r -s tool_lp_testsuite
      

      Show
      Create framework with competencies Go to the framework page and click on a competency in the tree Go to Site administration->Reports->Logs and the log of viewing a competency should exist in the list Go to a course and add some competencies Go to Course administration -> Reports -> competency breakdown and click on competency you should see a popup Go to Site administration->Reports->Logs and the log of viewing a competency should exist in the list Run the unittest: mdk phpunit -r -s tool_lp_testsuite
    • Affected Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-52960_master
    • Story Points:
      2
    • Sprint:
      CBE Sprint 5

      Description

      This event needs to be triggered when a single competency is being viewed. Mainly when the core of the information is the competency itself (not a template competency, not a plan competency, not a user competency, ...), just the competency is being displayed we will trigger the event.

      I can think of two places where we would do so:

      • When viewing all the competencies in a framework and selecting a competency
      • When opening the competency dialogue

      The event will be compatible via Ajax and triggered, not via templates, but from the "Controllers" which are responsible for displaying the information (e.g. view.php, AMD module rendering the template). Note that Ajax refresh of a portion of a page should re-trigger the event, in other words if you were to edit the title of a competency "in-line", and the code would then refresh the whole competency region, that should not retrigger a "viewed" event.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                taboubii Issam Taboubi
                Reporter:
                fred Frédéric Massart
                Peer reviewer:
                Frédéric Massart
                Participants:
                Component watchers:
                Damyon Wiese, Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: