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

Add gradingstatus information to all submissions on mod_assign_get_submissions WS

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a course with a student.
      2. Create an assignment.
      3. As the student, submit the assignment.
      4. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      5. Create a Token for the student user.
        • 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, assignid (id of the created assign), userid (student id) and the URL of your moodle instance.

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=mod_assign_get_submission_status&assignid=13&userid=6&wstoken=e0962985ad3573791917106a932952f' --compressed

      7. Confirm that all submissions have an gradingstatus field filled.
      Show
      Create a course with a student. Create an assignment. As the student, submit the assignment. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for the student user. 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, assignid (id of the created assign), userid (student id) and the URL of your moodle instance. curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=mod_assign_get_submission_status&assignid=13&userid=6&wstoken=e0962985ad3573791917106a932952f' --compressed Confirm that all submissions have an gradingstatus field filled.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull Master Branch:
      MDL-56534-master

      Description

      Grading status is missing on mod_assign_get_submissions WS.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pferre22 Pau Ferrer
              Reporter:
              pferre22 Pau Ferrer
              Peer reviewer:
              Juan Leyva
              Integrator:
              Dan Poltawski
              Tester:
              Simey Lameze
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                5/Dec/16