Questionnaire: Drag and Drop "Sorting" question#440
Conversation
6556148 to
9fdb422
Compare
|
Hi @mchurchward I have rebased the code. Could you review this PR? Thanks. |
mchurchward
left a comment
There was a problem hiding this comment.
Hi. Thanks for this... some review comments:
- Is the new response table necessary? It looks like it could use the standard "questionnaire_response_text" table.
- What is the purpose of the new "mobile_questionnaire_init" function in the mobile.php class?
- Can you explain the changes made to "db/mobile.php"?
- It appears you have replaced the "styles_app.css" with the new "mobile_css.php" file. Given that, should the "styles_app.css" be deleted?
- Can the "questionnaire_prep_answer_sort_question" function in locallib be refactored into one of the classes? Maybe the specific response class?
- Can you add the new question type to the unit test for csv exporting?
a5ff9a1 to
f2591b0
Compare
c3b22b7 to
e6f0e4d
Compare
|
Hi @mchurchward, I updated the code.
Yes, because we store a string example "1,2,3" which are sorting choices. And later we can transform it into array, so it has different behavior from questionnaire_response_text.
This is used for mobile app. It called the JS file: appjs/latest/mobile_view_activity.js. And sadly, we did not support for ionic 3 yet.
The changes we made in this file is we called the PHP method mobile_questionnaire_init (point 2).
Thanks for correct me. I added some code into styles_app.css and removed mobile.css.
Thanks for your suggestion. I moved all sort methods from locallib to responsetype\sorting.
Of course. I added some UTs. Could you please review the code again? Many thanks |
|
Cannot test and review because this PR must be re-based against current MOODLE_400_STABLE first. |
…s. (PoetOS#449) * Resized the monologo.svg and png to 24x24 px (PoetOS#477) * Fixing issues from plugins database checks (PoetOS#483) * Removing illegal console commands. Script may not be needed. * Fixing illegal line length. * Fixing docblocks and unused variables. * Fixing css spaces. * Adding a true return. * Fixing JSON context. * Allow localized answer options to be displayed correctly in conditions. --------- Co-authored-by: FelixDiLenarda <92793568+FelixDiLenarda@users.noreply.github.com> Co-authored-by: Mike Churchward <mike.churchward@poetopensource.org>
* The text editor should be programmatically associated with the question Co-authored-by: toanlam <toanlamt1@nashtechglobal.com>
…iated with the labels and the slider should be programmatically associated with the question (PoetOS#495) * Questionnaire: More meaningful error than nopermissions (PoetOS#488) Co-authored-by: Emanoil Manoylov <em22699@open.ac.uk> * Questionnaire\Accessibility\Slider: The slider values should be associated with the labels #674064 --------- Co-authored-by: emanoylov <80328987+emanoylov@users.noreply.github.com> Co-authored-by: Emanoil Manoylov <em22699@open.ac.uk> Co-authored-by: tai.letan <tlt84@open.ac.uk>
…lly associated caption (PoetOS#497) * Questionnaire: More meaningful error than nopermissions (PoetOS#488) Co-authored-by: Emanoil Manoylov <em22699@open.ac.uk> * Questionnaire\Accessibility\Rate: table does not have a programmatically associated caption --------- Co-authored-by: emanoylov <80328987+emanoylov@users.noreply.github.com> Co-authored-by: Emanoil Manoylov <em22699@open.ac.uk> Co-authored-by: lamtranb <ltb58@open.ac.uk>
…y associated with field #672028 (PoetOS#496) Co-authored-by: tai.letan <tlt84@open.ac.uk>
|
I have already rebased this with MOODLE_401_STABLE. |
|
For whatever reason, there are still merge conflicts that need to be resolved. This is usually due to needing rebasing. |
…are not accessible (PoetOS#505) Co-authored-by: lamtranb <ltb58@open.ac.uk>
* now using core_external\external_api - fixes PoetOS#502 * using valid $required parameter VALUE_REQUIRED - fixes PoetOS#507 --------- Co-authored-by: Matthias Opitz <m.opitz@ucl.ac.uk>
|
I have already rebased this with MOODLE_401_STABLE. |
|
Dear @tailetan , this branch has conflicts again. Could you please resolve it? |
|
@lamtranb, I've just rebased the latest code. Thank you |
Hi,
We are from the Open University and would like to do this change:
Create a new question type Drag and Drop "Sorting".
Could you please review this commit and inform for any issue?
Thanks.