Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-1958

Disable functionalities based on Moodle Mobile settings

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      This must be tested in a site with MDL-49423 applied.

      1. Login in the Moodle site as admin and enable email signup in your site (you can see how to do this in the testing instructions of MOBILE-1598). Verify that you can see the signup button in the Mobile app.
      2. Now go to Site administration > Mobile app > Mobile features and select "Create new account" in "Disabled features".
      3. In the app, try to add the site again and check that the signup button isn't seen anymore (Create a new account).
      4. In Moodle web, now disable several side menu (Main menu) options in "Disabled features".
      5. In the app, login in that site and check that you cannot see the side menu options you just disabled.
      6. Check that side menu options appear/disappear if you logout and login (or synchronize the site) in the app after enable/disable them in Moodle web.
      7. In Moodle web, disable both "My Courses" and "Site Home". In the app, synchronize the site (App Settings > Synchronization) and then logout and login. Check that you're redirected to your user profile.
        • You can achieve the same result if you logout and login twice instead of synchronizing the site. It needs to be done twice because the config is updated after the user is sent to the initial page.
      8. Now try disabling several Course and User features and check that they disappear in the app if you logout and login.
      9. Disable Grades in Course but not in User. Check that in the app you cannot see the Grades option in the course, but you see it in the user profile. Please notice that you need to be a teacher to see user grades.
      10. Disable some "Files" features but leave the "My Files" feature enabled in side menu. Check that the features disappear inside "My Files" in the app.
      11. Disable ALL the "Files" features and check that the "My Files" option disappears in the app.
      12. Disable "Private files" and "Site files", but not "Upload". In the app, go to My Files and check that you see an upload button.
      13. Now disable several modules. In the app, try to open one of those modules and check that you see a message telling you that the module has been disabled in the app.
      14. Install at least 1 remote addon in the site (you can use mod_certificate or the one in MOBILE-1967). Check that it works in the app.
      15. Go to "Mobile features" and disable the remote addon. In the app, synchronize the site (App Settings > Synchronization) and then logout and login. Check that the remote addon isn't loaded in the app anymore (if it's a module, just try to open an instance of that module and it should tell you it's not supported).
        • You can achieve the same result if you logout and login twice instead of synchronizing the site. It needs to be done twice because the remote addons are loaded before the site config is updated.
      Show
      This must be tested in a site with MDL-49423 applied. Login in the Moodle site as admin and enable email signup in your site (you can see how to do this in the testing instructions of MOBILE-1598 ). Verify that you can see the signup button in the Mobile app. Now go to Site administration > Mobile app > Mobile features and select " Create new account " in " Disabled features ". In the app, try to add the site again and check that the signup button isn't seen anymore (Create a new account). In Moodle web, now disable several side menu (Main menu) options in " Disabled features ". In the app, login in that site and check that you cannot see the side menu options you just disabled. Check that side menu options appear/disappear if you logout and login (or synchronize the site) in the app after enable/disable them in Moodle web. In Moodle web, disable both " My Courses " and " Site Home ". In the app, synchronize the site ( App Settings > Synchronization ) and then logout and login. Check that you're redirected to your user profile. You can achieve the same result if you logout and login twice instead of synchronizing the site. It needs to be done twice because the config is updated after the user is sent to the initial page. Now try disabling several Course and User features and check that they disappear in the app if you logout and login. Disable Grades in Course but not in User . Check that in the app you cannot see the Grades option in the course, but you see it in the user profile. Please notice that you need to be a teacher to see user grades. Disable some " Files " features but leave the " My Files " feature enabled in side menu. Check that the features disappear inside " My Files " in the app. Disable ALL the " Files " features and check that the " My Files " option disappears in the app. Disable " Private files " and " Site files ", but not " Upload ". In the app, go to My Files and check that you see an upload button. Now disable several modules. In the app, try to open one of those modules and check that you see a message telling you that the module has been disabled in the app. Install at least 1 remote addon in the site (you can use mod_certificate or the one in MOBILE-1967 ). Check that it works in the app. Go to " Mobile features " and disable the remote addon. In the app, synchronize the site ( App Settings > Synchronization ) and then logout and login. Check that the remote addon isn't loaded in the app anymore (if it's a module, just try to open an instance of that module and it should tell you it's not supported). You can achieve the same result if you logout and login twice instead of synchronizing the site. It needs to be done twice because the remote addons are loaded before the site config is updated.
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Sprint:
      Moodle Mobile 3.2.1

      Description

      We should disable the functionalities based on Moodle settings.

      We need to evaluate if this should be achieved using the isPluginEnabled function or at delegate level or in a different way.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              jleyva Juan Leyva
              Peer reviewer:
              Pau Ferrer Pau Ferrer
              Integrator:
              Juan Leyva Juan Leyva
              Tester:
              Berta Maroto Berta Maroto
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                28/Feb/17