Details

    • Type: Sub-task Sub-task
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.7, 2.1
    • Fix Version/s: DEV backlog
    • Component/s: Questions
    • Labels:
    • Affected Branches:
      MOODLE_17_STABLE, MOODLE_21_STABLE
    • Rank:
      1585

      Description

      New question types cannot be made available to the multianswer question types without hacking it a lot.

        Activity

        Hide
        Pierre Pichet added a comment -

        Part of this is because all the normal grading is done under the hypothesis that there is only one good response so we can use the [''] array element to stock it, test it etc.
        Multichoice multianswer solve the problem in encoding the responses.
        I have solved it also for the new multicalculated question with the additional problem of having multiple questions that can be themselves Multichoice multianswer question.
        I will try so find a more genral solution so that we could get code rules for new plugs-ins that could be themselves multiquestion ones.

        Show
        Pierre Pichet added a comment - Part of this is because all the normal grading is done under the hypothesis that there is only one good response so we can use the [''] array element to stock it, test it etc. Multichoice multianswer solve the problem in encoding the responses. I have solved it also for the new multicalculated question with the additional problem of having multiple questions that can be themselves Multichoice multianswer question. I will try so find a more genral solution so that we could get code rules for new plugs-ins that could be themselves multiquestion ones.
        Hide
        Tim Hunt added a comment -

        Just to note that there is still no fix for this. It is a hard problem.

        Suggested designs for a solution, or even a working proof-of-concept, would be gratefully received.

        Show
        Tim Hunt added a comment - Just to note that there is still no fix for this. It is a hard problem. Suggested designs for a solution, or even a working proof-of-concept, would be gratefully received.
        Hide
        Joseph Rézeau added a comment -

        BUMP. Ever since I created my REGEXP question type (based on SHORTANSWER) I have regretted that it is not possible to "plug" it into the multianswer question type.
        Unfortunately I have no solution to offer, I can only continue to wish that a solution can be found.
        Joseph

        Show
        Joseph Rézeau added a comment - BUMP. Ever since I created my REGEXP question type (based on SHORTANSWER) I have regretted that it is not possible to "plug" it into the multianswer question type. Unfortunately I have no solution to offer, I can only continue to wish that a solution can be found. Joseph
        Hide
        Jean-Michel Vedrine added a comment - - edited

        Hello Tim, Pierre and Joseph,
        I think that maybe we can look at this issue again given the work done by Jamie Pratt for the combined question type (see https://github.com/jamiepratt/moodle-qtype_combined ).
        Could multianswer use exactly the same "combinable" API created by Jamie ?
        I don't really know the answer but I am quite sure at least part of it apply to multianswer too.
        My plan is:

        • verify that I can make Joseph's regexp combinable (this will also helps me to get a better grip on Jamie's API)
        • next summer I will try to use the same API for multianswer.

        Of course someone could object that maybe this is a waste of time given how much friendly is creating a combined question compared to creating a multianswer question. But multianswer is in core and, I think, will stay here in the near future.

        Show
        Jean-Michel Vedrine added a comment - - edited Hello Tim, Pierre and Joseph, I think that maybe we can look at this issue again given the work done by Jamie Pratt for the combined question type (see https://github.com/jamiepratt/moodle-qtype_combined ). Could multianswer use exactly the same "combinable" API created by Jamie ? I don't really know the answer but I am quite sure at least part of it apply to multianswer too. My plan is: verify that I can make Joseph's regexp combinable (this will also helps me to get a better grip on Jamie's API) next summer I will try to use the same API for multianswer. Of course someone could object that maybe this is a waste of time given how much friendly is creating a combined question compared to creating a multianswer question. But multianswer is in core and, I think, will stay here in the near future.
        Hide
        Tim Hunt added a comment -

        When I was discussing combined question type with Jamie, I had this bug in the back of my mind. I was hoping that our approach would work here as well, when someone had the time to try it. So, if you want to look at this in future Jean-Michel, that would be great!

        Show
        Tim Hunt added a comment - When I was discussing combined question type with Jamie, I had this bug in the back of my mind. I was hoping that our approach would work here as well, when someone had the time to try it. So, if you want to look at this in future Jean-Michel, that would be great!
        Hide
        Pierre Pichet added a comment -

        Great news Jean-Michel

        Show
        Pierre Pichet added a comment - Great news Jean-Michel
        Hide
        Joseph Rézeau added a comment -

        Hi Jean-Michel,
        That's very good news. And I don't forget that you were quite helpful when I originally created the REGEXP question type. I am quite willing to help with testing your project at any time of advancement, of course.
        Joseph

        Show
        Joseph Rézeau added a comment - Hi Jean-Michel, That's very good news. And I don't forget that you were quite helpful when I originally created the REGEXP question type. I am quite willing to help with testing your project at any time of advancement, of course. Joseph

          People

          • Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated: