Commit graph

3875 commits

Author SHA1 Message Date
Sara Arjona
bdd30ee5b1 Moodle release 3.11rc2 2021-05-14 11:09:10 +02:00
Eloy Lafuente (stronk7)
ab8275f28f MDL-71583 versions: main version bump 2021-05-11 18:50:49 +02:00
Sara Arjona
62142a081a Moodle release 3.11rc1 2021-05-11 12:43:50 +02:00
Eloy Lafuente (stronk7)
61f9d3cac6 Moodle release 3.11beta 2021-05-07 16:55:23 +02:00
Sara Arjona
b009de3c60 on-demand release 3.11dev+ 2021-05-04 13:28:17 +02:00
Ilya Tregubov
21ecadc082 MDL-66431 core: Remove activity chooser user preference.
This commit removes activity chooser user preference and
course preference page. Separate dropdowns to activity and
resource is also removed.
2021-05-01 16:18:56 +02:00
Víctor Déniz
6f48b4ab71 weekly release 3.11dev+ 2021-04-30 12:54:10 +01:00
Sara Arjona
5b315fa595 on-demand release 3.11dev+ 2021-04-27 15:15:26 +02:00
Jun Pataleta
469e492196 MDL-71370 course: Make showcompletionconditions nullable
* When completion tracking is not enabled for the course, it does not
make sense for the course's showcompletionconditions setting to
be set according to the default value indicated by the
"moodlecourse | showcompletionconditions" admin setting. Setting
showcompletionconditions as enabled when completion tracking is disabled
makes even less sense. So in such a case, we should not be setting a
default value for showcompletionconditions and allow it to be null.

* When the course is edited and completion tracking is enabled, this
also would set the "Show completion conditions" field to default to the
value set in the "moodlecourse | showcompletionconditions" admin
setting.
2021-04-24 19:15:19 +08:00
Sara Arjona
fe04d078a4 on-demand release 3.11dev+ 2021-04-23 10:47:17 +02: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
Sara Arjona
003dadc64d on-demand release 3.11dev+ 2021-04-20 15:52:10 +02:00
Peter Burnett
74a86a9880 MDL-71031 webservices: Extended gradecategory creation API
This adds a new webservice that creates gradecategories as a batch,
and deprecates the old single creation call, which is superseded.
It also patches a few small issues in the single WS, for any integrations
currently relying on that webservice.
2021-04-18 11:53:03 +02:00
Sara Arjona
9600becce3 on-demand release 3.11dev+ 2021-04-16 17:06:23 +02:00
Sara Arjona
dc77f13dab MDL-69331 core_h5p: Add enabled field to libraries
The "enabled" field has been added to the H5P libraries to let
admins decide whether a library should be used or not in the site.
2021-04-15 09:31:36 +02:00
Eloy Lafuente (stronk7)
7811d7ace4 on-demand release 3.11dev+ 2021-04-13 10:27:30 +02:00
Sara Arjona
89cab88a3a on-demand release 3.11dev+ 2021-04-06 15:30:53 +02:00
Simey Lameze
94a8b91cd3 MDL-70781 course: setting for displaying completion conditions
Part of MDL-70817
2021-04-02 21:56:22 +08:00
Simey Lameze
8b47f16926 MDL-70782 course: add setting to show activity dates
Part of MDL-70817
2021-04-02 21:56:22 +08:00
Víctor Déniz
3c5a338cd4 on-demand release 3.11dev+ 2021-03-30 15:39:41 +01:00
Víctor Déniz
c54de9bec2 weekly release 3.11dev 2021-03-24 14:20:41 +00:00
Simey Lameze
41cbdeccab MDL-71182 calendar: Revert "Merge branch 'MDL-67494-311' of git://github.com/lameze/moodle into MOODLE_311_STABLE"
This reverts commit 9f5794834e, reversing
changes made to d30b045210.
2021-03-24 09:18:16 +08:00
Eloy Lafuente (stronk7)
c1db56b501 weekly release 3.11dev 2021-03-19 14:06:25 +01:00
David Mudrák
b6be1e9822 MDL-67748 user: Add a new core_user_search_identity external function
The purpose of this external function is to provide data for
asynchronous user selectors and similar widgets. It allows to search
users matching the given query in their name or other available identity
fields.
2021-03-15 19:09:25 +01:00
Sara Arjona
295901e6a1 weekly release 3.11dev 2021-03-11 17:18:44 +01:00
Sara Arjona
52fd43f54d MDL-70911 core_badges: Remove $CFG->badges_site_backpack
The $CFG->badges_site_backpack setting has been completely removed
because it's not required anymore. From now, the primary site
backpack will be the first one in the "Manage backpacks" list (so,
the one with lower sortorder value).
2021-03-10 09:10:32 +01:00
Sara Arjona
f23ffe6645 weekly release 3.11dev 2021-03-05 16:01:36 +01:00
Sara Arjona
9f5794834e Merge branch 'MDL-67494-311' of git://github.com/lameze/moodle into MOODLE_311_STABLE 2021-03-03 11:47:00 +01:00
Simey Lameze
05540f0eef MDL-67494 calendar: step to set userid 0 to all shared events 2021-03-03 16:29:18 +08:00
Sara Arjona
2e03630504 MDL-70913 core_badges: Use and update properly sortorder
Sortorder field in badge_external_backpack was updated with a wrong
value. This patch fixes this behaviour and adds sortorder as
sorting criteria for displaying the list of site backpacks.

In the phpunit method reviewed for covering this, a couple of
assertEquals() calls have been changed too to put the expected value
first.
2021-03-01 13:07:58 +01:00
Jun Pataleta
4652b66ee4 weekly release 3.11dev 2021-02-26 13:42:46 +08:00
Víctor Déniz
af0040445a weekly release 3.11dev 2021-02-19 12:39:06 +00:00
Andrew Nicols
0b09c2556f Merge branch 'MDL-64554-311' of git://github.com/andrewnicols/moodle into MOODLE_311_STABLE 2021-02-18 10:22:45 +08:00
Marina Glancy
1d33351fbb MDL-64554 core_form: new API for modal forms 2021-02-17 18:09:38 +01:00
Frederic Massart
026d2d227b MDL-48269 group: Remove the option to hide the picture of a group
Plus additional amendments to Fred's original commit:
1. Updating the version numbers
2. Merging the original two-step upgrade below into one for simplicity:
   1. Deleting the pictures for groups with hidepicture set to 1; and
   2. Dropping the hidepicture field itself.
3. Converted array() usages to the short syntax [].
2021-02-16 12:53:30 +08:00
Sara Arjona
a2fda1289f weekly release 3.11dev 2021-02-11 14:54:40 +01:00
Sara Arjona
d7dd8517fc weekly release 3.11dev 2021-02-04 14:56:13 +01:00
Sara Arjona
c1dc87c2ed Merge branch 'MDL-66769-311' of git://github.com/ilyatregubov/moodle into MOODLE_311_STABLE 2021-02-03 09:33:02 +01:00
Ilya Tregubov
8f52651988 MDL-66769 core_h5p: Clean up orphaned h5p records task. 2021-02-03 09:33:17 +02:00
Eloy Lafuente (stronk7)
80cf455e48 Merge branch 'MDL-70648-311' of git://github.com/lameze/moodle into MOODLE_311_STABLE 2021-02-01 19:17:45 +01:00
Víctor Déniz
fb9419ec0b weekly release 3.11dev 2021-01-29 17:12:59 +00:00
Jake Dallimore
500bee1af0 weekly release 3.11dev 2021-01-22 11:30:46 +08:00
Simey Lameze
3e2de0c6c9 MDL-70648 calendar: upgrade step to delete wrong cat events 2021-01-20 09:32:09 +08:00
Sara Arjona
fee3970787 weekly release 3.11dev 2021-01-15 08:25:42 +01:00
Juan Leyva
4f2cfe7af8 MDL-70387 files: New WS core_files_get_unused_draft_itemid 2021-01-13 13:03:00 +01:00
Jun Pataleta
dab0910676 weekly release 3.11dev 2021-01-08 12:14:48 +08:00
Eloy Lafuente (stronk7)
7eb99cedd4 weekly release 3.11dev 2020-12-23 20:24:32 +01:00
Sara Arjona
21c367cee6 weekly release 3.11dev 2020-12-17 15:52:44 +01:00
Víctor Déniz
d328ef1c9d weekly release 3.11dev 2020-12-10 21:10:02 +00:00
Jake Dallimore
329c04c1de weekly release 3.11dev 2020-12-04 08:42:38 +08:00