Commit graph

3993 commits

Author SHA1 Message Date
Peter Dias
0c76a848ea MDL-71148 core_navigation: Templates to generate user menu
- Part of: MDL-69588
2021-08-23 17:46:36 +08:00
Ilya Tregubov
1464843a25 weekly release 4.0dev 2021-08-20 13:24:29 +02:00
Ilya Tregubov
036800d99d weekly release 4.0dev 2021-08-12 16:50:14 +02:00
Víctor Déniz
0d0e66d37c weekly release 4.0dev 2021-08-05 16:27:17 +01:00
Paul Holden
542f2927f7 MDL-70794 reportbuilder: register new core sub-system.
In addition to housekeeping for the new sub-system, define our
table schema to be used in later persistents.
2021-07-28 16:40:50 +01:00
Ilya Tregubov
dc437b5171 weekly release 4.0dev 2021-07-28 16:48:19 +02:00
Ilya Tregubov
8c0853d026 weekly release 4.0dev 2021-07-23 11:30:58 +02:00
abgreeve
8453fe0ddb weekly release 4.0dev 2021-07-16 10:16:35 +08:00
Eloy Lafuente (stronk7)
c357779722 weekly release 4.0dev 2021-07-08 23:43:55 +02:00
Ilya Tregubov
3610f1ee3b weekly release 4.0dev 2021-07-01 16:41:59 +02:00
Eloy Lafuente (stronk7)
a747fd3055 weekly release 4.0dev 2021-06-24 23:03:06 +02:00
Víctor Déniz
338b60f43b weekly release 4.0dev 2021-06-17 14:54:50 +01:00
abgreeve
9533e8ddf5 weekly release 4.0dev 2021-06-11 13:52:09 +08:00
Andrew Nicols
7782eeb55e Merge branch 'MDL-65637-master' of git://github.com/peterRd/moodle 2021-06-09 13:22:49 +08:00
Sara Arjona
5f91cbb611 MDL-71135 course: core_course_get_state external method 2021-06-04 16:43:28 +02:00
Eloy Lafuente (stronk7)
411150a424 weekly release 4.0dev 2021-06-03 23:56:05 +02:00
Eloy Lafuente (stronk7)
0f5e9aa759 Merge branch 'master-MDL-71438_v2' of https://github.com/golenkovm/moodle 2021-06-02 23:51:52 +02:00
Mikhail Golenkov
ee3c6ad3ac MDL-71438 blocks: Add index on mdl_user_preferences.name 2021-06-02 22:10:37 +10:00
Peter Dias
8e71f6b1f1 MDL-65637 core_oauth2: Introduce a new custom linkedin oauth2 client 2021-06-02 08:11:38 +08:00
Sara Arjona
30b8ad51f4 weekly release 4.0dev 2021-05-27 17:45:06 +02:00
Sara Arjona
efb3d4e7a7 weekly release 4.0dev 2021-05-20 11:09:00 +02:00
Sara Arjona
0b69b37f04 weekly release 4.0dev 2021-05-14 11:06:18 +02:00
Sara Arjona
3da88a7664 weekly release 4.0dev 2021-05-11 12:42:28 +02:00
Eloy Lafuente (stronk7)
ad8b3d2ba9 weekly release 4.0dev 2021-05-07 16:54:26 +02:00
Sara Arjona
1c9837a557 weekly release 4.0dev 2021-05-04 13:27:45 +02:00
Ilya Tregubov
430746d3a2 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:21:59 +02:00
Víctor Déniz
0a986fdf13 weekly release 4.0dev 2021-04-30 12:54:01 +01:00
Sara Arjona
a5f0b354e7 weekly release 4.0dev 2021-04-27 15:14:50 +02:00
Jun Pataleta
fca42002f7 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:07:42 +08:00
Sara Arjona
146a38dc45 weekly release 4.0dev 2021-04-23 10:46:53 +02:00
Simey Lameze
5b0282847e 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:28:52 +08:00
Sara Arjona
e29b256438 weekly release 4.0dev 2021-04-20 15:51:10 +02:00
Peter Burnett
71ffad7ea6 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:52:07 +02:00
Sara Arjona
0fd37bf5d8 weekly release 4.0dev 2021-04-16 17:03:25 +02:00
Jake Dallimore
195abe8ab1 Merge branch 'MDL-70207-master' of git://github.com/peterRd/moodle 2021-04-14 09:07:21 +08:00
Eloy Lafuente (stronk7)
511a87f5fc weekly release 4.0dev 2021-04-13 10:26:25 +02:00
Sara Arjona
18aafd0ed4 weekly release 4.0dev 2021-04-06 15:29:06 +02:00
Peter Dias
f8f83eae0e MDL-70207 core_navigation: Initial backend for primary navigation 2021-04-06 11:45:44 +08:00
Simey Lameze
a4f7c1d91f MDL-70781 course: setting for displaying completion conditions
Part of MDL-70817
2021-04-02 21:53:20 +08:00
Simey Lameze
680018c95d MDL-70782 course: add setting to show activity dates
Part of MDL-70817
2021-04-02 21:53:20 +08:00
Víctor Déniz
f0eb6a5729 weekly release 4.0dev 2021-03-30 15:37:25 +01:00
Víctor Déniz
d65ed58e73 weekly release 4.0dev 2021-03-24 14:20:33 +00:00
Simey Lameze
1fcd850859 MDL-71182 calendar: Revert "Merge branch 'MDL-67494-master' of git://github.com/lameze/moodle"
This reverts commit 9d58d4de46, reversing
changes made to 535c0277de.
2021-03-24 09:11:01 +08:00
Eloy Lafuente (stronk7)
4c26696e7e weekly release 4.0dev 2021-03-19 14:06:19 +01:00
David Mudrák
f51d3a81d6 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 21:24:05 +01:00
Sara Arjona
fc335f5ea0 weekly release 4.0dev 2021-03-11 17:18:40 +01:00
Sara Arjona
49c1d41a60 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:09:05 +01:00
Sara Arjona
96b49ddc97 weekly release 4.0dev 2021-03-05 16:01:32 +01:00
Sara Arjona
9d58d4de46 Merge branch 'MDL-67494-master' of git://github.com/lameze/moodle 2021-03-03 11:45:28 +01:00
Simey Lameze
ba04a79ac6 MDL-67494 calendar: step to set userid 0 to all shared events 2021-03-03 16:06:32 +08:00