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

core_course_check_updates is not returning the ids of the questions updated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2
    • 3.2
    • Web Services
    • MOODLE_32_STABLE
    • MOODLE_32_STABLE
    • MDL-57054-master
    • Hide
      1. Create or use an existing quiz with some questions
      2. Update/modify one of the quiz questions (title, description)
      3. As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings
      4. Create a Token in the mobile app service for one teacher in the quiz course:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      5. Next, you can do a CURL REST call simulating a WS client with the user.
        • You need to replace the wstoken, courseid, the since parameter (use one from an hour ago), the tocheck[0][id] with the quiz cmdi and the URL of your moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'courseid=16&tocheck[0][contextlevel]=module&tocheck[0][id]=353&tocheck[0][since]=1479575320&wsfunction=core_course_check_updates&wstoken=a70d553bbaf6d9b260a9e5c701b3c46e' | python -m "json.tool"

      6. Check that you receive updates for the module: "name: questions" and in "itemids" the id of the updated question.
      Show
      Create or use an existing quiz with some questions Update/modify one of the quiz questions (title, description) As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings Create a Token in the mobile app service for one teacher in the quiz course: Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the user. You need to replace the wstoken, courseid, the since parameter (use one from an hour ago), the tocheck [0] [id] with the quiz cmdi and the URL of your moodle instance curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'courseid=16&tocheck [0] [contextlevel] =module&tocheck [0] [id] =353&tocheck [0] [since] =1479575320&wsfunction=core_course_check_updates&wstoken=a70d553bbaf6d9b260a9e5c701b3c46e' | python -m "json.tool" Check that you receive updates for the module: "name: questions" and in "itemids" the id of the updated question.

      It seems that there is a bug, instead retrieving the question ids a count_record function is called.

            jleyva Juan Leyva
            jleyva Juan Leyva
            Dani Palou Dani Palou
            Andrew Lyons Andrew Lyons
            Simey Lameze Simey Lameze
            Votes:
            0 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.