Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-57750

Add a way to retrieve action events for pagination

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:
    • Sprint:
      3.3 Project Team Sprint 2

      Description

      Not all users enrolled in a module will have a action to complete for each action event created.

      We need a way to filter out events that a user shouldn't see prior to pulling the data from the database to allow the database to handle the pagination for us.

      Whether or not a user will see an action event is based on their capabilities within the module. One possible solution is to ask each module for the list of event types that user should see and then use those in the database query to make sure we only receive results that the user is guaranteed to see.

      We could even implement some caching to pre-fetch this information rather than needing to calculate it on the fly each time.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ryanwyllie Ryan Wyllie
              Reporter:
              ryanwyllie Ryan Wyllie
              Participants:
              Component watchers:
              Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: