Commit graph

100968 commits

Author SHA1 Message Date
Sara Arjona
61b35eebfa NOBUG: Fixed SVG browser compatibility 2021-04-23 10:47:15 +02:00
Mathew May
37a80759ea MDL-71329 tool_moodlenet: Check to see if we get errors before curl 2021-04-23 15:48:31 +08:00
Jun Pataleta
c60671bdb2 Merge branch 'MDL-71171_311' of git://github.com/mdjnelson/moodle into MOODLE_311_STABLE 2021-04-23 12:41:10 +08:00
Mark Nelson
e98a902a7b MDL-71171 customfield_text: ensure we set defaults properly 2021-04-23 12:37:28 +08:00
abgreeve
bdad52f522 Merge branch 'MDL-70818-311-4' of git://github.com/rezaies/moodle into MOODLE_311_STABLE 2021-04-23 12:18:31 +08:00
Andrew Nicols
5319d41af0 Merge branch 'MDL-70903-311' of git://github.com/roland04/moodle into MOODLE_311_STABLE 2021-04-23 11:56:59 +08:00
Andrew Nicols
9d275ebbfd Merge branch 'MOODLE_311_STABLE-MDL-71376' of https://github.com/rjnl/moodle into MOODLE_311_STABLE 2021-04-23 11:52:31 +08:00
Shamim Rezaie
57926096b8 MDL-70818 mod_workshop: implement activity_dates for the workshop module 2021-04-23 13:47:51 +10:00
Shamim Rezaie
2d19fa0d5f MDL-70818 mod_workshop: cache workshop times in modinfo for performance 2021-04-23 13:47:51 +10:00
Shamim Rezaie
1a50f27b8b MDL-70818 mod_scorm: implement activity_dates for the scorm module 2021-04-23 13:47:51 +10:00
Shamim Rezaie
e6a6b08196 MDL-70818 mod_forum: implement activity_dates for the forum module 2021-04-23 13:47:50 +10:00
Shamim Rezaie
3594a90298 MDL-70818 mod_forum: cache forum times in modinfo for performance 2021-04-23 13:47:50 +10:00
Shamim Rezaie
f88f792b3b MDL-70818 mod_feedback: implement activity_dates for the feedback module 2021-04-23 13:47:50 +10:00
Shamim Rezaie
ec55d63ca0 MDL-70818 mod_data: implement activity_dates for the database module 2021-04-23 13:47:50 +10:00
Andrew Nicols
b9d08260bd Merge branch 'MDL-71394-311' of git://github.com/marinaglancy/moodle into MOODLE_311_STABLE 2021-04-23 11:46:17 +08:00
Andrew Nicols
391447a3b5 Merge branch 'MDL-70970-311' of git://github.com/paulholden/moodle into MOODLE_311_STABLE 2021-04-23 11:38:50 +08:00
Andrew Nicols
7b21ac7a0c Merge branch 'MDL-70902-311' of git://github.com/dravek/moodle into MOODLE_311_STABLE 2021-04-23 11:17:20 +08:00
ScottVerbeek
0c9412a7fd MDL-66673 groups: Stop notice when messaging system is disabled 2021-04-23 08:54:05 +10:00
Sara Arjona
1e0742f0a4 Merge branch 'MDL-57831-311' of git://github.com/paulholden/moodle into MOODLE_311_STABLE 2021-04-22 18:13:10 +02:00
Paul Holden
c34d739636 MDL-57831 tool_monitor: update Behat tests for message preferences. 2021-04-22 16:12:49 +01:00
Ferran Recio
cd97f217b6 MDL-70909 behat: context freeze and not freeze steps 2021-04-22 15:51:36 +02:00
Sara Arjona
7ccfb2410a Merge branch 'MDL-71136_311' of https://github.com/TomoTsuyuki/moodle into MOODLE_311_STABLE 2021-04-22 13:56:43 +02:00
Shamim Rezaie
7f03204486 MDL-71144 mod_scorm: Deprecate scorm_get_completion_state() 2021-04-22 21:28:10 +10:00
Shamim Rezaie
ba90a6462d MDL-71144 mod_quiz: custom_completion should not use deprecated function
This commit also removes an unnecessary DB query.
2021-04-22 21:28:10 +10:00
Shamim Rezaie
7bdff82066 MDL-71144 mod_quiz: Deprecate quiz_get_completion_state() 2021-04-22 21:28:09 +10:00
Shamim Rezaie
e88a9462d1 MDL-71144 mod_lesson: Deprecate lesson_get_completion_state() 2021-04-22 21:28:09 +10:00
Shamim Rezaie
0780c6a7bd MDL-71144 mod_survey: Deprecate survey_get_completion_state() 2021-04-22 21:28:09 +10:00
Shamim Rezaie
223bee6bd0 MDL-71144 mod_glossary: Deprecate glossary_get_completion_state() 2021-04-22 21:28:09 +10:00
Jun Pataleta
81ddb3c13d MDL-71144 mod_forum: Deprecate forum_get_completion_state() 2021-04-22 21:28:09 +10:00
Jun Pataleta
c008814ca4 MDL-71144 mod_feedback: Deprecate feedback_get_completion_state() 2021-04-22 21:28:09 +10:00
Jun Pataleta
8e79ddef3b MDL-71144 mod_data: Deprecate data_get_completion_state() 2021-04-22 21:28:09 +10:00
Jun Pataleta
9dfc27cc33 MDL-71144 mod_choice: Deprecate choice_get_completion_state() 2021-04-22 21:28:09 +10:00
Jun Pataleta
bbe3a4882d MDL-71144 mod_assign: Deprecate assign_get_completion_state() 2021-04-22 21:28:09 +10:00
Jun Pataleta
e774335f16 MDL-71144 completion: Deprecate get_completion_state callbacks
* *_get_completion_state() callback functions have been deprecated and
should no  longer be used. Plugins that define custom completion rules
must implement the mod_[modname]\completion\custom_completion class that
extends the \core_completion\activity_custom_completion base class.
2021-04-22 21:28:09 +10:00
Sara Arjona
6abbca9754 Merge branch 'MDL-71400-311' of git://github.com/mihailges/moodle into MOODLE_311_STABLE 2021-04-22 13:16:29 +02:00
Ferran Recio
150280bafa MDL-70909 core: add cannotmatchanyrows to capabilities join 2021-04-22 13:09:47 +02:00
Jun Pataleta
672bbb6cd6 Merge branch 'MDL-71170_311' of git://github.com/mdjnelson/moodle into MOODLE_311_STABLE 2021-04-22 18:55:21 +08:00
Noel De Martin
5c1cf60ae4 MDL-71386 behat: Support for 3.9.5+ mobile app 2021-04-22 12:15:37 +02:00
Paul Holden
50fe1b9885 MDL-71200 mod_folder: ensure "Download folder" option is backed up. 2021-04-22 10:29:18 +01:00
Paul Holden
f0db656002 MDL-70979 search: validate external user search parameters.
Clean return value in unit test for same.
2021-04-22 10:22:42 +01:00
Paul Holden
1c00938de9 MDL-71392 mod_quiz: don't display grade to pass if not set. 2021-04-22 09:53:21 +01:00
Mihail Geshoski
3b1c29d233 MDL-71400 assignfeedback_offline: Fix message after worksheet upload 2021-04-22 13:08:44 +08:00
Jun Pataleta
78672323e6 Merge branch 'MDL-71156-311' of git://github.com/lameze/moodle into MOODLE_311_STABLE 2021-04-22 11:53:27 +08:00
Andrew Nicols
67f4a51f68 Merge branch 'MDL-69460-311' of https://github.com/paulholden/moodle into MOODLE_311_STABLE 2021-04-22 11:10:32 +08:00
Simey Lameze
10018bbc39 MDL-71156 core: machinery to recover orphaned calendar events
The machinery to fix orphaned calendar events that were broken by MDL-67494.

The solution consists of:

1) Upgrade step that checks if this site has executed the problematic upgrade steps and
   if positive, it will schedule a new run for calendar_fix_orphaned_events adhoc task.

2) Adhoc task that will self-spawn calling the recovery machinery, running until
   all the orphaned calendar events are fixed. It also sets the maximum runtime of
   60 seconds. It is also possible to override that number by specifing the desired
   number setting the ->calendareventsmaxseconds in your config.php

3) CLI script that will look for all the calendar events which userids
   where broken by a wrong upgrade step, affecting to Moodle 3.9.5
   and up.

   It performs checks to both:
     a) Detect if the site was affected (ran the wrong upgrade step).
     b) Look for orphaned calendar events, categorising them as:
       - standard: site / category / course / group / user events
       - subscription: events created via subscriptions.
       - action: normal action events, created to show common important dates.
       - override: user and group override events, particular, that some activities support.
       - custom: other events, not being any of the above, common or particular.

   By specifying it (--fix) try to recover as many broken events (missing userid) as
   possible. Standard, subscription, action, override events in core are fully supported but
   override or custom events should be fixed by each plugin as far as there isn't any standard
   API (plugin-wise) to launch a rebuild of the calendar events.

4) Unit tests and helper functions to generate calendar events. We have decided to
   keep the tests simple, testing only true and false and not using data generators because
   the code is purely to recover the calendar events and won't turn into an API or something
   and also due to the urgency of this issue.
   The helpers have been created in calendar/tests/helpers.php since there are no data generators
   for calendar.
2021-04-22 10:39:46 +08:00
Jun Pataleta
1ebb8d0264 Merge branch 'MDL-71288-311' of git://github.com/lameze/moodle into MOODLE_311_STABLE 2021-04-22 10:29:16 +08:00
Andrew Nicols
2fb5cb74e9 Merge branch 'MDL-70412-311' of git://github.com/aanabit/moodle into MOODLE_311_STABLE 2021-04-22 10:08:22 +08:00
abgreeve
bdd7f0a77c MDL-28452 profilefield_social: Setting the version number to today. 2021-04-22 10:05:04 +08:00
Simey Lameze
068f965a0a MDL-71288 completion: add fallback for plugins
This commits adds a fallback for plugins which does not have
custom_completion implementation.

For those cases, it will search for {modulename}_get_completion_state
callback in the plugin and call get_overall_completion() method in
cm_completion_details class to get the overall completion state for
a course module and user.
2021-04-22 09:46:19 +08:00
abgreeve
3f1727adcf Merge branch 'MDL-28452-311' of git://github.com/bmbrands/moodle into MOODLE_311_STABLE 2021-04-22 09:35:18 +08:00