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

Return course grace period settings in tool_mobile_get_config

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.10.8, 3.11.4
    • 3.10.7, 3.11.3
    • Other
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MDL-72949-master
    • Hide
      1. As admin, in Site administration > Appearance > Courses set "Grace period for future courses" to 60, "Grace period for past courses" to 60, and save changes.
      2. As admin, enable "Mobile services": Site administration ► Advanced features ► Enable web services for mobile devices
      3. Create a Token for one normal user:
        • Click on Site administration ► Server ► Web services ► Manage tokens
      4. Next, you can do a CURL REST call simulating a WS client with the user.
        • You need to replace the URL of your moodle instance and the token:

          curl 'http://localhost/m/integration_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=REPLACEBY_THE_WSTOKEN&moodlewssettingfilter=true' | python -m "json.tool"

      5. Check that the curl response contains the coursegraceperiodafter and coursegraceperiodbefore settings and their values match the ones defined in the first step (60).
      Show
      As admin, in Site administration > Appearance > Courses set "Grace period for future courses" to 60, "Grace period for past courses" to 60, and save changes. As admin, enable "Mobile services": Site administration ► Advanced features ► Enable web services for mobile devices Create a Token for one normal user: Click on Site administration ► Server ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the user. You need to replace the URL of your moodle instance and the token: curl 'http://localhost/m/integration_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=REPLACEBY_THE_WSTOKEN&moodlewssettingfilter=true' | python -m "json.tool" Check that the curl response contains the coursegraceperiodafter and coursegraceperiodbefore settings and their values match the ones defined in the first step (60).

      In order to support the use case described by MOBILE-3900, we need to return the coursegraceperiodbefore and coursegraceperiodafter settings via tool_mobile_get_config

            sna67 Sang Nguyen Anh
            sna67 Sang Nguyen Anh
            Mark Johnson Mark Johnson
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Gladys Basiana Gladys Basiana
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.