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

Activities are marked as outdated when it shouldn't when using the check updates WS

    XMLWordPrintable

Details

    • Hide
      1. In web, login as a teacher in a Moodle 3.2 or 3.3. Create two forums in different sections of the same course (in here they will be called "Forum 1" and "Forum 2").
      2. In the app, login as a student and download both forums.
      3. In web, create a new discussion or reply in both forums.
      4. In the app, perform a PTR in the section of Forum 1. Don't go to the section of Forum 2. Forum 1 should be marked as outdated.
      5. Download Forum 1 and wait for it to finish.
      6. Without leaving the section, go offline and perform a PTR. Check that Forum 1 is NOT marked as outdated.
      7. Still in offline, go to the section of Forum 2 and perform a PTR. Check that Forum 2 is marked as outdated.
      Show
      In web, login as a teacher in a Moodle 3.2 or 3.3. Create two forums in different sections of the same course (in here they will be called " Forum 1 " and " Forum 2 "). In the app, login as a student and download both forums. In web, create a new discussion or reply in both forums. In the app, perform a PTR in the section of Forum 1. Don't go to the section of Forum 2. Forum 1 should be marked as outdated. Download Forum 1 and wait for it to finish. Without leaving the section, go offline and perform a PTR. Check that Forum 1 is NOT marked as outdated. Still in offline, go to the section of Forum 2 and perform a PTR. Check that Forum 2 is marked as outdated.
    • MOODLE_32_STABLE
    • MOODLE_33_STABLE
    • Moodle Mobile 3.3.0

    Description

      How to reproduce:

      1. In Moodle, create an activity that uses the check updates WS.
      2. In the app, download the activity.
      3. In Moodle, modify something in the activity so the app detects it has something new.
      4. In the app, perform a PTR. The activity should be marked as outdated.
      5. Download the activity again.
      6. Go offline and perform a PTR. The activity will be marked as outdated again, but it shouldn't.

      The reason is that in the step 6 the check updates WS call fails, so it gets the result from cache and it detects the old changes.

      Attachments

        Activity

          People

            dpalou Dani Palou
            dpalou Dani Palou
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Berta Maroto Berta Maroto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              26/May/17