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

Give users a button to reload the app if course format plugins fail to load

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.7.0
    • Fix Version/s: 3.7.1
    • Component/s: Course formats
    • Labels:
    • Testing Instructions:
      Hide
      1. Install the format_topics2 course format plugin from the attached zip.  This is a basic course format plugin that has a 50% chance of failing to load each time the app starts.
      2. Create a course and set the format to "Topics 2"
      3. Enrol a user in the course
      4. Log in to the app as the user enrolled on the course.
      5. Click on the course. 
        1. If the course page opens, restart the app and try again until you see the error.
      6. You should see the error message "The plugins required by this course could not be loaded correctly. Please reload the app to try again.", with buttons saying "Reload" or "Ignore".
      7. Press "Ignore".
      8. The message should close, and you will see your course overview again.
      9. Click on the course again.
      10. You should see the error again.
      11. Click "Reload"
      12. The app should restart.
      13. Once it has restarted, click on the course again.
        1. If you see the error, click "Reload" again and keep trying until it works.
      14. You should see a page showing "This is a course in Topics 2 format!"
      Show
      Install the format_topics2 course format plugin from the attached zip.  This is a basic course format plugin that has a 50% chance of failing to load each time the app starts. Create a course and set the format to "Topics 2" Enrol a user in the course Log in to the app as the user enrolled on the course. Click on the course.  If the course page opens, restart the app and try again until you see the error. You should see the error message "The plugins required by this course could not be loaded correctly. Please reload the app to try again.", with buttons saying "Reload" or "Ignore". Press "Ignore". The message should close, and you will see your course overview again. Click on the course again. You should see the error again. Click "Reload" The app should restart. Once it has restarted, click on the course again. If you see the error, click "Reload" again and keep trying until it works. You should see a page showing "This is a course in Topics 2 format!"
    • Affected Branches:
      MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull Master Branch:
      MOBILE-3113_integration
    • Sprint:
      Moodle App 3.7.1

      Description

      MOBILE-2800 displays an error message if an init method required by a custom course format plugin errors or times out.  The message instructs the user to restart the app themselves, as this is the only way to re-run the init call. However, this isn't very user-friendly, and relies on the user understanding what we mean by "restart the app". They may just switch to another app and back, rather than fully killing the app on their device.

      Since calling window.location.reload() effectively restarts the app, we can give the users a button to do this, rather then expecting them to do it themselves.

        Attachments

          Activity

            People

            • Assignee:
              marxjohnson Mark Johnson
              Reporter:
              marxjohnson Mark Johnson
              Peer reviewer:
              Pau Ferrer
              Integrator:
              Juan Leyva
              Tester:
              Pau Ferrer
              Participants:
              Component watchers:
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                30/Aug/19