Commit graph

8936 commits

Author SHA1 Message Date
Sara Arjona
d8a029ad64 Merge branch 'MDL-71390-master' of git://github.com/marinaglancy/moodle 2021-05-06 08:01:47 +02:00
Eloy Lafuente (stronk7)
149e48d10e MDL-69863 database: Fix oracle and sqlsrv problems
1) The GROUP BY statement must include all fields in the SELECT
   not being aggregated or constant cols.
2) There was a missing space causing problems to databases
   using named parameters.
2021-05-06 00:04:59 +02:00
Juan Leyva
6a3465b6b4 MDL-71513 mobile: Fix last access visibility 2021-05-05 22:49:14 +01:00
Eloy Lafuente (stronk7)
ab87155220 MDL-71420 environment: Lower sodium requirement to recommended 2021-05-05 23:06:10 +02:00
Eloy Lafuente (stronk7)
3a839a62c6 Merge branch 'MDL-71539_master_PHP8optionalparams' of https://github.com/brickfield/moodle 2021-05-05 20:00:17 +02:00
Mike Churchward
3dc209b748 MDL-71539 tool_brickfield: PHP8 optional param error fixed. 2021-05-05 11:47:33 -04:00
Mike Churchward
1f70d37d7e MDL-71532 tool_brickfield: Removing tabs and unneeded files. 2021-05-05 11:34:35 -04:00
Marina Glancy
d42fd649cc MDL-71390 core: raise max_input_vars requirement 2021-05-05 10:49:59 +02:00
Leon Stringer
37ae249dfa MDL-70181 database: Quote database object names
Table names and database name now enclosed in backticks.
admin/cli/mysql_collation.php failed if $CFG->prefix was blank with
MySQL 8.0 because table 'groups' conflicted with a new reserved word.

Note that this quotes both mysql_collation.php and mysql_compressed_rows.php
but only the former was mal-functioning.

The case of mysql_compressed_rows.php is a little bit special because
not all tables are processed, only those having big rows. And the groups
table is not one of them. In any case, better add the quotes there for
any future case.

Also, when testing this patch https://tracker.moodle.org/browse/MDL-71512
was discovered and will need to be fixed to make core 100% compliant
with MySQL 8.0 and MariaDB 10.6 and up.
2021-05-05 10:16:45 +02:00
Eloy Lafuente (stronk7)
9b522367a0 Merge branch 'MDL-71425-master-enfix' of git://github.com/mudrd8mz/moodle 2021-05-04 23:39:32 +02:00
Eloy Lafuente (stronk7)
7ae6e5da34 MDL-69863 tool_brickfield: Final version adjustments to current
In master, fixed to 2021052500
2021-05-04 19:50:24 +02:00
Mike Churchward
498f75502a MDL-69863 tool_brickfield: Better instance name displayed in error list. 2021-05-04 19:49:55 +02:00
Mike Churchward
7331bb1454 MDL-69863 tool_brickfield: Add 'periodically' to data message. 2021-05-04 19:49:55 +02:00
Mike Churchward
616f20e9a5 MDL-69863 tool_brickfield: Change public to private. 2021-05-04 19:49:55 +02:00
Mike Churchward
03ada14526 MDL-69863 tool_brickfield: Removing plugin_installed event. 2021-05-04 19:49:55 +02:00
Mike Churchward
623c1b0326 MDL-69863 tool_brickfield: Language improvements. 2021-05-04 19:49:54 +02:00
Mike Churchward
ad1a600927 MDL-69863 tool_brickfield: Adding settings page title. 2021-05-04 19:49:54 +02:00
Mike Churchward
020109f3eb MDL-69863 tool_brickfield: Disable analysis by default on installation. 2021-05-04 19:49:54 +02:00
Mike Churchward
ce9258afc4 MDL-69863 tool_brickfield: Ensure language strings use correct case. 2021-05-04 19:49:54 +02:00
Mike Churchward
b8c7cf9a74 MDL-69863 tool_brickfield: Ensuring navigation is correct. 2021-05-04 19:49:54 +02:00
Mike Churchward
11dcd419a5 MDL-69863 tool_brickfield: ensuring lang string independence. 2021-05-04 19:49:54 +02:00
Mike Churchward
c6c7c28dea MDL-69863 tool_brickfield: Moving plugins to core files. 2021-05-04 19:49:54 +02:00
Mike Churchward
f8b34ffc68 MDL-69863 tool_brickfield: Added Behat tests. 2021-05-04 19:49:54 +02:00
Mike Churchward
e1c6497293 MDL-69863 tool_brickfield: Adding the Brickfield toolkit. 2021-05-04 19:49:54 +02:00
Helen Foster
49efd0b4b6 MDL-71425 lang: Import fixed English strings (en_fix) 2021-05-04 14:51:44 +02:00
Sara Arjona
b04d1c3041 Merge branch 'MDL-71163-master' of git://github.com/rezaies/moodle 2021-05-03 11:59:58 +02:00
Jake Dallimore
08e3b32181 Merge branch 'MDL-71273-master' of git://github.com/dpalou/moodle 2021-05-03 14:39:14 +08:00
Eloy Lafuente (stronk7)
e26b639281 Merge branch 'MDL-66431-master' of git://github.com/ilyatregubov/moodle 2021-05-02 19:12:47 +02:00
Víctor Déniz
bd8600e923 Merge branch 'MDL-70753-master' of https://github.com/sharidas/moodle 2021-05-02 19:11:10 +02:00
Ilya Tregubov
cf1cf222e7 MDL-66431 core: Fix behat tests.
Move activity creation to data generators. Only fixing those
tests failing due to removing usemodchooser preference.
2021-05-01 16:22:03 +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
Shamim Rezaie
7dbd7ee195 MDL-71163 mod_assign: remove duplicate available from and due date info 2021-04-30 17:13:56 +10:00
Sujith Haridasan
686bd2681e MDL-70753 report: Provide a separate page for course report
Provide page for the reports in the course administration.
The page has a drop down to navigate to different reports.
The navigation is remembered just like the grade reports in
the course.

Signed-off-by: Sujith Haridasan <sujith@moodle.com>
2021-04-30 08:37:38 +05:30
Dani Palou
7248aa0276 MDL-71273 tool_mobile: Change the LTI disabled feature 2021-04-29 13:54:42 +02:00
Ruslan Kabalin
3bf770c801 MDL-71051 core_user: fix issues and address review issues 2021-04-28 11:47:26 +02:00
Marina Glancy
8974874018 MDL-71051 core_user: create user profile field form is now modal form 2021-04-28 11:47:22 +02:00
Marina Glancy
ef3d6a3d70 MDL-71051 core_user: use user profile generator in all tests 2021-04-28 11:47:21 +02:00
Marina Glancy
5682b9a585 MDL-71051 core_user: always use API when working with profile fields 2021-04-28 11:39:04 +02:00
Adrian Greeve
a8c614b2c1 Merge branch 'MDL-71329' of https://github.com/Chocolate-lightning/moodle 2021-04-27 09:36:56 +08:00
Sara Arjona
57604e30ce Merge branch 'MDL-70917' of git://github.com/paulholden/moodle 2021-04-26 15:17:59 +02:00
Sara Arjona
a080f64c01 NOBUG: Fixed SVG browser compatibility 2021-04-23 10:46:51 +02:00
Mathew May
54b57cb7dc MDL-71329 tool_moodlenet: Check to see if we get errors before curl 2021-04-23 15:43:58 +08:00
Sara Arjona
80b1bb4751 Merge branch 'MDL-57831' of git://github.com/paulholden/moodle 2021-04-22 18:13:04 +02:00
Paul Holden
f9f679611d MDL-57831 tool_monitor: update Behat tests for message preferences. 2021-04-22 16:11:30 +01:00
Ruslan Kabalin
af560d454f MDL-70905 admin: Change default player dimensions to 360p. 2021-04-22 11:24:51 +01:00
Jun Pataleta
e853e6b7db Merge branch 'MDL-71156-master' of git://github.com/lameze/moodle 2021-04-22 11:51:59 +08:00
Andrew Nicols
81d5ed8184 Merge branch 'MDL-69460' of https://github.com/paulholden/moodle 2021-04-22 11:11:40 +08: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
abgreeve
8a53fe7f6b Merge branch 'MDL-28452-master' of git://github.com/bmbrands/moodle 2021-04-22 09:38:50 +08:00
Bas Brands
f9e1c2587a MDL-28452 core_user: migrate social profile fields
Create a new profile field type, move all existing content of the fields
'icq', 'skype', 'aim', 'yahoo', 'msn' and 'url' in the mdl_user table to
theses new profile fields if needed.

AMOS BEGIN
MOV [aimid,core],[aimid,courseimage,profilefield_social]
MOV [yahooid,core],[yahooid,profilefield_social]
MOV [skypeid,core],[skypeid,profilefield_social]
MOV [icqnumber,core],[icqnumber,profilefield_social]
MOV [msnid,core],[msnid,profilefield_social]
MOV [webpage,core],[webpage,profilefield_social]
AMOS END
2021-04-21 11:22:25 +02:00