Details

    • Type: New Feature
    • Status: Closed
    • Priority: 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:

      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.

        Gliffy Diagrams

          Issue Links

            Activity

            emerrill Eric Merrill created issue -
            emerrill Eric Merrill made changes -
            emerrill Eric Merrill made changes -
            Issue Type Bug [ 1 ] New Feature [ 2 ]
            Fix Version/s DEV backlog [ 10464 ]
            timhunt Tim Hunt made changes -
            Peer reviewer timhunt
            Labels triaged
            Assignee Tim Hunt [ timhunt ] Eric Merrill [ emerrill ]
            emerrill Eric Merrill made changes -
            Status Open [ 1 ] Waiting for peer review [ 10012 ]
            emerrill 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.
            emerrill 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.
            timhunt 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 ]
            samhemelryk Sam Hemelryk made changes -
            Currently in integration Yes [ 10041 ]
            poltawski Dan Poltawski made changes -
            Status Waiting for integration review [ 10010 ] Integration review in progress [ 10004 ]
            Integrator poltawski
            poltawski Dan Poltawski made changes -
            Status Integration review in progress [ 10004 ] Waiting for integration review [ 10010 ]
            poltawski Dan Poltawski made changes -
            Link This issue testing discovered MDL-32453 [ MDL-32453 ]
            emerrill 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.
            poltawski Dan Poltawski made changes -
            Status Waiting for integration review [ 10010 ] Integration review in progress [ 10004 ]
            poltawski Dan Poltawski made changes -
            Status Integration review in progress [ 10004 ] Waiting for testing [ 10005 ]
            Fix Version/s 2.3 [ 10657 ]
            salvetore Michael de Raadt made changes -
            Tester ankit_frenz
            abgreeve Adrian Greeve made changes -
            Tester ankit_frenz abgreeve
            abgreeve Adrian Greeve made changes -
            Status Waiting for testing [ 10005 ] Testing in progress [ 10011 ]
            abgreeve Adrian Greeve made changes -
            Status Testing in progress [ 10011 ] Tested [ 10006 ]
            poltawski Dan Poltawski made changes -
            Status Tested [ 10006 ] Closed [ 6 ]
            Resolution Fixed [ 1 ]
            Currently in integration Yes [ 10041 ]
            poltawski 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:
                  Fix Release Date:
                  14/May/12