Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-778 META: Migrate to Ionic
  3. MOBILE-1111

Review: Some errors found while testing in offline

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Others
    • Labels:

      Description

      I performed some tests with the device in offline and I found some errors and behaviors that I didn't like:

      1. In mod_page and mod_book there are two calls to $mmUtil.showErrorModal without the translate param set to true. That means that messages 'mma.mod_book.errorchapter' and 'mma.mod_page.errorwhileloadingthepage' are not translated.
      2. When we open a not downloaded page/resource/book/imscp two error messages are shown: one by course_content_handler (download failed) and another shown by the controller (failed to load). I think 1 modal should be enough. This one can be a bit tricky to fix.
      3. When doing a pull to refresh on notifications, the message "There are no notifications" is briefly shown.
      4. If I go to notifications and click "View" on a forum notification in offline, I go to a page with the text: NaN undefined NaN. (Forum not cached).
      5. If I go to a forum from course contents in offline an empty page is shown but no error message is shown. (Forum not cached).
      6. If I go to a mod_assign in offline I can see "No due date" and "Add submission". I think we shouldn't see them. (Assign not cached).
      7. If I see a not cached participant in offline, the picture sometimes is not shown (it should have been cached in participants list).
      8. Add/Block contact in offline don't show an error message and the button text moves a bit.
      9. If I add a note but the request fails I lose all the text I wrote.
      10. The last message in a discussion is behind the "Send" button.
      11. $mmSitesManager gets $mmApp DB when it's initialized. This might be too soon in some cases, it should be retrieved when it's needed.
      12. In contacts view, search cannot be cleared if no results found.
      13. I go to discussions list, I see last message in a discussion is "A". I go into the discussions, I add new messages (or the other sends new messages). When I go back to discussions list, the last message is still "A" (is not updated unless I pull to refresh).
      14. In a discussion, when the keyboard is opened it hides the last messages, I have to scroll to see them. IMO they should move along with the keyboard, so they're still visible.
      15. There's a problem in mod_page if the module has some resources that are not shown on the page. If the user downloads it using the download icon it works fine, since it downloads all the files. But if the user accesses the page, the course handler waits for ALL the resources to be downloaded, but we only download the ones shown. We need to fetch all the page resources like we do in book and so (this can affect mod_resource too).
      16. Sometimes WS responses aren't stored in cache, an error appears in console saying that the object couldn't be cloned. This is because handlers are added to the objects to be stored. We need to clone the object returned in $mmSite.request, not in $mmWS.call.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            dpalou Dani Palou
            Integrator:
            Juan Leyva
            Tester:
            Juan Leyva
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              31/Jul/15