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

Add new "Disabled feature" within Mobile app settings for the new Reports option introduced in 4.0

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-74826-400
    • MDL-74826-master
    • Hide

      Test

      1. Go to Site administration ► Advanced feature and enable "Enable web services for mobile devices"
      2. Create a WS Token for one user on the site:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      3. Go to Site administration ►Mobile app ►Mobile features - Disabled features option
      4. Select the "Report builder" option under the Mobile features section
      5. Next, you can do a CURL REST call simulating a WS client with the user token.
      6. You need to replace the $wstoken and the MOODLE_URL of your moodle instance

        curl 'MOODLE_URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=$wstoken' --compressed

      1. Check that in the WS response, in the tool_mobile_disabledfeatures value field, you see the following value: "CoreReportBuilderDelegate"
      2. Now, go back to: Site administration ►Mobile app ►Mobile features - Disabled features option, and unselect "Report builder" option under the Mobile features section
      3. Execute the CURL request again and check that the tool_mobile_disabledfeatures value is empty
      Show
      Test Go to Site administration ► Advanced feature and enable "Enable web services for mobile devices" Create a WS Token for one user on the site: Click on Site administration ► Plugins ► Web services ► Manage tokens Go to Site administration ►Mobile app ►Mobile features - Disabled features option Select the "Report builder" option under the Mobile features section Next, you can do a CURL REST call simulating a WS client with the user token. You need to replace the $wstoken and the MOODLE_URL of your moodle instance curl 'MOODLE_URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=$wstoken' --compressed Check that in the WS response, in the tool_mobile_disabledfeatures value field, you see the following value: "CoreReportBuilderDelegate" Now, go back to: Site administration ►Mobile app ►Mobile features - Disabled features option, and unselect "Report builder" option under the Mobile features section Execute the CURL request again and check that the tool_mobile_disabledfeatures value is empty

    Description

      It is possible to disable certain features specifically for the Mobile app. In 4.0 it was introduced a new "Reports" link in the user profile menu (displayed at the top right) so we need to add a way for people to disable this on the app.

      See attached screenshot for the best place to add it

      Attachments

        1. MDL-74826_master_disabled.png
          MDL-74826_master_disabled.png
          30 kB
        2. MDL-74826_master_enabled.png
          MDL-74826_master_enabled.png
          33 kB
        3. MDL-74826_v400_disabled.png
          MDL-74826_v400_disabled.png
          46 kB
        4. MDL-74826_v400_enabled.png
          MDL-74826_v400_enabled.png
          46 kB
        5. screenshot-1.png
          screenshot-1.png
          50 kB

        Issue Links

          Activity

            People

              rodrigo.mady@moodle.com Rodrigo Mady
              jleyva Juan Leyva
              Juan Leyva Juan Leyva
              Shamim Rezaie Shamim Rezaie
              Angelia Dela Cruz Angelia Dela Cruz
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Carrillo, Paul Holden
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                22/Aug/22

                Time Tracking

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