Commit graph

24716 commits

Author SHA1 Message Date
Jake Dallimore
3cabbfd00f
MDL-78916 mod_lti: update behat tests to test new instance form 2023-09-15 10:47:10 +08:00
Jake Dallimore
630066c4f5
MDL-78916 mod_lti: update add/edit instance form to new design
This form layout applies when adding or editing any instance which is
based on a preconfigured tool (course or site). That is now the only
supported way of configuring a mod_lti instance.
2023-09-15 10:47:10 +08:00
Jake Dallimore
bf3f13fea6
MDL-78916 mod_lti: refactor mod_form, separating legacy definition
Move all the logic dealing with display of the legacy instance form,
(which displays those frozen, manually-configured instances) into a
method of its own for clarity.
2023-09-13 17:37:06 +08:00
Jake Dallimore
d372dba199
Merge branch 'MDL-78960-master' of https://github.com/call-learning/moodle 2023-09-12 10:52:35 +08:00
Laurent David
6729c4b955 MDL-78960 mod_bigbluebuttonbn: Add instanceid as action parameter
* In the bigbluebutton_proxy::action_url call to submodules, we need a way to get
the instance this is called upon so we can have information (parameters) for
this instance settings (like the new settings introduced by subplugins).
* Add the optional instanceid parameter in join/create/getMeetingInfo calls
2023-09-11 18:49:09 +02:00
Jun Pataleta
1c892fb6d9
Merge branch 'MDL-78324-master-7' of https://github.com/andrewnicols/moodle 2023-09-11 16:29:56 +08:00
Ilya Tregubov
787455198b
MDL-78909 mod_lti: Add indexes in upgrade.php 2023-09-11 16:03:53 +08:00
Ilya Tregubov
faa491fe3b
MDL-78909 mod_lti: Fix upgrade.php for lti. 2023-09-11 13:17:08 +08:00
Jake Dallimore
40eb76014a
Merge branch 'MDL-78909-master-2' of https://github.com/ilyatregubov/moodle 2023-09-11 12:32:57 +08:00
Ilya Tregubov
799487a3dd
Merge branch 'MDL-63539' of https://github.com/danmarsden/moodle 2023-09-11 11:14:48 +08:00
Ilya Tregubov
d1f45f3b0e
Merge branch 'MDL-78474-master' of https://github.com/aydevworks/moodle 2023-09-11 10:54:57 +08:00
Ilya Tregubov
ba32de5281
MDL-78909 mod_lti: Show category restriction only for site tools 2023-09-11 10:14:58 +08:00
Ilya Tregubov
3eceb14342
MDL-78909 mod_lti: Fix for restrict to category. 2023-09-11 10:14:58 +08:00
Ilya Tregubov
f9b1bac756
MDL-78909 mod_lti: Support coursevisibility override for courses 2023-09-11 10:14:58 +08:00
Andrew Nicols
48bc688ccd
MDL-78324 core: Convert modals to use new static methods
This commit takes all modals which were not using the legacy
ModalFactory.create triggers and migrates them to the new Modal.create
method.
2023-09-09 00:04:11 +08:00
Andrew Nicols
96e32d6f90
MDL-78324 bbb: Switch to SaveCancelPromise
This change removes an unnecessarily complicated Modal instantiation
when an existing helper exists to simplify this approach.
2023-09-09 00:04:03 +08:00
Andrew Nicols
5d9761c655
MDL-78324 mod_survey: Convert validation to esm
This module is converted to ESM in preparation for simplification of
Modal instantiation.
2023-09-09 00:04:03 +08:00
Andrew Nicols
854da2dd70
MDL-78324 mod_quiz: Update modals to stop using factory
This commit includes some simplifications to the way in which some of
the modals are launched and allows us to remove several modules entirely
as they are no longer required following the simplification of the Modal
instantiation.
2023-09-08 23:49:13 +08:00
Ilya Tregubov
71cb542c60
Merge branch 'MDL-71494' of https://github.com/paulholden/moodle 2023-09-08 22:14:34 +08:00
Shamim Rezaie
4ded6f7fb9
Merge branch 'MDL-77545-master' of https://github.com/call-learning/moodle 2023-09-08 22:14:33 +08:00
Andrew Nicols
a5f4b6929a
Merge branch 'MDL-79286' of https://github.com/paulholden/moodle 2023-09-08 22:14:29 +08:00
Jun Pataleta
fdc726d7e4
Merge branch 'MDL-76034-master' of https://github.com/andrewnicols/moodle 2023-09-08 22:14:27 +08:00
Alex Yeung
b690c21eab MDL-78474 mod_label: fix phpunit and behat tests 2023-09-08 12:13:23 +01:00
stemiwe
d73d56f070 MDL-78474 mod_label: include new field for name 2023-09-08 12:08:59 +01:00
Laurent David
0335adeff4 MDL-77545 mod_bigbluebuttonbn: Add form extension
* Add a new way to extend the BigBlueButtonBN form via subplugins
* Allow subplugins to extends information via new tables and use it in
the edit form.
* Add a new cache helping with potential perfomance issues introduced
by recurring calls to find out about associated tables in subplugins.
2023-09-07 17:20:05 +02:00
Laurent David
3d05bc7da3 MDL-77545 mod_bigbluebuttonbn: Refactor get_instances_implementing
* We need a way to either have the classes implementing an interface/abstract
class or create instances.
2023-09-07 17:17:51 +02:00
Paul Holden
b4a7583d58
MDL-79286 mod_quiz: account for users with multiple enrolments.
The quiz override form should account for this, to ensure duplicate
user records don't trigger DML debugging.
2023-09-07 11:33:58 +01:00
Paul Holden
56cd63a8f9
MDL-71494 mod_feedback: final removal of deprecated constructor param. 2023-09-05 09:09:26 +01:00
Andrew Nicols
ba1093c973
Merge branch 'MDL-78865' of https://github.com/danmarsden/moodle 2023-09-05 11:28:30 +08:00
Andrew Nicols
bbfa50946e
Merge branch 'MDL-79253-master' of https://github.com/junpataleta/moodle 2023-09-05 11:25:26 +08:00
Jun Pataleta
9392905d77
MDL-79253 mod_scorm: Require locallib when deleting SCORM instances 2023-09-04 21:24:11 +08:00
Andrew Nicols
c5227b336f
MDL-79248 mod_quiz: Behat scenario interacts incorrectly with select
This test was using the click operator to select an option value, rather
than selecting the value with form field steps.

In addition I found that sometimes the way in which a WS is used to
make the change before a refresh leads to a random failure if the page
navigation happens too slowly.
2023-09-04 11:57:04 +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
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
Ilya Tregubov
d302f0dc01
Merge branch 'MDL-78597-master' of https://github.com/snake/moodle 2023-08-31 08:23:03 +08: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
Jun Pataleta
cc7bc1a553
Merge branch 'MDL-79064-master' of https://github.com/andrewnicols/moodle 2023-08-29 13:32:45 +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
85679c47da
MDL-78597 mod_lti: let content item callbacks obey preconfigured cap
Users without the 'mod/lti:addpreconfiguredinstance' capability won't be
able to see any mod_lti content items in the activity chooser.
Note: this patch doesn't address the underlying locallib method,
lti_get_lti_types_by_course(), which will be addressed elsewhere.
2023-08-29 13:06:48 +08:00