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

New WS mod_workshop_evaluate_submission

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.2
    • 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 student).
      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
      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, and one of the students submission id

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'submissionid=7&wsfunction=mod_workshop_evaluate_submission&wstoken=a70d553bbaf6d9b260a9e5c701b3c46e&moodlewssettingfilter=true&feedbacktext=thetext&feedbackformat=1&gradeover=75&published=1' | python -m "json.tool"

      12. Check that the result of the curl request includes a status field set to true
      13. As teacher go to the web interface and check that in the Workshop grades report of the submission passed as parameter to the WS, in the column "Grade for submission" there are two grades. The first one is the auto calculated and the second grade in green is the one updated by the WS (75).
      14. If you want to check that there aren'r regressions, you can access via the report to the student submission (column submission, clcking in the submission name) and from there evaluate the submission via the "Feedback for the author" form, you can change the feedback or the override grade and check that is correctly updated.
      15. If you want to try to send invalid data, you can send an invalid gradeover (that should be highter that the maximum submission grade set in the workshop settings)
      16. You can use the latest curl call changing gradeover to 99 for example, in that case you will receive warnings and the status set to false.
      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 student). 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 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, and one of the students submission id curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'submissionid=7&wsfunction=mod_workshop_evaluate_submission&wstoken=a70d553bbaf6d9b260a9e5c701b3c46e&moodlewssettingfilter=true&feedbacktext=thetext&feedbackformat=1&gradeover=75&published=1' | python -m "json.tool" Check that the result of the curl request includes a status field set to true As teacher go to the web interface and check that in the Workshop grades report of the submission passed as parameter to the WS, in the column "Grade for submission" there are two grades. The first one is the auto calculated and the second grade in green is the one updated by the WS (75). If you want to check that there aren'r regressions, you can access via the report to the student submission (column submission, clcking in the submission name) and from there evaluate the submission via the "Feedback for the author" form, you can change the feedback or the override grade and check that is correctly updated. If you want to try to send invalid data, you can send an invalid gradeover (that should be highter that the maximum submission grade set in the workshop settings) You can use the latest curl call changing gradeover to 99 for example, in that case you will receive warnings and the status set to false.
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-60144-master

      Description

      Used by teachers to evaluate students submissions, provide feedback or override the submission grade

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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