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

New Web Service core_message_get_user_notification_preferences

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.2
    • Component/s: Messages
    • Labels:
    • Testing Instructions:
      Hide
      1. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      2. Create a Token for one user:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      3. With this user configure your notification preferences (only notifications, not message)
      4. You can optionaly as admin force some message settings via /message/defaultoutputs.php
      5. Next, you can do a CURL REST call simulating a WS client with the user.
        • 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 'userid=0&wsfunction=core_message_get_user_notification_preferences&wstoken=ffbe3a3002f235bf9d01fd9369e10b66' | python -m "json.tool"

      6. Check that you see only the processors enabled
      7. For each component and notification, check that the configuration for the processor is correct (online and offline)
      8. If you forced some notification settings, check that the locked field is correctly returned as true
      Show
      As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for one user: Click on Site administration ► Plugins ► Web services ► Manage tokens With this user configure your notification preferences (only notifications, not message) You can optionaly as admin force some message settings via /message/defaultoutputs.php Next, you can do a CURL REST call simulating a WS client with the user. 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 'userid=0&wsfunction=core_message_get_user_notification_preferences&wstoken=ffbe3a3002f235bf9d01fd9369e10b66' | python -m "json.tool" Check that you see only the processors enabled For each component and notification, check that the configuration for the processor is correct (online and offline) If you forced some notification settings, check that the locked field is correctly returned as true
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-55393-master

      Description

      To be developed once MDL-54698 is finished

      This is the Web Service for retrieving the current user messaging preferences

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

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