-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questionnaire: Drag and Drop "Sorting" question #440
base: MOODLE_400_STABLE
Are you sure you want to change the base?
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]> Co-authored-by: Mike Churchward <[email protected]>
* The text editor should be programmatically associated with the question Co-authored-by: toanlam <[email protected]>
…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 <[email protected]> * Questionnaire\Accessibility\Slider: The slider values should be associated with the labels #674064 --------- Co-authored-by: emanoylov <[email protected]> Co-authored-by: Emanoil Manoylov <[email protected]> Co-authored-by: tai.letan <[email protected]>
…lly associated caption (PoetOS#497) * Questionnaire: More meaningful error than nopermissions (PoetOS#488) Co-authored-by: Emanoil Manoylov <[email protected]> * Questionnaire\Accessibility\Rate: table does not have a programmatically associated caption --------- Co-authored-by: emanoylov <[email protected]> Co-authored-by: Emanoil Manoylov <[email protected]> Co-authored-by: lamtranb <[email protected]>
…y associated with field #672028 (PoetOS#496) Co-authored-by: tai.letan <[email protected]>
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 <[email protected]>
) Co-authored-by: Emanoil Manoylov <[email protected]>
* now using core_external\external_api - fixes PoetOS#502 * using valid $required parameter VALUE_REQUIRED - fixes PoetOS#507 --------- Co-authored-by: Matthias Opitz <[email protected]>
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.