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

Reduce WS requests in the course main page

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5.2
    • Fix Version/s: 3.6.0
    • Component/s: Others
    • Labels:
    • Testing Instructions:
      Hide
      1. Use a 3.6 site.
      2. Create a course with resources (with type and size shown on the course) and forums and course completion enabled.
      3. Create an URL resource configured to open in a new popup window
      4. Setup a user to have tracking enabled and enrol it into the course as student.
      5. With another user post on the forum.
      6. In the app, with the student navigate to the course .
      7. Check unread forum messages are shown and type and size on resources also.
      8. Check Loading message is not displayed while loading these data.
      9. Check completion on activities works.

      The change is on requests, so if you cannot check how many requests are done, you only can check everything is ok

      Show
      Use a 3.6 site. Create a course with resources (with type and size shown on the course) and forums and course completion enabled. Create an URL resource configured to open in a new popup window Setup a user to have tracking enabled and enrol it into the course as student. With another user post on the forum. In the app, with the student navigate to the course . Check unread forum messages are shown and type and size on resources also. Check Loading message is not displayed while loading these data. Check completion on activities works. The change is on requests, so if you cannot check how many requests are done, you only can check everything is ok
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle Mobile 3.6.0

      Description

      Thanks to MDL-63522, we should be able to reduce the WS calls required to build the course frontpage, this new WS is returning extra information:

      • onclick (onclick javascript action code) Used by URL for example to built the link with the popup info
      • afterlink (after link info to be displayed) Used by forum to display unread posts and by resource/file to display the file info (type, size, etc..)
      • customdata (module custom data (JSON encoded)) Used by some modules to place extra information like resource (type, size, etc...)
      • completion (to indicate if completion is enabled or not)
      • completiondata (completion status for the current user in the module) Whether is completed or not and override information

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pferre22 Pau Ferrer
                Reporter:
                jleyva Juan Leyva
                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:
                  11/Jan/19