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

Database: Offline entries cannot be viewd, edited, deleted and approved

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.6.1
    • Fix Version/s: 3.7.0
    • Component/s: Database add-on
    • Labels:
    • Testing Instructions:
      Hide

      Test on any device.

      1. Login to a 3.3 or newer site as a teacher.
      2. Go to a database activity with Approval required. Make sure that the template has approve, disapprove and delete actions.
      3. Download the database.
      4. Switch the app to offline.
      5. Delete an entry.
      6. Edit the first entry and change some fields.
      7. Add a new entry.
      8. Edit the new entry and change some fields. Check that the offline entry is updated.
      9. Disapprove the entry (thumbs down icon) .Check that the entry is now unapproved (thumbs up icon is displayed).
      10. View the new entry in a single page (glass magnifier icon). Check that the displayed entry is the correct one.
      11. Click the "Next" button and check that the the first online entry is displayed.
      12. Click the "Previous" button and check that the the added entry entry is displayed..
      13. Switch the device to online and sync the database.
      14. Check that all actions are applied: the new entry, the deleted entry and the edited entry.
      Show
      Test on any device. Login to a 3.3 or newer site as a teacher. Go to a database activity with Approval required. Make sure that the template has approve, disapprove and delete actions. Download the database. Switch the app to offline. Delete an entry. Edit the first entry and change some fields. Add a new entry. Edit the new entry and change some fields. Check that the offline entry is updated. Disapprove the entry (thumbs down icon) .Check that the entry is now unapproved (thumbs up icon is displayed). View the new entry in a single page (glass magnifier icon). Check that the displayed entry is the correct one. Click the "Next" button and check that the the first online entry is displayed. Click the "Previous" button and check that the the added entry entry is displayed.. Switch the device to online and sync the database. Check that all actions are applied: the new entry, the deleted entry and the edited entry.
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Sprint:
      Moodle App 3.7.0

      Description

      Steps to reproduce:

      1. Go to a database activity
      2. Switch the app to offline.
      3. Create an entry.
      4. Click any action icon (view, edit, delete, etc.) of the created entry.
      5. Check that the site is opened in a browser with a URL similar to /mod/data/view.php?d=%202&delete=-1548927007836

        Attachments

          Activity

            People

            • Assignee:
              albert.gasset Albert Gasset
              Reporter:
              albert.gasset Albert Gasset
              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:
                7/Jun/19