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

New Web Service mod_feedback_get_analysis

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create or use an existing feedback.
      2. Use two different students account to complete the feedback.
      3. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      4. Create a Token for one teacher user in the course where the feedback is
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      5. Next, you can do a CURL REST call simulating a WS client with the teacher 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=12&wsfunction=mod_feedback_get_analysis&wstoken=12a2a65aeea2a177055e233f9e303218&moodlewssettingfilter=true' | python -m "json.tool"

      6. Confirm that
        • You receive the correct number of users who completed the feedback in the completedcount field, the itemscount field list the number of items in the feedback.
        • For each item, you have a data field where all the user responses are recorded
      Show
      Create or use an existing feedback. Use two different students account to complete the feedback. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for one teacher user in the course where the feedback is Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the teacher 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=12&wsfunction=mod_feedback_get_analysis&wstoken=12a2a65aeea2a177055e233f9e303218&moodlewssettingfilter=true' | python -m "json.tool" Confirm that You receive the correct number of users who completed the feedback in the completedcount field, the itemscount field list the number of items in the feedback. For each item, you have a data field where all the user responses are recorded
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57820-master

      Description

      Return the feedback responses analysis

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jleyva Juan Leyva
                Reporter:
                jleyva Juan Leyva
                Peer reviewer:
                Pau Ferrer
                Integrator:
                Eloy Lafuente (stronk7)
                Tester:
                Jun Pataleta
                Participants:
                Component watchers:
                Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón, Juan Leyva, Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

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