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

Content links and push clicks doesn't use the openCourse function

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      This issue should only be tested in 1 device.

      Configuration

      1. Download the topics2 format attached to this issue.
      2. As admin, install the course format in a site.
      3. Create a course using this new format.
      4. Create an activity in it (supported by the app and not a label, e.g. a page).
      5. Enrol a student in the course.
      6. In site home, create a label with a link to the course you just created, and a link to the activity in that course.
      7. In another site, add a link to the course in the first site.

      Testing

      1. In the app, login as the student in the first site.
      2. Once logged in, open the Site Home fast and click the course link.
      3. Wait for the course to be opened. It can take up to 20 seconds (it's the time it takes topics2 format to load). Check that, once opened, you see the message "This is a course in Topics 2 format!".
      4. Restart the app, open the Site Home fast and click the activity link.
      5. Wait for the course to be opened. It can take up to 20 seconds (it's the time it takes topics2 format to load). Check that the activity is opened and, if you go back to the course, you see the message "This is a course in Topics 2 format!".
      6. Now logout and login in the other site (step 7).
      7. Click the link to the other site. You'll see a message saying that the link belongs to another site.
      8. Click "Ok". The other site should be opened and a spinner should appear. It can take up to 20 seconds (it's the time it takes topics2 format to load). Check that, once opened, you see the message "This is a course in Topics 2 format!".
      Show
      This issue should only be tested in 1 device. Configuration Download the topics2 format attached to this issue. As admin, install the course format in a site. Create a course using this new format. Create an activity in it (supported by the app and not a label, e.g. a page). Enrol a student in the course. In site home, create a label with a link to the course you just created, and a link to the activity in that course. In another site, add a link to the course in the first site. Testing In the app, login as the student in the first site. Once logged in, open the Site Home fast and click the course link. Wait for the course to be opened. It can take up to 20 seconds (it's the time it takes topics2 format to load). Check that, once opened, you see the message "This is a course in Topics 2 format!". Restart the app, open the Site Home fast and click the activity link. Wait for the course to be opened. It can take up to 20 seconds (it's the time it takes topics2 format to load). Check that the activity is opened and, if you go back to the course, you see the message "This is a course in Topics 2 format!". Now logout and login in the other site (step 7). Click the link to the other site. You'll see a message saying that the link belongs to another site. Click "Ok". The other site should be opened and a spinner should appear. It can take up to 20 seconds (it's the time it takes topics2 format to load). Check that, once opened, you see the message "This is a course in Topics 2 format!".
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Sprint:
      Moodle App 3.7.0

      Description

      In MOBILE-2800, an "openCourse" function was implemented to verify that site plugins have been loaded before opening a course. However, this function isn't used when clicking a content link or a push notification that redirects to a course.

      This means that a course could be loaded before site plugins have been loaded, using the default course format instead of the plugin one.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  7/Jun/19