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

xAPI in H5P activity requires contextid, but the Moodle app doesn't know it

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.9
    • Fix Version/s: 3.9
    • Component/s: H5P
    • Sprint:
      Moodle 3.9 - Moppies Kanban

      Description

      xAPI uses the contextid of the activity to be able to determine what context sent the statements. However, the Moodle app doesn't know the contextid of the activity so we cannot support tracking in offline in the app.

      I discussed this with Juan and we thought 3 different solutions:

      1- Return the contextid of modules in the WebService core_course_get_contents. That way the app can have the contextid of any activity.

      2- Return the contextid of the activity in the WebService mod_h5pactivity_get_h5pactivities_by_courses. It'll have less impact than the previous solution since it implies modifying a WS that has been added in this release.

      3- Modify the xAPI URL so it doesn't ask for the contextid. An alternative would be to use the contextlevel and the instanceid like it's done in other WebServices like core_filters_get_available_in_context.

      4- Modify the h5p xAPI handler to accept both contextid and something like "instance/XXX" value. Any activity related information sended via xAPI is encoded in IRI format so we are not restricted to integers. This way the APP can use a different, but yet standard, xAPI activity id.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tusefomal Ferran Recio
              Reporter:
              dpalou Dani Palou
              Peer reviewer:
              Carlos Escobedo
              Integrator:
              Andrew Nicols
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Jun/20

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 17 minutes
                  5h 17m