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

Сlass question_qtype_attempt_updater doesn't have PHPDoc comments, which almost block upgrading a sites using 3d party question types

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1.2
    • Fix Version/s: STABLE backlog
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide

      Read comments in question/engine/upgrade/upgradelib.php on class question_qtype_attempt_updater and on http://docs.moodle.org/dev/Developing_a_Question_Type#Converting_a_Moodle_2.0_question_type and try to write question type upgrader using them for core question type, then compare that upgrader with the one actually existing there. Repeat till you could write it correctly.

      Show
      Read comments in question/engine/upgrade/upgradelib.php on class question_qtype_attempt_updater and on http://docs.moodle.org/dev/Developing_a_Question_Type#Converting_a_Moodle_2.0_question_type and try to write question type upgrader using them for core question type, then compare that upgrader with the one actually existing there. Repeat till you could write it correctly.
    • Workaround:
      Hide

      Delete all you 3d party question types with it's questions or fire all you students and start working with Moodle 2.1 from a clear page.

      Show
      Delete all you 3d party question types with it's questions or fire all you students and start working with Moodle 2.1 from a clear page.
    • Affected Branches:
      MOODLE_21_STABLE

      Description

      Сlass question_qtype_attempt_updater is an abstract class, which is supposed to be inherited by question type authors and contains some code to upgrade attempts. No wiki page on this also.

      It really should have good PHPDoc comments, especially on abstract functions. And probably should be mentioned on http://docs.moodle.org/dev/Developing_a_Question_Type#Converting_a_Moodle_2.0_question_type too.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            oa_sychev Oleg Sychev
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: