4640 Commits

Author SHA1 Message Date
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
Eloy Lafuente (stronk7)
433212a33e Merge branch 'MDL-72093-master' of git://github.com/mihailges/moodle 2021-09-16 00:32:47 +02:00
Eloy Lafuente (stronk7)
9f9fe79c26 MDL-72589 behat: Add @skip_chrome_zerosize to failing scenarios
All the scenarios failing with Chrome zero-size errors are
getting the @skip_chrome_zerosize to be able to keep them apart from
regular runs. See MDL-71108 for more information about
that error.

They will be run by another job, specifically using that tag to
keep them failing and under control.
2021-09-15 20:25:11 +02:00
Marie-Eve Lévesque
689c9961e5 MDL-71785 core_quiz: Empty quiz section name behaves like new page 2021-09-14 15:22:48 -04:00
Mihail Geshoski
7d821080f0 MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
Tien Nguyen
95a82a9f2e MDL-71961 Quiz: Disable quiz navigation buttons when files are uploading 2021-09-13 17:31:17 +07:00
Huong Nguyen
af4fb733ee MDL-71797 quiz: Improve the checks when fetching user's attempts 2021-09-07 09:04:23 +02:00
Guillermo Gomez
fb10b36c04 MDL-71585 qbank_managecategories: Add managecategories to core
This implementation will introduce a qbank plugin "managecategories"
which will add the question categories feature in the question bank view
by replacing the core classes. Having this plugin will give users
the flexibility of enabling or disabling the category tab.
2021-09-03 09:41:18 +10:00
Sara Arjona
af6b9bcc4f Merge branch 'MDL-72137-master' of https://github.com/nguyenphuctien/moodle 2021-08-31 13:25:48 +02:00
Andrew Nicols
ed0700c16a Merge branch 'MDL-72271' of https://github.com/larsbonczek/moodle 2021-08-26 11:42:04 +08:00
Jun Pataleta
4e75e73cb5 Merge branch 'primary_secondary_nav' of https://github.com/Chocolate-lightning/moodle 2021-08-25 10:42:57 +08:00
Peter Dias
dfefc86393 MDL-72032 core: Add roles to items
- Part of: MDL-69588
2021-08-23 17:47:22 +08:00
Tien Nguyen
dd6fd520e3 MDL-72137 Quiz: Quiz submission email notification update
Quiz submission notifications: separate out User versus System
2021-08-23 15:38:33 +07:00
Andrew Nicols
c79d58a50b MDL-71209 behat: Fix behat for new changes
Co-authored-by: Ilya Tregubov <ilya@moodle.com>
2021-08-20 16:49:06 +02:00
safatshahin
dfed4fd040 MDL-71516 core_question: Qbank api implementation
This commit implements the qbank api so that any plugin
can implement its own question bank. This api currently
works parallely with the moodle core classes and the
added qbank in the core, means the moment a plugin
is installed, that object is replaced with the object
from the plugin instead of core, which means the api
has flexibility till the plugins are integrated and the
plugins can be integrated in any order.

All the old classes are still there and not deprecated
as there is a different tracker for the changes to the
quiz and another tracker for class deprecation and
class renaming. Core question units tests are pointing
to the new api structure but the classes are pointing
to the location related to the plugin availability.

Co-Authored-By: Luca Bösch <luca.boesch@bfh.ch>
Co-Authored-By: Guillermo Gomez Arias <guillermogomez@catalyst-au.net>

one more array fix
2021-08-17 18:57:31 +10:00
Andrew Nicols
530322e2ce MDL-69918 core: Update uses of legacy form change checker 2021-08-10 23:54:01 +08:00
Lars Bonczek
ff1199cc5c MDL-72271 mod_quiz: fix secure_window close function 2021-08-10 11:51:33 +02:00