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

Page times out when deleting large number of courses

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-48456-master
    • Difficulty:
      Easy
    • Testing Instructions:
      Hide
      • Install moosh: http://moosh-online.com/
      • Using moosh create a lot of courses (around 1000 will be more than enough). To do so run command moosh course-create coursename {1..255} few times changing coursename. Note: it'll add courses to default 'Misc' category. If you want to add courses to another category specify category id using -c option e.g. moosh course-create -c 5 course{1..255}
      • Go to administration -> courses -> manage courses and categories
      • Select your category. From dropdown menu select 'delete'
      • Confirm deletion
      • Verify that deletion completed and all courses along with category are deleted.
      Show
      Install moosh: http://moosh-online.com/ Using moosh create a lot of courses (around 1000 will be more than enough). To do so run command moosh course-create coursename {1..255} few times changing coursename. Note: it'll add courses to default 'Misc' category. If you want to add courses to another category specify category id using -c option e.g. moosh course-create -c 5 course{1..255} Go to administration -> courses -> manage courses and categories Select your category. From dropdown menu select 'delete' Confirm deletion Verify that deletion completed and all courses along with category are deleted.

      Description

      Steps to reproduce:

      • Create a large number of courses in a single category
      • Attempt to delete the category and select the option to delete all the courses

      Expected result:

      • The categories are deleted and progress is displayed to stop the page frm timing out

      Actual result:

      • On a server with a proxy in front of it the page times out because no content has been recieved

      A category in a Moodle site has 2646 courses. I tried to delete them all by deleting the category and selecting for the courses to go when the category went. However, it timed out after a few minutes with an error 504. Some courses had been deleted but there are still 1972 left.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dkns Daniel Kosinski
              Reporter:
              marycooch Mary Cooch
              Peer reviewer:
              John Okely John Okely
              Integrator:
              David Monllaó David Monllaó
              Tester:
              Adrian Greeve Adrian Greeve
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/May/15