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

Allow question types to add extra actions to the Question bank edit menu

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Install the latest master branch of https://github.com/moodleou/moodle-qtype_pmatch/.
      2. Go to the question bank in any course, and add a Pattern-match question. Key fields to create a question:
        • Question text: Type frog
        • Answer 1: match(frog)
        • Grade (for answer 1): 100%
      3. Save the question.
      4. Expand the edit menu for the newly created question.
      5. Verify you see the action "Pattern-match testing tool" at the end of the menu.
      6. Verify that selection that action takes you to that tool
      Show
      Install the latest master branch of https://github.com/moodleou/moodle-qtype_pmatch/ . Go to the question bank in any course, and add a Pattern-match question. Key fields to create a question: Question text: Type frog Answer 1: match(frog) Grade (for answer 1): 100% Save the question. Expand the edit menu for the newly created question. Verify you see the action "Pattern-match testing tool" at the end of the menu. Verify that selection that action takes you to that tool
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull Master Branch:

      Description

      Several third-party question types have additional screens that could usefully be added to the Edit menus in the question bank. For example:

      • STACK
        • Question tests & deployed variants
        • Tidy question
      • CodeRunner
        • Question test
      • Pattern-match
        • Question testing tool

      So, it would be good to add a new method to the question_type class to allow the question type to add extra actions to the menu if appropriate.

        Attachments

        1. Confirmed fixed.PNG
          169 kB
          Gladys Basiana
        2. image-2019-11-06-19-37-21-514.png
          19 kB
          Tim Hunt

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Peer reviewer:
              Luca Bösch Luca Bösch
              Integrator:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Tester:
              Gladys Basiana Gladys Basiana
              Participants:
              Component watchers:
              Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Nov/19

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m