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

Event list on dashboard isn't correctly loading more events

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: Blocks, Calendar
    • Labels:
      None
    • Testing Instructions:
      Hide
      1. Create a course
      2. Enrol a student in the course
      3. Create an assignment with a due date 3 weeks from now
      4. Create 19 more assignments with a due date 1 week from now
      5. Create 1 or more assignments with a due date 3 weeks from now (or later)
        • Note that the ordering of the above 3 steps is important because we're trying to replicate ids not being sequential in the result set
      6. Log in as the student
      7. Go to the student's dashboard and make sure the the myoverview block is added
      8. View the timeline -> sort by dates
      9. Confirm the events are showing in the correct order according to due date (the events from step 4, then event from step 3)
      10. Click "view more" and confirm that the events from step 5 are loaded (none of the previous events should be duplicated)
      11. View the timeline -> sort by course
      12. Confirm the events are displaying in the correct order for the course
      Show
      Create a course Enrol a student in the course Create an assignment with a due date 3 weeks from now Create 19 more assignments with a due date 1 week from now Create 1 or more assignments with a due date 3 weeks from now (or later) Note that the ordering of the above 3 steps is important because we're trying to replicate ids not being sequential in the result set Log in as the student Go to the student's dashboard and make sure the the myoverview block is added View the timeline -> sort by dates Confirm the events are showing in the correct order according to due date (the events from step 4, then event from step 3) Click "view more" and confirm that the events from step 5 are loaded (none of the previous events should be duplicated) View the timeline -> sort by course Confirm the events are displaying in the correct order for the course
    • Affected Branches:
      MOODLE_33_STABLE
    • Pull Master Branch:
      MDL-58218-master

      Description

      The "view more" button doesn't correctly load more events. In addition to remembering the last event id it saw it also needs the last timesort value it saw.

        Attachments

        1. screenshot-1.png
          133 kB
          Jun Pataleta
        2. screenshot-2.png
          38 kB
          Jun Pataleta
        3. screenshot-3.png
          62 kB
          Jun Pataleta

          Activity

            People

            Assignee:
            ryanwyllie Ryan Wyllie
            Reporter:
            ryanwyllie Ryan Wyllie
            Peer reviewer:
            Jun Pataleta
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: