Page MenuHomePhabricator

Add ability for question positions to be shuffled in backend
Open, MediumPublic

Description

It might make sense to have an option that the questions be shuffled in a new position with each new page load.

We already have a "shuffle" parameter, but this just adds a shuffle button. I'm honestly not sure what the point of it is :).

Currently shuffle= none removes the shuffle button. We should allow

<quiz display="simple" shufflequestions="true">
</quiz>

To shuffle the questions with each page load.

This param should respect the shuffle control tags.

Idea partially from: https://www.mediawiki.org/wiki/Extension_talk:Quiz#Make_printable_paper_copies_feasible_using_.22print.22_option_for_in-class_testing

Event Timeline

Mvolz created this task.Aug 21 2017, 11:49 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 21 2017, 11:49 AM
Mvolz triaged this task as Medium priority.Aug 21 2017, 11:50 AM
Mvolz added a subscriber: Reedy.

Currently shuffle button is used to shuffle the questions.

Do we remove the shuffle that is done on JS end ?

shufflequestions is trying to do what is already done by shuffle parameter.

We can have automatic shuffle for pageload by JS itself without using the shuffle button.

Currently shuffle button is used to shuffle the questions.

Do we remove the shuffle that is done on JS end ?

No.

shufflequestions is trying to do what is already done by shuffle parameter.

We can have automatic shuffle for pageload by JS itself without using the shuffle button.

We could, but we should also have a non-JS fallback as well.

Wouldn't it be confusing to have shuffle, shufflequestions and shuffleanswers ?

shuffle and shufflequestions do the same thing and JS is currently enabled on all devices.

I think we should keep shuffle as it is and maybe combine shuffleanswer with it or add shuffleanswer as new parameter like we did and handle it on backend.

Mvolz added a comment.Aug 24 2017, 9:13 AM

Wouldn't it be confusing to have shuffle, shufflequestions and shuffleanswers ?

shuffle and shufflequestions do the same thing and JS is currently enabled on all devices.

I think we should keep shuffle as it is and maybe combine shuffleanswer with it or add shuffleanswer as new parameter like we did and handle it on backend.

I think it is confusing to have shuffle because it is ambigous; what I suggesting was that we make shuffle an alias for shufflequestions, and continue to allow its useage for backwards compatibility, but that we use shufflequestions in the documentation and deprecate the old usage. But we could just stick to using shuffle for now, that's fine.

Maybe a first pass we should just use the JS and pass

shuffle="auto"

To do it automatically?

Shuffle auto for questions shuffling using JS ?
But isn't this task for shuffling of proposals/answers ?

Restricted Application added a subscriber: jeblad. · View Herald TranscriptAug 25 2017, 7:52 AM

Shuffle auto for questions shuffling using JS ?
But isn't this task for shuffling of proposals/answers ?

No, that's T170799.

Ok
We can have auto shuffling using Js instead of the shuffle buttons if that is required .

jeblad removed a subscriber: jeblad.Aug 25 2017, 9:22 PM
Aklapper removed Harjotsingh as the assignee of this task.Jun 19 2020, 4:20 PM
Aklapper added a subscriber: Harjotsingh.

This task has been assigned to the same task owner for more than two years. Resetting task assignee due to inactivity, to decrease task cookie-licking and to get a slightly more realistic overview of plans. Please feel free to assign this task to yourself again if you still realistically work or plan to work on this task - it would be welcome!

For tips how to manage individual work in Phabricator (noisy notifications, lists of task, etc.), see https://phabricator.wikimedia.org/T228575#6237124 for available options.
(For the records, two emails were sent to assignee addresses before resetting assignees. See T228575 for more info and for potential feedback. Thanks!)