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

New Web Service mod_workshop_get_grades_report

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 3.4
    • Component/s: Workshop
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a course with a workshop with Grading strategy set to comments
      2. Enrol a couple users as student (student2 and student1) and one user as teacher
      3. Edit the workshop assessment form creating only two evaluable comments
      4. As teacher, move the workshop to the submission phase (doing all the required configuration steps indicated by the activity)
      5. As the two students, do a submission (total of 2 submissions, one per sstudent).
      6. As teacher, move the workshop to the assessment phase, allocating the assessment of the submissions: student2 will assess student1 and vice versa.
      7. As student2 do the assessment of the student1 and vice versa
      8. Now, as teacher, switch to the Grading evaluation phase for assigning the final grades and then switch to the Closed phase
      9. Enable "Mobile services": Site administration ► Mobile app ► Mobile settings
      10. Create a Token in the mobile app service for the teacher:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      11. Next, you can do a CURL REST call simulating a WS client.
        • You need to replace the wstoken with the teacher one, workshopid with the id of the workshop

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

      12. Check that you receive the grades report information and it matches with the "workshop grades report" displayed in Moodle web for the teacher
      13. Append the following parameters to the request: &page=0&perpage=1 and check that you receive just one "grades" entry but the totalcount says 2
      Show
      Create a course with a workshop with Grading strategy set to comments Enrol a couple users as student (student2 and student1) and one user as teacher Edit the workshop assessment form creating only two evaluable comments As teacher, move the workshop to the submission phase (doing all the required configuration steps indicated by the activity) As the two students, do a submission (total of 2 submissions, one per sstudent). As teacher, move the workshop to the assessment phase, allocating the assessment of the submissions: student2 will assess student1 and vice versa. As student2 do the assessment of the student1 and vice versa Now, as teacher, switch to the Grading evaluation phase for assigning the final grades and then switch to the Closed phase Enable "Mobile services": Site administration ► Mobile app ► Mobile settings Create a Token in the mobile app service for the teacher: Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client. You need to replace the wstoken with the teacher one, workshopid with the id of the workshop curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'workshopid=10&wsfunction=mod_workshop_get_grades_report&wstoken=a70d553bbaf6d9b260a9e5c701b3c46e&moodlewssettingfilter=true' | python -m "json.tool" Check that you receive the grades report information and it matches with the "workshop grades report" displayed in Moodle web for the teacher Append the following parameters to the request: &page=0&perpage=1 and check that you receive just one "grades" entry but the totalcount says 2
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-59253-master

      Description

      To retrieve the assessment grades report

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/17