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

Update the tool_mobile_disabledfeatures setting with H5P and new blocks supported on the app

    XMLWordPrintable

Details

    • MOODLE_38_STABLE
    • MOODLE_39_STABLE
    • MDL-68537-master
    • Hide
      1. As admin, go to Plugins ► Web Services ► Mobile
      2. Enable "Mobile services":
      3. Save changes
      4. Go to Site administration ► Plugins ► Web services ► Manage tokens
      5. Create a WS Token for a non-admin user on the site
      6. Note the token
      7. Go to Site administration ►Mobile app ►Mobile features
      8. Under "Disabled features" Choose the following options:
        1. General > Text filters
        2. Modules > H5P Activity
        3. Blocks > Activity Results
      9. Save changes
      10. Open a terminal/console and execute the following command:
        • You need to replace the wstoken with the token created in step 2 and the URL of your moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=3af67232a7596ceb658df4db329e5ad6&section=mobileapp' | python -m "json.tool"
          

        1. Confirm that you see the following items listed in the tool_mobile_disabledfeatures part of the response:
          1. CoreFilterDelegate, mmCourseDelegate_mmaModH5pactivity, CoreBlockDelegate_AddonBlockActivityResults
      11. Check that in the WS response, in the tool_mobile_disabledfeatures value field, you see the following value*

        "CoreFilterDelegate,$mmCourseDelegate_mmaModH5pactivity,CoreBlockDelegate_AddonBlockActivityResults"
        

      12. Now, go back to Site administration ►Mobile app ►Mobile features
      13. Under "Disabled features" unselect all options
      14. Save changes
      15. Execute the CURL request again and check that the tool_mobile_disabledfeatures value is empty
      Show
      As admin, go to Plugins ► Web Services ► Mobile Enable "Mobile services": Save changes Go to Site administration ► Plugins ► Web services ► Manage tokens Create a WS Token for a non-admin user on the site Note the token Go to Site administration ►Mobile app ►Mobile features Under "Disabled features" Choose the following options: General > Text filters Modules > H5P Activity Blocks > Activity Results Save changes Open a terminal/console and execute the following command: You need to replace the wstoken with the token created in step 2 and the URL of your moodle instance curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=3af67232a7596ceb658df4db329e5ad6&section=mobileapp' | python -m "json.tool" Confirm that you see the following items listed in the tool_mobile_disabledfeatures part of the response: CoreFilterDelegate, mmCourseDelegate_mmaModH5pactivity, CoreBlockDelegate_AddonBlockActivityResults Check that in the WS response, in the tool_mobile_disabledfeatures value field, you see the following value* "CoreFilterDelegate,$mmCourseDelegate_mmaModH5pactivity,CoreBlockDelegate_AddonBlockActivityResults" Now, go back to Site administration ►Mobile app ►Mobile features Under "Disabled features" unselect all options Save changes Execute the CURL request again and check that the tool_mobile_disabledfeatures value is empty

    Description

      We need to allow site admins to disable the new things coming in 3.9, including H5P and the new "Activity results" block that now is displayed on the app. And also, text filtering app (performance problem)

      Attachments

        Activity

          People

            jleyva Juan Leyva
            jleyva Juan Leyva
            Carlos Escobedo Carlos Escobedo
            Andrew Lyons Andrew Lyons
            Anna Carissa Sadia Anna Carissa Sadia
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              15/Jun/20

              Time Tracking

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