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

Avoid empty Dashboard or My courses when no blocks are returned because of an exception

XMLWordPrintable

    • Hide

      This issue requires modifying Moodle LMS code to make a WS call fail.

      This issue only needs to be tested in 1 device.

      1. In a 4.0/master site, edit the file blocks/classes/external.php and make the function get_dashboard_blocks throw an exception.
      2. In the app, login in this site (if it was already stored, delete it first). Check that you can see the My courses and the Home tab in the main menu.
      3. Open My Courses (if it wasn't opened already). Check that an error is displayed, but the My overview block is still displayed.
      4. Now open Dashboard (if it wasn't opened already). Check that an error is displayed, but the My overview and Timeline blocks are still displayed.
      5. Repeat these steps in a 3.11 or older site, except for step 3 (My Courses won't appear in this site).
      Show
      This issue requires modifying Moodle LMS code to make a WS call fail. This issue only needs to be tested in 1 device. In a 4.0/master site, edit the file blocks/classes/external.php and make the function get_dashboard_blocks throw an exception. In the app, login in this site (if it was already stored, delete it first). Check that you can see the My courses and the Home tab in the main menu. Open My Courses (if it wasn't opened already). Check that an error is displayed, but the My overview block is still displayed. Now open Dashboard (if it wasn't opened already). Check that an error is displayed, but the My overview and Timeline blocks are still displayed. Repeat these steps in a 3.11 or older site, except for step 3 (My Courses won't appear in this site).
    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Moodle App 4.0.1

      The core_blocks_get_dashboard_blocks might fail when broken third-party blocks (plugins) are used.

      In this scenario (no blocks returned) we should display something apart from an error (trying to reuse an existing error), for example, course search or the Site home -> Courses option so at least they can do something

            dpalou Dani Palou
            jleyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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