Disable auto quiz revisions

aotu
Hello, The auto creation of a new quiz revision whenever the quiz is changed in any way, is causing big issues for my configuration. I have developed a reporting suite, and a student progress dashboard. Both of which are broken if a quiz is changed after students have completed a lesson I've searched high and low for how to disable this feature, but I can't find the mechanism to do so. Has the auto-quiz-revisioning been hardcoded somewhere? There looks to be a setting in the content type, but changing it causes no impact Many thanks
James Aparicio

Hi aotu,

Hi aotu,

Not all changes in a quiz create a new revision. Only the ones that impact the users taking a quiz. This is harcoded by the quiz module and is required in order to allow users to take the quiz at different times and with diferent settings.

If there was no revision for the quiz, if you removed a question from a quiz for example all the previous users results would be unusable.

I advise you to rethink the way you are doing the reporting suite and student progress instead of trying to change how the quiz module works.

 

Best regards 

aotu

Hi James,

Hi James, Thanks for taking the time to reply, Whilst I understand the logic behind revisions based on addition/removal of questions, creating a new revision when simply a question title/summary is modified seems more destructive than useful. Essentially with functionality as it stands, we're unable to modify even trivial quiz content without having users spread across multiple revisions (making reporting and progress tracking a pain) Please correct me if there's a reason for to prevent this functionality, but as I see it there are two kinds of updates: 'Major' - requires new revision (i.e. adding/removal of a question) 'Minor' (i.e. typo, editing a mistake out of a video slide) which does not effect past results, therefore does not require a revision As I wouldn't intend on making major changes to the structure of a lesson which is in-progress, I'm going to apply the patch below to allow for control over the revisioning for minor changes: https://www.drupal.org/node/1952498 Kind regards, Gavin
James Aparicio

Hi aotu,

Hi aotu,

Keep this thread updated if this patch has required any other changes or if you find any issue with it, so that other users may learn from your experience.

 

Best regards

aotu

Hi James,

Hi James, It looks like I've hit a blocker, is it possible there's something from Opigno overwriting quiz_module settings? The patch I mentioned was included in Quiz core some time ago, however the issue of the Quiz module disregarding the "create new revision" option is still present. Furthermore, there is no 'Revision Information' section/checkbox on the node edit page. https://www.drupal.org/node/1952498 As the Quiz core has been updated to resolve this behaviour, but it's still present in Opigno, could you please provide some guidance as to how I can create a patch for this? I've included a summary of steps below to make the issue a little clearer I'd really appreciate some advice, Many thanks, Gavin ------ To reproduce: Structure > Content type > True/False > Edit In publishing options, uncheck "create new revision" People > Permissions > Admin Allow "manual quiz revisioning" Find a true/false question for editing Make a change 1. A revision is created despite unchecking the box to create a new revision 2. There is no checkbox to control adding a new revision ---- In quiz.module @@653-670, I can print into the statements, but regardless of what the Drupal permission is set to the 'manual quiz revisioning' condition always evaluates to false and the quiz/edit page shows no change. This leads me to wonder if there's an Opigno override somewhere which is controlling the quiz edit page/revision permissions? Thanks for your help Gavin
James Aparicio

Hi aotu,

Hi aotu,

The og_quiz module duplicates, replaces some of the code inside the quiz module. Check where those changes were done in the quiz mode and do the same in the og_quiz.

Best regards