110685 Commits

Author SHA1 Message Date
Ilya Tregubov
c2dcd9ade8
Merge branch 'MDL-79107-master-2' of https://github.com/andrewnicols/moodle 2023-09-01 09:24:30 +08:00
Andrew Nicols
10525085a3
MDL-79107 editor_tiny: Target correct element on editor removal 2023-09-01 09:06:39 +08:00
Andrew Nicols
1ce54ee87e
Merge branch 'MDL-72321_master-squashed' of https://github.com/marxjohnson/moodle 2023-08-31 23:02:35 +08:00
Nathan Nguyen
d9a75f5315 MDL-72321 core: backup/restore filter condition 2023-08-31 15:00:39 +01:00
Nathan Nguyen
e3bd166b3d MDL-72321 mod_quiz: Use new datafilters for random questions 2023-08-31 15:00:39 +01:00
Mark Johnson
823af3a8f1 MDL-72321 core_question: Replace old conditions with new datafilters 2023-08-31 15:00:39 +01:00
Mark Johnson
d2f68abc89 MDL-72321 qbank_usage: Only load javascript if plugin is enabled 2023-08-31 15:00:38 +01:00
Nathan Nguyen
43866217da MDL-72321 qbank_comment: Only initialise javascript if plugin is enabled 2023-08-31 15:00:38 +01:00
Mark Johnson
6f2e91a169 MDL-72321 qbank_bulkmove: Rewrite unit test
This reduces code duplication and removes the dependency on
\core_question\local\bank\view from the test.
2023-08-31 15:00:38 +01:00
Mark Johnson
2e02264945 MDL-72321 core: Support disabled options in form-autocomplete
Autocomplete fields can now include disabled options in the suggestion
list. When calling .enchance() on a select list with disabled options,
those options will be added to the autocomplete suggestions with the
aria-disabled arribute set, and will not be selectable.

Datafilters using the autocomplete element can also hook into this by
including disabled options in their list of values.
2023-08-31 15:00:38 +01:00
Mark Johnson
7091a3210c MDL-72321 core: Allow datafilters to specify a subset of join types
A datafilter can now specify a subset of jointypes that it supports from
the default list of all, any or none. By default all options will be
available, but an individual filter can ovveride this to include just
those options that make sense for the filter. If only one option is
allowed, the select list will be hidden to simplify the UI.
2023-08-31 15:00:37 +01:00
Nathan Nguyen
ef8c11328b MDL-72321 core: Add binary datafilter
This adds a new datafilter type which provides a single binary choice
(for example yes/no).
2023-08-31 15:00:37 +01:00
Jun Pataleta
37aaae3b13
Merge branch 'MDL-79107-master' of https://github.com/junpataleta/moodle 2023-08-31 21:09:56 +08:00
Jun Pataleta
5df9996f60
MDL-79107 qtype_essay: Move non_form_fields.feature under qtype_essay 2023-08-31 20:46:11 +08:00
Andrew Nicols
db23620cdb
MDL-79107 editor_tiny: Inform Behat of field type 2023-08-31 20:36:32 +08:00
Jun Pataleta
2e7b5475a7
Merge branch 'MDL-79017' of https://github.com/paulholden/moodle 2023-08-31 20:32:17 +08:00
Jun Pataleta
a90a00d867
Merge branch 'MDL-77657-master-get_extra_scss_code-wrong-order' of https://github.com/danowar2k/moodle 2023-08-31 17:51:17 +08:00
Sara Arjona
3c831861ec
Merge branch 'MDL-78530-master' of https://github.com/aanabit/moodle 2023-08-31 11:10:17 +02:00
Huong Nguyen
d190ac7889
Merge branch 'MDL-56020-master' of https://github.com/jleyva/moodle 2023-08-31 15:38:50 +07:00
Amaia Anabitarte
4c4e2224e1 MDL-78530 core_completion: Remove $CFG->completiondefault setting 2023-08-31 08:40:24 +02:00
Amaia Anabitarte
1f68fe635f MDL-78530 core_completion: Use site default completion or none
When creating a new activity we should use course level default completion
and site level completion if there is no course level default completion.

For non defined default completion values use COMPLETION_TRACKING_NONE
instead of COMPLETION_TRACKING_MANUAL.
2023-08-31 08:40:24 +02:00
Amaia Anabitarte
ded74e1e65 MDL-78530 core_completion: New default completion behat generator 2023-08-31 08:40:24 +02:00
Huong Nguyen
b61422280c
Merge branch 'MDL-79207-master' of https://github.com/andelacruz/moodle 2023-08-31 12:26:19 +07:00
Huong Nguyen
a784f6186b
Merge branch 'MDL-32278-master' of https://github.com/sammarshallou/moodle 2023-08-31 10:46:41 +07:00
Huong Nguyen
ee45e0cbef
MDL-78907 mod_bigbluebuttonbn: Use the correct parameter type for id 2023-08-31 10:15:47 +07:00
Huong Nguyen
4062dfaafd
Merge branch 'MDL-78907-master' of https://github.com/call-learning/moodle 2023-08-31 10:10:13 +07:00
Angelia Dela Cruz
c792623feb MDL-79207 core_course: Behat coverage for activity and resource deletion 2023-08-31 09:39:38 +08:00
Ilya Tregubov
d302f0dc01
Merge branch 'MDL-78597-master' of https://github.com/snake/moodle 2023-08-31 08:23:03 +08:00
Sara Arjona
2ec4ac7e4a
Merge branch 'MDL-78612-master' of https://github.com/andrewnicols/moodle 2023-08-30 17:55:32 +02:00
Amaia Anabitarte
e37e0c39e8 MDL-78530 core_completion: New site default activity completion page 2023-08-30 17:46:56 +02:00
Andrew Nicols
c85cca3e33
MDL-78612 core: Wrap modal_factory.create in pendingPromise 2023-08-30 12:41:37 +08:00
Sara Arjona
a586bfbd95
Merge branch 'MDL-72359-master' of https://github.com/HuongNV13/moodle 2023-08-29 16:15:36 +02:00
Huong Nguyen
a2866d6833
MDL-72359 core_analytics: Better handling of MAX_TIME
We are limited by both PHP's max int value and DB (cross-db) max int allowed.
We need to use the smallest one
2023-08-29 20:36:58 +07:00
Jake Dallimore
a23abb0538
MDL-78597 mod_lti: fix those tests not using lti generators
The following were added in MDL-69489 and had a few issues, which are
fixed in this patch:
Unit tests:
- were not using the existing generator.
- were making assertions inside a foreach, which doesn't test anything
if the result set returned is empty (error prone).
- were calling setAdminUser() unnecessarily.
Behat tests:
- the restricttocategory.feature file used manual steps to setup site
tools.
2023-08-29 16:14:55 +08:00
Jake Dallimore
c497672778
MDL-78597 mod_lti: add category restriction support to course tools list 2023-08-29 16:14:37 +08:00
Jake Dallimore
7cb2a78626
MDL-78597 mod_lti: add category restriction support to lti generator
This is already supported in lti_add_type, via the lti_coursecategories
config value, so all that's needed is to match the categories by
idnumber and pass through the resulting ids.
2023-08-29 16:14:37 +08:00
Jake Dallimore
5c737525d8
MDL-78597 mod_lti: Add test for manually configured instance editing
This adds a single scenario covering all the expected behavior for those
existing, manually configured tools. It also removes any tests dealing
with creation of manually configured instances, which is not supported
any more.
2023-08-29 16:14:11 +08:00
Jake Dallimore
9914870b7d
MDL-78597 mod_lti: cover creation of course tools using cartridge URLs
This replaces the legacy scenario, which used the '+' on the activity
instance edit form, with a scenario covering the cartridge use on the
new course tools (LTI External tools) edit form.
2023-08-29 16:14:11 +08:00
Jake Dallimore
dfd215cad2
MDL-78597 mod_lti: add cartridge support to course tool generator
Allow the generator to create course tools based on cartridge URLs.
2023-08-29 16:14:11 +08:00
Jake Dallimore
93707d8cf5
MDL-78597 mod_lti: deprecate mod/lti:addmanualinstance and lock config
This change:
- removes all uses of mod/lti:addmanualinstance and deprecates it.
- updates the activity instance edit form, specifically the way it deals
with existing manually-configured instances, removing the ability to
edit tool configuration and adding a notice to the user.
2023-08-29 16:14:11 +08:00
Andrew Nicols
8f9b3e1d52
Merge branch 'master_MDL-79134' of https://github.com/mattporritt/moodle 2023-08-29 13:32:46 +08:00
Ilya Tregubov
b327210cd2
Merge branch 'MDL-78615' of https://github.com/paulholden/moodle 2023-08-29 13:32:46 +08:00
Huong Nguyen
84b62bb1a0
Merge branch 'MDL-72359-master' of https://github.com/andrewnicols/moodle 2023-08-29 13:32:45 +08:00
Jun Pataleta
cc7bc1a553
Merge branch 'MDL-79064-master' of https://github.com/andrewnicols/moodle 2023-08-29 13:32:45 +08:00
Huong Nguyen
11c4a69ea9
Merge branch '78241-master-tiny-recordrtc-fix-availability-conditions' of https://github.com/DSI-Universite-Rennes2/moodle 2023-08-29 13:32:45 +08:00
Andrew Nicols
70f9c1c595
Merge branch 'MDL-78106-master' of https://github.com/kevpercy/moodle 2023-08-29 13:32:44 +08:00
Huong Nguyen
c1e4bae8b6
Merge branch 'MDL-78961' of https://github.com/paulholden/moodle 2023-08-29 13:32:41 +08:00
Jake Dallimore
d8e2067b66
MDL-78597 mod_lti: deprecate lti_get_lti_types_by_course()
This method includes broken legacy behaviour in which the inclusion of
course and site tools could be controlled independently, based on the
capabilities 'mod/lti:addmanualinstance' (to include course tools) and
'mod/lti:addpreconfiguredinstance' (to include site tools). This
behaviour is deprecated in 4.3, so this method is also deprecated. See
the replacement method types_helper::get_lti_types_by_course.
2023-08-29 13:14:15 +08:00
Jake Dallimore
7ca26f1460
MDL-78597 mod_lti: add \mod_lti\local\types_helper class
This will serve as a location to put new tool-type-centric methods.
2023-08-29 13:11:49 +08:00
Jake Dallimore
afa44dd288
MDL-78597 core_course: fix content item tests covering get_all cases
Fixes two tests which use the lti module as an example of a core mod
implementing the 'get_all_content_items' callback. The setup of the mod
in these tests, including course and site tools, needed to be updated
in light of the removal of the 'external tool' content item.
2023-08-29 13:06:48 +08:00