Commit graph

99780 commits

Author SHA1 Message Date
Mikhail Golenkov
64e7678c47 MDL-69773 block_section_links: Add an option to display section name 2020-11-24 11:34:38 +11:00
Tim Hunt
fa2e457944 MDL-70285 completion upgrade: fix performance of the MDL-69687 code 2020-11-23 20:49:56 +00:00
David Matamoros
873e8961e5 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:42 +01:00
Eloy Lafuente (stronk7)
a014ebdc6a 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:42:36 +01:00
Adrian Greeve
13c3289335 Merge branch 'MDL-67668-311-2' of git://github.com/andrewnicols/moodle into MOODLE_311_STABLE 2020-11-23 15:39:16 +08:00
Peter Burnett
08c6aad9a7 MDL-70160 cache: plugin_functions checks for function_exists() 2020-11-23 15:22:27 +08:00
Adrian Hutchinson
50baaebc31 MDL-67028 mod_lti: Support CourseSection.timeFrame custom parameters 2020-11-23 14:07:18 +08:00
Andrew Nicols
62763b84d4 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:11:50 +08:00
Andrew Nicols
9bec65f04f 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:15 +08:00
Andrew Nicols
5654ddc32e MDL-70167 behat: Boolean attributes should either exist or not 2020-11-23 11:03:15 +08:00
Andrew Nicols
94a492a0f4 MDL-67668 behat: Update tests for inplace editable field type 2020-11-23 09:00:46 +08:00
Andrew Nicols
7a2006b499 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
75801895aa 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
a53c5b847e 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
621199b331 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)
89a9b87c95 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:35 +01:00
Eloy Lafuente (stronk7)
788a74ad05 MDL-70192 composer: bump to moodle-behat-extension 3.311.0
Generated following the instructions @:

https://docs.moodle.org/dev/Composer#How_to_prepare_and_submit_composer_changes

(using php72)
2020-11-21 11:28:06 +01:00
Eloy Lafuente (stronk7)
ae8e7f90ad weekly release 3.11dev 2020-11-20 23:16:46 +01:00
Huong Nguyen
d921cbb41f MDL-70248 qtype_ddimageortext: Drop zones have UI issue in Editing form 2020-11-19 17:02:55 +07:00
Peter Dias
e339a551d2 MDL-64776 book: Final deprecation booktool_print_get_toc 2020-11-19 17:03:08 +08:00
Peter Dias
b505b893fc MDL-63266 core: Final deprecation enrol/cli/sync.php 2020-11-19 16:22:14 +08:00
Shamim Rezaie
118c309a87 MDL-70237 payment: Allow html tags in gateway description 2020-11-19 16:09:16 +11:00
John Yao
738449323a MDL-67636 gradebook: Prevent exposing hidden grade in locked category 2020-11-19 11:58:48 +08:00
Brendan Heywood
a25c20edea MDL-67081 xhprof: Allow conditional profiling from CLI using env vars 2020-11-19 11:42:28 +08:00
Jamie Stamp
30d2f286b6 MDL-65843 tasks: Allow schedules to be overridden in config 2020-11-19 11:31:08 +08:00
Adrian Greeve
b4d21549b5 Merge branch 'MDL-56653-311' of git://github.com/lameze/moodle into MOODLE_311_STABLE 2020-11-19 11:09:59 +08:00
Paul Holden
c7e5d1c422 MDL-69809 mod_folder: include forcedownload setting in WS responses. 2020-11-19 10:42:20 +08:00
Paul Holden
4ddb0590ea MDL-67702 gradereport_grader: user filters per report instance. 2020-11-19 10:35:59 +08:00
Paul Holden
fcc605cfd2 MDL-67702 mod_assign: distinct uniqueid value for grading tables.
This has the effect of making table sorting and filtering by initials
apply only to the current table instance, rather than to all of them.
2020-11-19 10:35:59 +08:00
Jun Pataleta
d31ac2f343 Merge branch 'MDL-70094-311' of https://github.com/SangNguyen2601/moodle into MOODLE_311_STABLE 2020-11-19 09:37:58 +08:00
Brendan Heywood
b6f59eb325 MDL-47456 core: Remove redundant DB call during bootstrap 2020-11-19 08:54:13 +08:00
Brendan Heywood
9fa0decc04 MDL-70107 tool_task: Unlock session on long running tasks in UI 2020-11-18 23:07:30 +01:00
Paul Holden
e6a54ae764 MDL-69201 core: consistent table primary sort column/order. 2020-11-18 23:01:23 +01:00
Dani Palou
5047eac57e MDL-70153 qtype_essay: Add behat test for attachments max size 2020-11-18 10:48:08 +01:00
Dani Palou
4657c380a6 MDL-70153 qtype_essay: Fix max size displayed for attachments 2020-11-18 10:48:08 +01:00
Vitaly
88d12b5dff 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:10:46 +08:00
sangnguyen2601
6b29dca9fb MDL-70094 Question: Technical info section expands if click help icon 2020-11-18 13:28:36 +07:00
Paul Holden
3d1f7d39c7 MDL-70158 tool_templatelibrary: group and sort list of components. 2020-11-18 10:18:35 +08:00
Sam Hemelryk
8bf2d6eb60 MDL-68896 mod_scorm: improved sendBeacon use when unloading 2020-11-18 09:49:56 +08:00
Paul Holden
4c37e43e6a MDL-67514 customfield: correct external usescategories return type. 2020-11-17 22:13:14 +00:00
Eloy Lafuente (stronk7)
b3268aeead Merge branch 'MDL-70148-311' of git://github.com/andrewnicols/moodle into MOODLE_311_STABLE 2020-11-17 23:13:07 +01:00
Noel De Martin
86565e4a36 MDL-42382 admin: Add replace filters button
Co-authored-by: Luca Bösch <luca.boesch@bfh.ch>
Co-authored-by: Andrei Bautu <abautu@gmail.com>
2020-11-17 10:11:12 +01:00
Andrew Nicols
c7d3bc62fe 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
f4a38bbaac 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
5b9b1f07e6 MDL-70148 behat: Update steps for keyboard 2020-11-17 15:14:43 +08:00
Andrew Nicols
346fdae360 MDL-70148 behat: Add steps to send keys without an element 2020-11-17 15:14:43 +08:00
Andrew Nicols
57672107a1 Merge branch 'MDL-69526-311' of git://github.com/lucaboesch/moodle into MOODLE_311_STABLE 2020-11-17 14:54:16 +08:00
Adrian Greeve
c6e649f5ed Merge branch 'MDL-50955-311' of git://github.com/peterRd/moodle into MOODLE_311_STABLE 2020-11-17 13:05:57 +08:00
Peter Dias
443a35d18c MDL-50955 core: Reset lessons completion criteria if grade type is none 2020-11-17 11:23:21 +08:00
Paul Holden
47b60c97ed 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-17 10:23:37 +08:00