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

The pagination bar does not respect the perpage parameter in insight report page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.8.5, 3.9.2
    • 3.8.4, 3.9.1, 3.10
    • Analytics
    • MOODLE_310_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • MDL-69458-master
    • Hide

      Setup

      Firstly, you will need to generate some insights for a certain model.

      1. Login as Admin.
      2. Setup  your timezone correctly, if it is not already (Site administration > Location > Location settings)
      3. Set "Debug messages" = "DEVELOPER ..." (Site administration > Development > Debugging)
      4. Create a M size test Course (Site administration > Development > Make test course)
      5. Go to Site administration > Analytics > Analytics settings
        1. Set "Analytics processes execution via command line only" = "No"
        2. Save changes.
      6. Go to Site administration > Analytics > Analytics models
      7. Edit the "Students who have not accessed the course yet" model
        1. Set Analysis interval = 10% after start
        2. Save changes go back to Analytics models page (do not close this browser tab)
      8. Open a new tab and go to the Course
      9. Edit the course
        1. Set the course start date to one minute ago
        2. Set the course end date to five minutes in the future
      10. Go back to the Analytics models page tab
      11. In the actions menu for "Students who have not accessed the course yet" click on "Execute scheduled analysis"

      Test

      1. Go to the Course.
      2. Go to Course Administration > Reports > Insights
        1. you should see 100 insights per page
      3. Manually modify the page URL by setting the parameter 'perpage' = 10, and appending it to the URL ( 'PATHTOINSTANCE/report/insights/insights.php?contextid=CONTEXTID&modelid=MODELID&perpage=10').
      4. After following the URL, you should see 10 insights per page now.
      5. Click on the next page (ex. 2) in the pagination bar.
        1. confirm the next set of 10 insights is displayed.

       

      Show
      Setup Firstly, you will need to generate some insights for a certain model. Login as Admin. Setup  your timezone correctly, if it is not already (Site administration > Location > Location settings) Set "Debug messages" = "DEVELOPER ..." (Site administration > Development > Debugging) Create a M size test Course (Site administration > Development > Make test course) Go to Site administration > Analytics > Analytics settings Set "Analytics processes execution via command line only" = "No" Save changes. Go to Site administration > Analytics > Analytics models Edit the "Students who have not accessed the course yet" model Set Analysis interval = 10% after start Save changes go back to Analytics models page (do not close this browser tab) Open a new tab and go to the Course Edit the course Set the course start date to one minute ago Set the course end date to five minutes in the future Go back to the Analytics models page tab In the actions menu for "Students who have not accessed the course yet" click on "Execute scheduled analysis" Test Go to the Course. Go to Course Administration > Reports > Insights you should see 100 insights per page Manually modify the page URL by setting the parameter 'perpage' = 10, and appending it to the URL ( 'PATHTOINSTANCE/report/insights/insights.php?contextid=CONTEXTID&modelid=MODELID&perpage=10'). After following the URL, you should see 10 insights per page now. Click on the next page (ex. 2) in the pagination bar. confirm the next set of 10 insights is displayed.  

      The insight report page supports setting the number of displayed insights per page through the optional parameter 'perpage'. However, the pagination bar does not respect this parameter when navigating to a different page and uses the default perpage parameter.

      Steps to replicate:

      Using course which has generated many insights (>100) for a certain analytics model

      1. Go to the Course.
      2. Go to Course Administration > Reports > Insights
        • By default, you should see 100 insights per page
      3. Manually modify the page url by setting the parameter 'perpage' = 10,and appending it to the url ( 'PATHTOINSTANCE/report/insights/insights.php?contextid=CONTEXTID&modelid=MODELID&perpage=10').
        • After following the url, you should see 10 insights per page now.
      4. Click on the next page (ex. 2) in the pagination bar.

      Expected: The page should display the next set of 10 insights.

      Actual: The page displays 100 insights per page.

       

            Geshoski Mihail Geshoski
            Geshoski Mihail Geshoski
            Jake Dallimore Jake Dallimore
            Andrew Lyons Andrew Lyons
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 55 minutes
                3h 55m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.