Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.2, 2.3
    • Fix Version/s: 2.1.6, 2.2.3
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide

      Moodle 1.9 or 2.0 site with quiz attempts.

      Place 2.1, 2.2 or master code in place - but do not run upgrade yet!
      Create admin/tool/qeupgradehelper/partialupgrade.php (2.1 path is local/qeupgradehelper/partialupgrade.php), with the code:

      <?php
      function tool_qeupgradehelper_get_quizzes_to_upgrade() {
          return array();
      }
      

      This will cause the question attempt upgrade to not execute.

      Run the Moodle system upgrade.

      now run (via command line):
      sudo -u www-data /usr/bin/php admin/tool/qeupgradehelper/cli/convert.php -h
      or (for 2.1)
      sudo -u www-data /usr/bin/php local/qeupgradehelper/cli/convert.php -h

      note that www-data is the user of the webprocess on your system - it may be something else, like httpd or apache, the path to php may also vary.

      From there you can try different flags, -t=x to process for x seconds (note it allows the current quiz to finish, so it will likely run longer than x seconds), -c=n to process n quizes, or --quiz=quizid to process quizid.

      -t and -c can be used together, the first to be reached causes a stop.

      No flags will cause the system to complete all remaining quizes.

      Show
      Moodle 1.9 or 2.0 site with quiz attempts. Place 2.1, 2.2 or master code in place - but do not run upgrade yet! Create admin/tool/qeupgradehelper/partialupgrade.php (2.1 path is local/qeupgradehelper/partialupgrade.php), with the code: <?php function tool_qeupgradehelper_get_quizzes_to_upgrade() { return array(); } This will cause the question attempt upgrade to not execute. Run the Moodle system upgrade. now run (via command line): sudo -u www-data /usr/bin/php admin/tool/qeupgradehelper/cli/convert.php -h or (for 2.1) sudo -u www-data /usr/bin/php local/qeupgradehelper/cli/convert.php -h note that www-data is the user of the webprocess on your system - it may be something else, like httpd or apache, the path to php may also vary. From there you can try different flags, -t=x to process for x seconds (note it allows the current quiz to finish, so it will likely run longer than x seconds), -c=n to process n quizes, or --quiz=quizid to process quizid. -t and -c can be used together, the first to be reached causes a stop. No flags will cause the system to complete all remaining quizes.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull Master Branch:
    • Rank:
      39321

      Description

      We wrote a tool to execute qeupgradehelper, and it allows some options, like only upgrade quiz id x, upgrade x quizes, and run for x seconds.

      I feel this may be pretty helpful to other installs with large attempt upgrade, over the browser based upgrade.

        Issue Links

          Activity

          Eric Merrill created issue -
          Eric Merrill made changes -
          Eric Merrill made changes -
          Issue Type Bug [ 1 ] New Feature [ 2 ]
          Fix Version/s DEV backlog [ 10464 ]
          Tim Hunt made changes -
          Peer reviewer timhunt
          Labels triaged
          Assignee Tim Hunt [ timhunt ] Eric Merrill [ emerrill ]
          Eric Merrill made changes -
          Status Open [ 1 ] Waiting for peer review [ 10012 ]
          Eric Merrill made changes -
          Testing Instructions Moodle 1.9 or 2.0 site with quiz attempts.

          Place 2.2 or master code in place - but do not run upgrade yet!
          Create admin/tool/qeupgradehelper/partialupgrade.php, with the code:
          {code}
          <?php
          function tool_qeupgradehelper_get_quizzes_to_upgrade() {
              return array();
          }
          {code}
          This will cause the question attempt upgrade to not execute.

          Run the Moodle system upgrade.

          now run (via command line):
          sudo -u www-data /usr/bin/php admin/tool/qeupgradehelper/cliupgrade.php -h

          note that www-data is the user of the webprocess on your system - it may be something else, like httpd or apache.

          From there you can try different flags, -t=x to process for x seconds (note it allows the current quiz to finish, so it will likely run longer than x seconds), -c=n to process n quizes, or --quiz=quizid to process quizid.

          -t and -c can be used together, the first to be reached causes a stop.

          No flags will cause the system to complete all remaining quizes.
          Eric Merrill made changes -
          Testing Instructions Moodle 1.9 or 2.0 site with quiz attempts.

          Place 2.2 or master code in place - but do not run upgrade yet!
          Create admin/tool/qeupgradehelper/partialupgrade.php, with the code:
          {code}
          <?php
          function tool_qeupgradehelper_get_quizzes_to_upgrade() {
              return array();
          }
          {code}
          This will cause the question attempt upgrade to not execute.

          Run the Moodle system upgrade.

          now run (via command line):
          sudo -u www-data /usr/bin/php admin/tool/qeupgradehelper/cliupgrade.php -h

          note that www-data is the user of the webprocess on your system - it may be something else, like httpd or apache.

          From there you can try different flags, -t=x to process for x seconds (note it allows the current quiz to finish, so it will likely run longer than x seconds), -c=n to process n quizes, or --quiz=quizid to process quizid.

          -t and -c can be used together, the first to be reached causes a stop.

          No flags will cause the system to complete all remaining quizes.
          Moodle 1.9 or 2.0 site with quiz attempts.

          Place 2.1, 2.2 or master code in place - but do not run upgrade yet!
          Create admin/tool/qeupgradehelper/partialupgrade.php (2.1 path is local/qeupgradehelper/partialupgrade.php), with the code:
          {code}
          <?php
          function tool_qeupgradehelper_get_quizzes_to_upgrade() {
              return array();
          }
          {code}
          This will cause the question attempt upgrade to not execute.

          Run the Moodle system upgrade.

          now run (via command line):
          sudo -u www-data /usr/bin/php admin/tool/qeupgradehelper/cliupgrade.php -h
          or (for 2.1)
          sudo -u www-data /usr/bin/php local/qeupgradehelper/cliupgrade.php -h

          note that www-data is the user of the webprocess on your system - it may be something else, like httpd or apache, the path to php may also vary.

          From there you can try different flags, -t=x to process for x seconds (note it allows the current quiz to finish, so it will likely run longer than x seconds), -c=n to process n quizes, or --quiz=quizid to process quizid.

          -t and -c can be used together, the first to be reached causes a stop.

          No flags will cause the system to complete all remaining quizes.
          Tim Hunt made changes -
          Status Waiting for peer review [ 10012 ] Waiting for integration review [ 10010 ]
          Fix Version/s 2.1.6 [ 12052 ]
          Fix Version/s 2.2.3 [ 12053 ]
          Fix Version/s 2.3 [ 10657 ]
          Fix Version/s DEV backlog [ 10464 ]
          Sam Hemelryk made changes -
          Currently in integration Yes [ 10041 ]
          Dan Poltawski made changes -
          Status Waiting for integration review [ 10010 ] Integration review in progress [ 10004 ]
          Integrator poltawski
          Dan Poltawski made changes -
          Status Integration review in progress [ 10004 ] Waiting for integration review [ 10010 ]
          Dan Poltawski made changes -
          Link This issue testing discovered MDL-32453 [ MDL-32453 ]
          Eric Merrill made changes -
          Testing Instructions Moodle 1.9 or 2.0 site with quiz attempts.

          Place 2.1, 2.2 or master code in place - but do not run upgrade yet!
          Create admin/tool/qeupgradehelper/partialupgrade.php (2.1 path is local/qeupgradehelper/partialupgrade.php), with the code:
          {code}
          <?php
          function tool_qeupgradehelper_get_quizzes_to_upgrade() {
              return array();
          }
          {code}
          This will cause the question attempt upgrade to not execute.

          Run the Moodle system upgrade.

          now run (via command line):
          sudo -u www-data /usr/bin/php admin/tool/qeupgradehelper/cliupgrade.php -h
          or (for 2.1)
          sudo -u www-data /usr/bin/php local/qeupgradehelper/cliupgrade.php -h

          note that www-data is the user of the webprocess on your system - it may be something else, like httpd or apache, the path to php may also vary.

          From there you can try different flags, -t=x to process for x seconds (note it allows the current quiz to finish, so it will likely run longer than x seconds), -c=n to process n quizes, or --quiz=quizid to process quizid.

          -t and -c can be used together, the first to be reached causes a stop.

          No flags will cause the system to complete all remaining quizes.
          Moodle 1.9 or 2.0 site with quiz attempts.

          Place 2.1, 2.2 or master code in place - but do not run upgrade yet!
          Create admin/tool/qeupgradehelper/partialupgrade.php (2.1 path is local/qeupgradehelper/partialupgrade.php), with the code:
          {code}
          <?php
          function tool_qeupgradehelper_get_quizzes_to_upgrade() {
              return array();
          }
          {code}
          This will cause the question attempt upgrade to not execute.

          Run the Moodle system upgrade.

          now run (via command line):
          sudo -u www-data /usr/bin/php admin/tool/qeupgradehelper/cli/convert.php -h
          or (for 2.1)
          sudo -u www-data /usr/bin/php local/qeupgradehelper/cli/convert.php -h

          note that www-data is the user of the webprocess on your system - it may be something else, like httpd or apache, the path to php may also vary.

          From there you can try different flags, -t=x to process for x seconds (note it allows the current quiz to finish, so it will likely run longer than x seconds), -c=n to process n quizes, or --quiz=quizid to process quizid.

          -t and -c can be used together, the first to be reached causes a stop.

          No flags will cause the system to complete all remaining quizes.
          Dan Poltawski made changes -
          Status Waiting for integration review [ 10010 ] Integration review in progress [ 10004 ]
          Dan Poltawski made changes -
          Status Integration review in progress [ 10004 ] Waiting for testing [ 10005 ]
          Fix Version/s 2.3 [ 10657 ]
          Michael de Raadt made changes -
          Tester ankit_frenz
          Adrian Greeve made changes -
          Tester ankit_frenz abgreeve
          Adrian Greeve made changes -
          Status Waiting for testing [ 10005 ] Testing in progress [ 10011 ]
          Adrian Greeve made changes -
          Status Testing in progress [ 10011 ] Tested [ 10006 ]
          Dan Poltawski made changes -
          Status Tested [ 10006 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Currently in integration Yes [ 10041 ]
          Dan Poltawski made changes -
          Integration date 19/Apr/12

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: