Commit graph

99879 commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
98254ccd1a MDL-70276 github actions: First cut, phpunit and grunt checks
First working version, supports phpunit (using build matrix):

- php72 (lowest), running mysql.
- php74 (highest), running postgres.

Also verifies that the branch has been "gruntified" and there
isn't any missing change (build js/css files).

TODO: Verify the remaining checks currently in .travis.yml, namely:
 - CITEST
 - Add caching
 - Better health-check for DB images.
 - Support from the tracker (satus badges and enable check).
 - Support from CiBoT (status and enable check).
 - Consider moving both the common setup (git, composer...)
   and the database (mysql, postgres) to own actions for
   easier tweaking.
2020-11-26 00:23:49 +01:00
cescobedo
5be02868af MDL-70327 core_h5p: Add preventredirect to the player 2020-11-25 16:30:50 +01:00
Sara Arjona
a36b3ec48f Merge branch 'MDL-70248-39' of https://github.com/HuongNV13/moodle into MOODLE_39_STABLE 2020-11-25 16:23:07 +01:00
Sara Arjona
ea4e0ae3cb Merge branch 'MDL-70265_39' of https://github.com/stronk7/moodle into MOODLE_39_STABLE 2020-11-25 15:47:01 +01:00
Ilya Tregubov
68c3eb8aa9 MDL-65852 user: Fix permission check to download course participants. 2020-11-25 11:27:31 +02:00
Tim Hunt
331b9947a3 MDL-70321 question backup: fix MDL-47178 unit tests
They were failing if you had CodeRunner installed
2020-11-24 15:29:55 +00:00
Simon Mok
4e8d58374e MDL-67460 profile: User profile link to use HTTPS 2020-11-24 20:49:35 +08:00
Tim Hunt
86669b0564 MDL-70285 completion upgrade: fix performance of the MDL-69687 code 2020-11-23 21:02:08 +00:00
David Matamoros
e80e613f65 MDL-69411 core_message: Fix return structure for empty result set
Passing a timefrom higher than last message timecreated needs to
return a formatted response so it does not break ws.
2020-11-23 19:25:44 +01:00
Eloy Lafuente (stronk7)
81410615ed MDL-70265 travis: Completely remove the UPGRADE check
It was broken since ages ago, see MDL-64874, so no sense
to keep it eating minutes for nothing.
2020-11-23 13:43:15 +01:00
Adrian Greeve
1d0bd0cfdf Merge branch 'MDL-67668-39-2' of git://github.com/andrewnicols/moodle into MOODLE_39_STABLE 2020-11-23 15:36:55 +08:00
Jake Dallimore
b4f40ae78e Merge branch 'MDL-70160-function-cache-39' of https://github.com/Peterburnett/moodle into MOODLE_39_STABLE 2020-11-23 15:23:10 +08:00
Andrew Nicols
556611a864 MDL-70151 assign: Fix bulk change for behat
Behat does not play well with confirmation dialogues and in some
situations it does not wait for the page to reload before starting the
next step.

This change adds a pending_js call which is only resolved if the cancel
button was pressed, otherwise it remains in-progress until the page
reloads resetting the entire state of it.
2020-11-23 11:12:15 +08:00
Andrew Nicols
7ce8e4cde2 MDL-70167 behat: Rewrite attribute check steps
This commit updates the following steps to use the
`the_attribute_of_should_be_set` step under the hood:
- the [element] [type] should be disabled
- the [element] [type] should be enabled
- the [element] [type] should be readonly
- the [element] [type] should not be readonly

This reduces unnecssary code duplication.
2020-11-23 11:03:43 +08:00
Andrew Nicols
bde7f5d734 MDL-70167 behat: Boolean attributes should either exist or not 2020-11-23 11:03:42 +08:00
Andrew Nicols
e08f640061 MDL-67668 behat: Update tests for inplace editable field type 2020-11-23 09:00:46 +08:00
Andrew Nicols
4f01d454a7 MDL-67668 behat: Add inplace editable field type
This commit promotes the Inplace Editable field to a first-class form
element by introducing a new partial selector for inplace editable
fields, and teaching the field manager how to recognise these, then
introducing a new field type which can handle setting values for this
field.
2020-11-23 09:00:46 +08:00
Andrew Nicols
35cc7cad05 MDL-67668 behat: Share behat_behat functionality with forms
Behat form fields are implemented in a way completely isolated from the
rest of the Behat Context system. Whereas regular step definitions have
access to execute steps, to call `find`, check for JS running, and other
related functionality, the Moodle implementation of a field type does
not have any access to this.

By moving the core functionality of behat_base to a new trait, and the
constants to a new interface, the functionality can also be used in
behat form fields in the same way as elsewhere.
2020-11-23 09:00:46 +08:00
Andrew Nicols
7b5fa603dd MDL-67668 behat: Correct js pending check
Pending checks should only run when JS is running, but some uses were
not apply this check.
2020-11-23 09:00:46 +08:00
Andrew Nicols
4e72b72720 MDL-67668 behat: Support NodeElement when fetching node in container
This is similar to change made in MDL-69136 to allow an already-fetched
NodeElement to be provided to the get_node_in_container() function and
makes it easier to be deterministic when writing steps.
2020-11-23 09:00:46 +08:00
Eloy Lafuente (stronk7)
eaf24d71f2 MDL-70265 travis: Only run highest phpunit if configured via env
By default only lowest php version will be executed, and only pgsql.

This default behavior can be changed with a new variable:

MOODLE_PHP = [all]
MOODLE_DATABASE = [pgsql | mysqli | all]
2020-11-21 11:28:27 +01:00
Charles Fulton
ed46bff4ae MDL-70157 dml: add support for aurora mysql 2020-11-20 15:21:22 -08:00
Eloy Lafuente (stronk7)
87bcff8c6e weekly release 3.9.3+ 2020-11-20 23:17:02 +01:00
Huong Nguyen
81c2fe97a3 MDL-70248 qtype_ddimageortext: Drop zones have UI issue in Editing form 2020-11-19 17:16:23 +07:00
Adrian Greeve
8b53812c8f Merge branch 'MOODLE_39_STABLE-MDL-67636' of https://github.com/yao9394/moodle into MOODLE_39_STABLE 2020-11-19 11:56:28 +08:00
John Yao
78aeaf17e7 MDL-67636 gradebook: Prevent exposing hidden grade in locked category 2020-11-19 14:34:43 +11:00
Adrian Greeve
662d20869a Merge branch 'MDL-56653-39' of git://github.com/lameze/moodle into MOODLE_39_STABLE 2020-11-19 11:02:18 +08:00
Jun Pataleta
f66c4fa42d Merge branch 'MDL-70094-39' of https://github.com/SangNguyen2601/moodle into MOODLE_39_STABLE 2020-11-19 09:35:43 +08:00
Eloy Lafuente (stronk7)
76a830b058 Merge branch 'MDL-69201-39' of https://github.com/paulholden/moodle into MOODLE_39_STABLE 2020-11-18 23:00:30 +01:00
sangnguyen
2f9582d754 MDL-70094 Question: Technical info section expands if click help icon 2020-11-18 17:30:49 +07:00
Vitaly
12d4c82f98 MDL-56653 enrol_meta: a single DB query in edit_instance_validation
The 'edit_instance_validation()' method checks for existing meta enrolment instances.
The fix replaces DB queries in a loop for each course with a single query for all courses.
Also, a new testing method 'test_edit_instance_validation_with_existing_courses()'
was added to /enrol/meta/tests/plugin_test.php to test if the new implementation
returns an error in case of trying to save the already linked courses in the 'customint1' field.
2020-11-18 15:05:31 +08:00
Andrew Nicols
3648ffdc8e Merge branch '39_MDL-68896' of git://github.com/danmarsden/moodle into MOODLE_39_STABLE 2020-11-18 10:06:41 +08:00
Eloy Lafuente (stronk7)
1194dde152 Merge branch 'MDL-70148-39' of git://github.com/andrewnicols/moodle into MOODLE_39_STABLE 2020-11-17 23:13:27 +01:00
Paul Holden
f727dad657 MDL-67514 customfield: correct external usescategories return type. 2020-11-17 22:13:19 +00:00
Marina Glancy
985d5a5824 MDL-70242 auth_oauth2: set page context and url 2020-11-17 16:48:06 +01:00
Andrew Nicols
0210ab0005 MDL-70148 gradereport_grader: Improve reliability of keyboard usage
In some browsers the ajax grade select does not properly update the
grade after setting values. The previous solution was to press the
[enter] key, but doing this with the new key type step opens the select
box again. This is what happens when a real user presses enter on the
select.

This is the last possible field in the report, so pressing the tab key
to move to the next gradable element does not work.

The solution uses a shift-tab to move the focus away to the previous
gradale element. In this case it must also be moved to an earlier step
because the previously selected value must be checked in the Then
section of the test and if it is selected then its value cannot be
checked.
2020-11-17 15:14:43 +08:00
Andrew Nicols
99cf35e681 MDL-70148 qtype: Update qtype steps to new key interaction
Note: The ddmarker question type was previously getting the number of
keypresses wrong. This was because it was using both keyDown/keyUp, and
also keyPress. As a result each keypress was essentially happening two
times.
2020-11-17 15:14:43 +08:00
Andrew Nicols
61d0134488 MDL-70148 behat: Update steps for keyboard 2020-11-17 15:14:43 +08:00
Andrew Nicols
2369ad7737 MDL-70148 behat: Add steps to send keys without an element 2020-11-17 15:14:43 +08:00
Andrew Nicols
71dcd85182 Merge branch 'MDL-69526-39' of git://github.com/lucaboesch/moodle into MOODLE_39_STABLE 2020-11-17 14:55:32 +08:00
Adrian Greeve
f5d19447e0 Merge branch 'MDL-50955-39' of git://github.com/peterRd/moodle into MOODLE_39_STABLE 2020-11-17 13:10:08 +08:00
Andrew Nicols
b276f33850 Merge branch 'MDL-69964-39' of git://github.com/paulholden/moodle into MOODLE_39_STABLE 2020-11-17 10:23:01 +08:00
Paul Holden
b932b798f1 MDL-69964 course: toggle participant checkboxes in root element.
For a given toggleGroup, the relevant action elements are not
necessarily descendants of the same tableRoot element, on the
course participants page.
2020-11-16 17:44:26 +00:00
Andrew Nicols
14cecfa4c0 MDL-67513 core: Only move modal to body if currently attached
A previous change as part of this commitset was intended to move the
modal to the document.body, but where the modal had been destroyed it
was instead added back to the body.
2020-11-16 09:40:43 +01:00
Peter Dias
9582b85c16 MDL-50955 core: Reset lessons completion criteria if grade type is none 2020-11-16 16:37:28 +08:00
Andrew Nicols
f920fdced0 Merge branch 'MDL-67513-m39' of https://github.com/NeillM/moodle into MOODLE_39_STABLE 2020-11-16 08:39:21 +08:00
Luca Bösch
53836d2035 MDL-69526 block_myoverview: custom course fields natural sorting 2020-11-13 00:56:26 +01:00
Eloy Lafuente (stronk7)
ff2b655928 weekly release 3.9.3+ 2020-11-12 22:11:37 +01:00
Eloy Lafuente (stronk7)
706f6c93ae Merge branch 'install_39_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_39_STABLE 2020-11-12 22:11:34 +01:00
Neill Magill
6028dc3924 MDL-67513 forum: View conversations while fullscreen grading
Before this change when a modal was shown and an element on the page
was fullscreen the modal would be created behind it.

This change ensures that the modal will be inside an element that is
fullscreen so that it will be correctly displayed.
2020-11-12 08:34:59 +00:00