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

Add new blocks supported by the app as features that can be disabled

XMLWordPrintable

    • MOODLE_35_STABLE, MOODLE_36_STABLE
    • MOODLE_36_STABLE
    • MDL-63708-master
    • Hide
      1. Enable "Mobile services": Plugins ► Web Services ► Mobile
      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 "Activities", "course overview", "Main menu" and "Timeline" options under the Blocks section (last section)
      5. 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"

      6. Check that in the WS response, in the tool_mobile_disabledfeatures value field, you see the following value (maybe not in the same order): "CoreBlockDelegate_AddonBlockActivityModules,CoreBlockDelegate_AddonBlockMyOverview,CoreBlockDelegate_AddonBlockSiteMainMenu,CoreBlockDelegate_AddonBlockTimeline"
      7. Now, go back to ite administration ►Mobile app ►Mobile features - Disabled features option, and unselect all the options under the "Blocks" section
      8. Execute the CURL request again and check that the tool_mobile_disabledfeatures value is empty
      Show
      Enable "Mobile services": Plugins ► Web Services ► Mobile 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 "Activities", "course overview", "Main menu" and "Timeline" options under the Blocks section (last section) 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" Check that in the WS response, in the tool_mobile_disabledfeatures value field, you see the following value (maybe not in the same order): "CoreBlockDelegate_AddonBlockActivityModules,CoreBlockDelegate_AddonBlockMyOverview,CoreBlockDelegate_AddonBlockSiteMainMenu,CoreBlockDelegate_AddonBlockTimeline" Now, go back to ite administration ►Mobile app ►Mobile features - Disabled features option, and unselect all the options under the "Blocks" section Execute the CURL request again and check that the tool_mobile_disabledfeatures value is empty

      Via the Moodle interface we allow to disable features of the app. Right now admins can disable any feature, including modules, we should allow to disable the new blocks we are creating / supporting.

      CoreBlockDelegate_AddonBlockActivityModules (activity_modules)
      CoreBlockDelegate_AddonBlockSiteMainMenu (site_main_menu)
      CoreBlockDelegate_AddonBlockMyOverview (myoverview)
      CoreBlockDelegate_AddonBlockTimeline (timeline)
      CoreBlockDelegate_AddonBlockRecentCourses (recentcourses)
      CoreBlockDelegate_AddonBlockStarredCourses (starredcourses)
      CoreBlockDelegate_AddonBlockRecentActivities (recentactivities)
      CoreBlockDelegate_AddonBlockGrade (grade) -> Not implemented yet, probably the name can change.

            jleyva Juan Leyva
            jleyva Juan Leyva
            Albert Gasset Albert Gasset
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m

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