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

Return submission status in existing mod_assign_list_participants and mod_assign_get_participant WS

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0
    • 4.0
    • Assignment
    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-72604-master
    • Hide
      1. As an admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings
      2. Create a new course
      3. Create a new assignment activity with its default configuration
      4. Enrol one user as student in the course
      5. Log-in into Moodle with the student account, access the assignment activity and do a submission
      6. Now, as admin again, create a Token in the mobile app service for the student user
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      7. Open the console and execute this new curl request, replacing WSTOKEN with the token you just created and the SITE_URL with yours. The ASSING_ID value is the id of the assignment created in step 3 in the database (mod_assign table)

        curl 'SITE_URL/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=mod_assign_list_participants' --data 'assignid=ASSIGN_ID&groupid=0&filter=&moodlewssettingfilter=true&moodlewssettingfileurl=true&moodlewssettinglang=en&wsfunction=mod_assign_list_participants&wstoken=WSTOKEN' --compressed

      8. Confirm that:
        • In the curl request response you see listed the fullname of student that did the submission, including also a submissionstatus field that this not empty (should be submitted)
      Show
      As an admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings Create a new course Create a new assignment activity with its default configuration Enrol one user as student in the course Log-in into Moodle with the student account, access the assignment activity and do a submission Now, as admin again, create a Token in the mobile app service for the student user Click on Site administration ► Plugins ► Web services ► Manage tokens Open the console and execute this new curl request, replacing WSTOKEN with the token you just created and the SITE_URL with yours. The ASSING_ID value is the id of the assignment created in step 3 in the database (mod_assign table) curl 'SITE_URL/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=mod_assign_list_participants' --data 'assignid=ASSIGN_ID&groupid=0&filter=&moodlewssettingfilter=true&moodlewssettingfileurl=true&moodlewssettinglang=en&wsfunction=mod_assign_list_participants&wstoken=WSTOKEN' --compressed Confirm that: In the curl request response you see listed the fullname of student that did the submission, including also a submissionstatus field that this not empty (should be submitted)

    Description

      We need this new field to solve the following issue reported in the app: MOBILE-3787

      Attachments

        Issue Links

          Activity

            People

              jleyva Juan Leyva
              jleyva Juan Leyva
              Pau Ferrer Pau Ferrer
              Andrew Lyons Andrew Lyons
              Angelia Dela Cruz Angelia Dela Cruz
              Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Apr/22

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 55 minutes
                  55m