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

Course section collapsing sends way too many AJAX requests

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 4.0.4
    • 4.0.3, 4.1
    • Course
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE
    • MDL-75555-master
    • Hide
      1. Create a Course
      2. Open the Developer Console in your Browser (F12 in most browsers)
      3. Click on the 'Network' tab
      4. Ensure only one request gets sent (as well as that the expanding/collapsing functionality keeps working properly) for:
        1. Collapsing one section
        2. Expanding one section
        3. Collapsing all sections
        4. Expanding all sections
      Show
      Create a Course Open the Developer Console in your Browser (F12 in most browsers) Click on the 'Network' tab Ensure only one request gets sent (as well as that the expanding/collapsing functionality keeps working properly) for: Collapsing one section Expanding one section Collapsing all sections Expanding all sections

    Description

      Moodle currently sends (number of sections + 1) AJAX requests when clicking the collapse / expand all button, and 2 requests when collapsing / expanding a single selection. Also, only the last request contains the correct list of collapsed sections (all other requests have an empty list) and those requests are send simultaneously , so if the last request is not processed as the last on the server, the course will be fully expanded on the next reload.

      Attachments

        1. MDL-75555_master.webm
          1.24 MB
        2. MDL-75555_v400.webm
          1.02 MB
        3. video of request.webm
          351 kB

        Issue Links

          Activity

            People

              justusdieckmann Justus Dieckmann
              justusdieckmann Justus Dieckmann
              Ferran Recio Ferran Recio
              Ilya Tregubov Ilya Tregubov
              Angelia Dela Cruz Angelia Dela Cruz
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Clockify

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