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

Review and update existing web services to return the new fields and exported information from activities

    XMLWordPrintable

Details

    • MOODLE_310_STABLE
    • MOODLE_311_STABLE
    • MDL-71235-311
    • MDL-71235-master
    • Hide

      phpunit tests should pass

      Set up moodle

      • Create a course with completion
      • Create three choice activities:
        • Choice 1 - No completion
        • Choice 2 - Automatic completion, all completion conditions checked.
        • Choice 3 - Manual completion.
      • https://docs.moodle.org/310/en/Mobile_web_services Follow this doc enable moodle mobile service

      Set up Postman

      Please follow this video to setup postman: postman.mp4

      •  You need the following files:
      • Run postman, open the menu: File > Import
      • Import both the Moodle Web Services.postman_collection.json and local.postman_environment.json
      • On the upper-right part of the window, click the gear icon (Manage environments).
      • Click "moodle local" and update the values for the host and user token.
      • Press Update to save the changes.
      • On the select box to the left of the Manage environments button, select "moodle local" environment.
      • The token value in the environment can be generated from login() web service by providing username and password
      • test with all web services in the collection, all course object should have "showactivitydates" "showcompletionconditions" and "dates" attributes
      • when completion is enabled for course, all module objects should have completiondata, its structure should be like:

       

       

       

       

      Show
      phpunit tests should pass Set up moodle Create a course with completion Create three choice activities: Choice 1 - No completion Choice 2 - Automatic completion, all completion conditions checked. Choice 3 - Manual completion. https://docs.moodle.org/310/en/Mobile_web_services Follow this doc enable moodle mobile service Set up Postman Please follow this video to setup postman: postman.mp4  You need the following files: Download postman: https://www.postman.com/downloads/ Web service collection Moodle Web Services.postman_collection.json Environment file  moodle local.postman_environment.json Run postman, open the menu: File > Import Import both the Moodle Web Services.postman_collection.json and local.postman_environment.json On the upper-right part of the window, click the gear icon (Manage environments). Click "moodle local" and update the values for the host and user token. Press Update to save the changes. On the select box to the left of the Manage environments button, select "moodle local" environment. The token value in the environment can be generated from login() web service by providing username and password test with all web services in the collection, all course object should have "showactivitydates" "showcompletionconditions" and "dates" attributes when completion is enabled for course, all module objects should have completiondata, its structure should be like:        

    Description

      For the new MUA Project: Improve Student Activity Completion, new fields are being created in the database and new information is being returned.

      Existing Web Services have to be reviewed to ensure that this new information is returned for external clients such as the Moodle app to consume.

      dpalou is listing everything that is missing so far, we will provide a detailed document soon.

      Attachments

        Issue Links

          Activity

            People

              dongsheng Dongsheng Cai
              jleyva Juan Leyva
              Huong Nguyen Huong Nguyen
              Adrian Greeve Adrian Greeve
              Gladys Basiana Gladys Basiana
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/May/21

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 4 hours, 45 minutes
                  3d 4h 45m