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

Handle context freeze in the Mobile app

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. In a Moodle 3.6 site, setup a course with an assignment and freeze the course.
      2. Access the app with a student and go to the assignment. Check that an empty page is displayed (this is the same behavior as web).
      3. Download the assignment from the header menu. Check that no error is displayed.
      4. Open the app offline and go to the assignment. Check that no error is displayed.
      5. Repeat steps 2-4 with a teacher.
      Show
      In a Moodle 3.6 site, setup a course with an assignment and freeze the course. Access the app with a student and go to the assignment. Check that an empty page is displayed (this is the same behavior as web). Download the assignment from the header menu. Check that no error is displayed. Open the app offline and go to the assignment. Check that no error is displayed. Repeat steps 2-4 with a teacher.
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle Mobile 3.6.0

      Description

      If a context is frozen, most WS calls will return an exception. E.g. the WS mod_assign_get_submission_status returns required_capability_exception.

      Currently we have 2 problems in the app:

      1. If some information is cached, the app will display the cached in this case.
      2. If the information isn't cached, we'll display an error and, in some cases, some data will be displayed in the screen. E.g. in assignment we display an error and the screen displays a header "Submission status". In web, no error is displayed and the user only sees a blank screen, we should do the same as web.

      We need to check all or most cases to make sure they all behave the same.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                albert.gasset Albert Gasset
                Reporter:
                dpalou Dani Palou
                Peer reviewer:
                Dani Palou
                Integrator:
                Juan Leyva
                Tester:
                Dani Palou
                Participants:
                Component watchers:
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Jan/19