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

Return the calendar type in core_site_get_siteinfo WS (including the current user default calendar)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 3.4
    • Component/s: Other
    • Labels:
    • Testing Instructions:
      Hide
      1. Install and additional calendar type plugin https://moodle.org/plugins/browse.php?list=category&id=51
      2. In the site settings, search for calendartype and set as site calendar the recently installed plugin
      3. Enable "Mobile services": Plugins ► Web Services ► Mobile
      4. Create a Token for the user (student) your are going to test with:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
        • Click add, select user and service (Mobile Service)
      5. Next, you can do a CURL REST call simulating a WS client:
        • You need to replace the wstoken and the URL of your moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=core_webservice_get_site_info&wstoken=ffbe3a3002f235bf9d01fd9369e10b66' --compressed

      6. Confirm that in the response you receive the following fields: sitecalendartype, usercalendartype matching the site settings (site calendar type, and user calendar chosen)
      Show
      Install and additional calendar type plugin https://moodle.org/plugins/browse.php?list=category&id=51 In the site settings, search for calendartype and set as site calendar the recently installed plugin Enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for the user (student) your are going to test with: Click on Site administration ► Plugins ► Web services ► Manage tokens Click add, select user and service (Mobile Service) Next, you can do a CURL REST call simulating a WS client: You need to replace the wstoken and the URL of your moodle instance curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=core_webservice_get_site_info&wstoken=ffbe3a3002f235bf9d01fd9369e10b66' --compressed Confirm that in the response you receive the following fields: sitecalendartype, usercalendartype matching the site settings (site calendar type, and user calendar chosen)
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-59214-master

      Description

      Eventually we'd need to support different type of calendars in the app, we need this data to be returned in existing WS

        Attachments

          Activity

            People

            Assignee:
            jleyva Juan Leyva
            Reporter:
            jleyva Juan Leyva
            Peer reviewer:
            Simey Lameze
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Marina Glancy
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

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