4656 Commits

Author SHA1 Message Date
Safat Shahin
63c31c338e MDL-72553 qbank_customfields: Behat fix for mssql and others
This commit implements behat fix for mssql and some other
environments.
2021-12-09 09:22:08 +02:00
Jun Pataleta
107bcc143c Merge branch 'MDL-72090-master' of git://github.com/abgreeve/moodle 2021-12-09 11:17:32 +08:00
abgreeve
fcd4de8639 MDL-72090 navigation: Update to behat feature files for navigation.
This updates feature files to use the new steps to navigate to certain
pages.
2021-12-09 11:13:35 +08:00
Ilya Tregubov
4de7faf7f1 Merge branch 'master_MDL-72553_qbank_quiz' of https://github.com/catalyst/moodle-MDL-70329 2021-12-08 09:58:00 +02:00
Jun Pataleta
29ebc9f153 MDL-71915 mod_quiz: Render add question when user can edit the quiz 2021-12-07 20:37:36 +08:00
Matt Porritt
556e2f1aec MDL-72553 qbank_customfields: Add custom fields for question types
Custom fields can now be added to question types.
Site administrators can configure the custom fields and
filed types available. Teachers and question creators can
then use these fields for extra question metadata when
creating questions. Question creators can control if
the fields are displayed to students when they are
taking a quiz or not.
This features uses the core Moodle custom field API.

Co-Authored-By: Matt Porritt <mattp@catalyst-au.net>
Co-Authored-By: Safat Shahin <safatshahin@catalyst-au.net>
Co-Authored-By: Marc-Alexandre Ghaly <marc-alexandreghaly@catalyst-ca.net>
2021-12-07 18:32:41 +11:00
Jun Pataleta
9b5b9affec Merge branch 'MDL-72870' of https://github.com/paulholden/moodle 2021-12-06 18:43:20 +08:00
Jake Dallimore
1388a8596c Merge branch 'MDL-71915-master-v8' of https://github.com/sharidas/moodle 2021-12-06 13:34:58 +08:00
Sujith Haridasan
1149f255fe MDL-71915 mod_quiz: Update the behat tests
Update the behat tests due to the changes made in UI
for tertiary navigation.
2021-12-06 09:27:58 +05:30
Sujith Haridasan
6ba821dc01 MDL-71915 mod_quiz: Update the tertiary nav
Update the tertiary navigation for this
activity.
2021-12-06 09:27:58 +05:30
Ilya Tregubov
689bf6fc1e Merge branch 'MDL-72112-master' of https://github.com/aanabit/moodle 2021-12-03 15:11:01 +02:00
Sara Arjona
9e4f2a45f8 MDL-72112 admin_presets: Add admin_presets tool 2021-12-03 11:11:37 +01:00
Luca Bösch
ff95ec1150 MDL-73147 questions: remove modulespecificbuttonscontainer class.
Also, in the bulk actions ui this aligns the bulk action button
properly.
2021-11-30 20:53:34 +01:00
Paul Holden
7e3a337500 MDL-72870 mod_quiz: fix attempt navigation button alignment. 2021-11-29 10:47:10 +00:00
Mathew May
b983003e2e MDL-70197 navigation: Remove old navigation elements and migrate behat 2021-11-29 15:47:42 +08:00
Safat Shahin
0805e387b7 MDL-72076 bulk actions ui: Implement bulk actions in qbank API
This implementation will introduce bulk actions qbank
plugins which can grab the selected question and perform
actions according to the selected option from dropdown
in the base view.

Co-Authored-By: Safat Shahin <safatshahin@catalyst-au.net>
Co-Authored-By: Matt Porritt <mattp@catalyst-au.net>
2021-11-22 11:35:21 +11:00
Ilya Tregubov
cffd19b699 Merge branch 'MDL-69496_Master' of https://github.com/1JackBlack1/moodle 2021-11-17 09:01:00 +02:00
PraiseSatan
982d1bb1c8 MDL-69496 quiz: Only validate completion if unlocked
Quiz completion settings are only validated if they are unlocked.
Undefined behaviour in the forms API results in the completion
settings 'require passing grade' and 'completion attempts exhausted'
not being sent to the process options function if completion
settings are locked. This resulted in the completion attempts
exhausted setting being disabled whenever the quiz was saved
as it did not detect the require passing grade setting.
This changes the behaviour so that validation is only performed
if the completion settings are unlocked.
A behat test is included to ensure the setting does not change.
2021-11-17 09:11:29 +11:00
Ilya Tregubov
5efc19da4c Merge branch 'MDL-72612' of https://github.com/mkassaei/moodle 2021-11-15 10:15:46 +02:00
Mahmoud Kassaei
2bd34edc2d MDL-72612 Custom user field support: Quiz report grading 2021-11-12 15:29:50 +00:00
Ilya Tregubov
3da8ea4699 Merge branch 'MDL-71902-add-site-level-settings-enforcement-for-browsersecurity-settings' of https://github.com/keevan/moodle 2021-11-11 08:35:32 +02:00
Kevin Pham
4141f88361 MDL-71902 mod_quiz: Add locked flag option for quiz options
- Applies locked settings to many other quiz general options.
  For example, allows an admin to lock the browsersecurity level so it
  cannot be changed at an instance level, and will apply the 'default'
  option (which is currently None).
2021-11-11 10:36:14 +11:00
Eloy Lafuente (stronk7)
63b2bed3f0 MDL-72950 phpunit: Remove skipped tests now that the issue is fixed.
The problem (coincidence of contexts) was detected when running
oracle phpunit tests, so we skipped the tests as part of MDL-72743.

Now, with the problem fixed (previous commit), we can bring back
that test.
2021-11-05 18:52:18 +01:00
Ilya Tregubov
b433583bc3 Merge branch 'MDL-71761' of https://github.com/timhunt/moodle 2021-11-04 13:38:34 +02:00
Eloy Lafuente (stronk7)
a23cc25ccd MDL-72743 phpunit: Skip test until MDL-72950 is fixed
It's good to keep the test because it's not easy to
reproduce the issue to be fixed. Part of the fix will
be to remove this skip.
2021-10-29 13:36:36 +02:00
Eloy Lafuente (stronk7)
a02a5cb90a MDL-72743 tests: tidy up the new test with NS/name/covers
Ideally any new test should be using a class name matching
the file name, and to use namespace when clearly belonging to
a component (sub-namespace also allowed for better accuracy).

And, also, adding a @covers label to indicate which class
(preferred, method is also possible) is being covered with the test.
2021-10-28 12:56:00 +02:00
Eloy Lafuente (stronk7)
49fc1fa292 Merge branch 'MDL-72743' of git://github.com/paulholden/moodle 2021-10-28 12:50:01 +02:00
Andrew Nicols
00483c9419 MDL-72827 quiz: Remove pause step from behat scenario 2021-10-28 14:51:34 +08:00
Andrew Nicols
f80a31b8b6 Merge branch 'MDL-72827-master' of git://github.com/peterRd/moodle 2021-10-28 11:51:29 +08:00
Peter Dias
44d06f8218 MDL-72827 quiz: Expand completion behat tests
- Update the behat tests to more precisely check the state in the completion report.
- Check combination of completion conditions with passing grade
2021-10-28 11:38:10 +08:00
Peter Dias
cb2afc668d MDL-72827 completion: Revert completion flow logic
- Reverts the custom flow logic introduced in the 52206
- Expand unit tests to cover different grade based completion settings
2021-10-28 11:38:10 +08:00
Mahmoud Kassaei
e799e8a1ba MDL-71761 Quiz: Show custom fields for user overrides
Note, this was a joint effort between Mahmoud & Tim.
2021-10-22 13:48:07 +01:00
Paul Holden
9829fc5b99 MDL-72743 mod_quiz: verify user mapping prior to restoring attempts. 2021-10-21 08:26:50 +01:00
Andrew Nicols
349312143d MDL-72013 js: Fix jsdocs to meet stricter eslint 2021-10-21 13:28:00 +08:00
Andrew Nicols
05e6d69e4c Merge branch 'MDL-72507-master' of https://github.com/NashTechOpenUniversity/moodle 2021-10-21 12:56:23 +08:00
Ilya Tregubov
ce8daac9cf MDL-52456 quiz: Fix illegal white space. 2021-10-20 11:51:12 +02:00
Ilya Tregubov
282c4a124a Merge branch 'MDL-52456-master' of https://github.com/NashTechOpenUniversity/moodle 2021-10-20 11:33:14 +02:00
Thong Bui
46b88325ed MDL-52456 Quiz: notification message for students.
Notification message for students after questions have been manually graded.
2021-10-19 20:06:16 +07:00
Thong Bui
3c19cbbb18 MDL-72507 Quiz: Quiz auto-save does not detect uploaded files 2021-10-19 16:10:15 +07:00
Andrew Nicols
0869496eb8 MDL-71785 mod_quiz: Correct string as per reviewer feedback 2021-10-19 11:19:54 +08:00
Andrew Nicols
da98ed6ea2 Merge branch 'MDL-71785_master' of https://github.com/StudiUM/moodle 2021-10-19 11:19:06 +08:00
Peter Dias
7ab2d7d7bd MDL-52206 quiz: Integration bug fixes 2021-10-08 07:33:05 +02:00
abgreeve
24eac0b051 Merge branch 'MDL-72543-master' of git://github.com/lameze/moodle 2021-10-07 15:11:12 +08:00
Simey Lameze
9afd980b4e MDL-72543 block_timeline: change the display of event names 2021-10-07 14:05:34 +08:00
Ilya Tregubov
b4675942ce Merge branch 'MDL-52206-master-rebased' of git://github.com/peterRd/moodle 2021-10-07 12:55:12 +07:00
Peter Dias
2c7893cf9f MDL-52206 core: Update new activity_custom_completion
Update the custom_completion classes to accept the new completion
criteria
2021-10-04 19:45:47 +08:00
Peter Dias
d975251813 MDL-52206 completion: New criteria to handle behaviour between modules 2021-10-04 19:45:45 +08:00
Peter Dias
cd52b46e89 MDL-52206 quiz: Remove completionpass completion from quiz
AMOS BEGIN
 MOV [completionpass,mod_quiz],[completionpassgrade,core_completion]
 MOV [completionpassdesc,mod_quiz],[completionpassgrade_desc,core_completion]
 MOV [completionpass_help,mod_quiz],[completionpassgrade_help,core_completion]
AMOS END
2021-10-04 19:44:03 +08:00
Safat Shahin
f9fc355ec7 MDL-71679 mod_quiz: Updates for new qbank api
This implementation will introduct changes to
the mod_quiz to implement the new qbank api
for view. Major changes are introduced in
the custom view and also all the legacy points
to the old qbank are changed to qbank plugins
where needed. It also deprecated and deletes
classes and scripts which were kept not to
break mod_quiz for the new api implementation.
2021-10-04 15:44:25 +11:00
Jun Pataleta
385438b463 Merge branch 'MDL-72589' of https://github.com/stronk7/moodle 2021-09-16 09:46:56 +08:00