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

New Web Service mod_feedback_get_non_respondents

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create or use an existing feedback with at least two questions in one unique page. It is recommend to use numeric, textfield or textarea questions.
      2. Add several students to the course.
      3. As one of the students in the course, complete the feedback.
      4. As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings
      5. Create a Token for one user with the teacher role in the course.
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      6. Next, you can do a CURL REST call simulating a WS client with the student user .
        • You need to replace the wstoken, feedbackid (the feedback instance value) and the URL of your moodle instance.

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'feedbackid=16&wsfunction=mod_feedback_get_non_respondents&wstoken=a70d553bbaf6d9b260a9e5c701b3c46e&moodlewssettingfilter=true' | python -m "json.tool"

      7. Confirm that
        • You receive a list containing the ids of the users who didn't complete the feedback.
      8. You can optionally test the pagination and sorting, via the parameters: page, perpage, and sort (allowed values are firstname, lastname or lastaccess)
      Show
      Create or use an existing feedback with at least two questions in one unique page. It is recommend to use numeric, textfield or textarea questions. Add several students to the course. As one of the students in the course, complete the feedback. As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings Create a Token for one user with the teacher role in the course. Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the student user . You need to replace the wstoken, feedbackid (the feedback instance value) and the URL of your moodle instance. curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'feedbackid=16&wsfunction=mod_feedback_get_non_respondents&wstoken=a70d553bbaf6d9b260a9e5c701b3c46e&moodlewssettingfilter=true' | python -m "json.tool" Confirm that You receive a list containing the ids of the users who didn't complete the feedback. You can optionally test the pagination and sorting, via the parameters: page, perpage, and sort (allowed values are firstname, lastname or lastaccess)
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57822-master

      Description

      Return a list of the people who actually didn’t respond

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jleyva Juan Leyva
                Reporter:
                jleyva Juan Leyva
                Peer reviewer:
                Pau Ferrer
                Integrator:
                David Monllaó
                Tester:
                Andrew Nicols
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Juan Leyva, Jake Dallimore, Jun Pataleta
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/May/17