Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Calculated question 1.7 bug solving proposal: Difference between revisions

From MoodleDocs
(This page will not be migrated to new devdocs)
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page will describe the various improvements and bugs solving that are being planned for 1.7 release.
{{Template:WillNotMigrate}}
I almost suceed in developping a "cloze" version of the calculated question with a lot of interesting features.
However the actual calculated qusetion needs more basic improvements or bug solving.
I will list here the order in which I propose to solve them.
I have already a working solution for most of the following items although each of them need to be tested before porting in the Moodle code.
==Management of datasets shareable over a category==
===Bad choice of data item number when generating a question [http://tracker.moodle.org/browse/MDL-6777 MDL-6777]===
The calculated question allow to define datasets variable (i.e. {a}) that could be common to questions from the same category.
This NEVER work correctly because you can define a common variable say {b} in question 1 , create say 6 data items.
Create a question 2 that will use the same common {b} in another equation (ex. {cb}+{c}.
You then create a number of datasets for example 2 dataitems so question 2 will have 2 new {c} data items and will use 2 {b} common dataitems
When you will attempt question 2, the actual code will choose the data item number between 6 and 1 so most often the question will retrun with an error. There is a solution and with some simple testing it could be coded in 1.7, 1.6 and even 1.5 (with change in the table names (i.e. question_datasets to quiz_question_datasets ).
=== Adding a table showing the available datasets in the category.===
There is no place where this information is available, you just need to memorize it!
This table should be shown in the 3 steps
*Step1 When you write the question and equations
*Step2 When you decide to use or not a shareable dataset
*Step3 When you add data items, the table showing you the number of dataitems already in the shareable datasets that you used.
The first proposal diplay all the shareable datasets in the category but we could restrict to the one used by the question in the step3.
 
==Coding a more general solution to moving questions ot another category.==
Actually ( up to 1.7 HEAD moving questions to another category is done in showbank.php.
See [[Calculated_question_development#Moving_calculated_questions_to_another_category]].
 
This apply also to other complex questiontypes like cloze (i.e. multianswer) type.
 
==Creating a cloze version of calculated question==
The actual prototype allows to edit up to 5 subquestions as illustrated by this prewiew[http://www.chimie.uqam.ca/images/first.jpg]
 
==Creating a  subquestions interface in the actual cloze question following the work on  calculated question cloze version==

Latest revision as of 14:05, 3 May 2024


Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable.