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

Update language pack installs / updates to run asynchronously to avoid timeouts when multiple are used

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Prerequisites

      • Ability to run ad hoc tasks on demand, e.g. via admin/cli/adhoc_task.php CLI script

      Instructions

      1. Log in as the site administrator
      2. Go to Site administration > Language > Language packs
      3. Attempt to install multiple language pack at once
      4. TEST Check that selected language packs are reported to be installed soon
      5. Execute ad hoc tasks
      6. Go to Site administration > Language > Language packs again
      7. TEST Check that selected language packs are installed now
      Show
      Prerequisites Ability to run ad hoc tasks on demand, e.g. via admin/cli/adhoc_task.php CLI script Instructions Log in as the site administrator Go to Site administration > Language > Language packs Attempt to install multiple language pack at once TEST Check that selected language packs are reported to be installed soon Execute ad hoc tasks Go to Site administration > Language > Language packs again TEST Check that selected language packs are installed now
    • Affected Branches:
      MOODLE_310_STABLE
    • Fixed Branches:
      MOODLE_311_STABLE
    • Pull from Repository:
    • Pull 3.11 Branch:
      MDL-70608-311-langimportasync
    • Pull Master Branch:
      MDL-70608-master-langimportasync

      Description

      Helen Foster and me are experiencing this pretty frequently on Moodle community sites that have multiple language packs installed. Installing multiple language packs can take significant amount of time and lead to server timeouts.

      I am going to improve the language packs installation tool so that it installs and updates language packs asynchronously in the background.

        Attachments

        1. MDL-70608.jpg
          MDL-70608.jpg
          31 kB
        2. screenshot-1.png
          screenshot-1.png
          46 kB
        3. screenshot-2.png
          screenshot-2.png
          12 kB
        4. screenshot-3.png
          screenshot-3.png
          16 kB
        5. screenshot-4.png
          screenshot-4.png
          18 kB
        6. screenshot-5.png
          screenshot-5.png
          54 kB

          Issue Links

            Activity

              People

              Assignee:
              mudrd8mz David Mudrák (@mudrd8mz)
              Reporter:
              mudrd8mz David Mudrák (@mudrd8mz)
              Peer reviewer:
              Víctor Déniz Falcón Víctor Déniz Falcón
              Integrator:
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Tester:
              Anna Carissa Sadia Anna Carissa Sadia
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/21

                  Time Tracking

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