Commit graph

91028 commits

Author SHA1 Message Date
Amaia Anabitarte
e2a687f689 MDL-63691 core: Column 'convhash' now accepts null
Index 'convhash' also changed to non-unique.
2018-10-22 09:47:19 +08:00
Jake Dallimore
b8ff2c4481 MDL-63213 core_message: update get_conversations to support favourites
Added the type param here, which will be used in MDL-63549.
2018-10-22 09:43:33 +08:00
Andrew Nicols
c3918bfee9 MDL-63289 message: Remove unused global 2018-10-22 08:31:04 +08:00
Andrew Nicols
d139f45a0a Merge branch 'MDL-63289-master' of git://github.com/sarjona/moodle 2018-10-22 08:19:59 +08:00
AMOS bot
f7704b703b Automatically generated installer lang files 2018-10-22 00:07:13 +00:00
Bas Brands
3cfff88516 MDL-63058 block_myoverview: starring and storing preferences 2018-10-20 17:53:35 +02:00
Tim Hunt
b51f4f2ece MDL-63277 qtype_ddwtos: removed unneeded qtype_classname method 2018-10-20 15:25:04 +01:00
Tim Hunt
c28d0aa113 MDL-63277 qtype_ddwtos: further improvements to the JavaScript 2018-10-20 15:24:49 +01:00
M Kassaei
68943aff09 MDL-63277 qtype_ddwtos: Re-implement old YUI JS in AMD
In the rewrite is one improvement: drag items now animate when they
are moved, for example out of a drop place and back home. Other than
that, the functionality is unchanged. Also, as far as possible, the
HTML structure has not been changed (althought with changes to the HTML,
further JS improvements would be possible. However, those have been left
for a future issue).
2018-10-20 15:22:12 +01:00
Tim Hunt
ed7e30fa5c MDL-62411 qtype_ddmarker: further improvements following code review 2018-10-20 15:18:17 +01:00
John Beedell
5d4b342107 MDL-62411 qtype_ddmarker: graphical editing of drop zones
Also, all the JavaScript in this plugin has been updated from YUI to
jQuery.
2018-10-20 15:15:28 +01:00
John Beedell
0b1cc2890f MDL-62411 qtype_ddmarker: add dragdrop helper libarary
This was created by the Open University a couple of years ago, and is
very helpful for making dragging work reliably on a range of browsers
and with both mouse and touch-screens.

Sadly, HTML5 drag-drop is not yet ready for prime-time.
2018-10-20 15:15:23 +01:00
Jake Dallimore
b81722e22f MDL-63058 core_favourites: add existence checks to the service layer
This allows someone using the user_favourite_service to check whether
an item is already marked as a favourite.
2018-10-20 12:19:10 +02:00
Sara Arjona
e5eba802d5 MDL-63289 message: Deprecate is_user_non_contact_blocked method
This function has been deprecated and no other function has been
added to replace it. It was only called from can_post_message, so
its code has been moved there.
2018-10-20 08:36:24 +02:00
Sara Arjona
7983fb830e MDL-63289 message: Bypass privacy user preferences for teachers
Created capability 'moodle/site:messageanyuser' to allow
bypass user privacy preferences for messaging participants in a course,
even when some of them has blocked the teacher.
2018-10-20 08:35:17 +02:00
Mark Nelson
59fa0137b2 MDL-63691 core: updated 'message_conversations' table 2018-10-20 13:36:29 +08:00
Eloy Lafuente (stronk7)
cc486e6125 on-demand release 3.6dev+ 2018-10-19 17:11:15 +02:00
Eloy Lafuente (stronk7)
755d8758ce Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2018-10-19 17:11:13 +02:00
Marina Glancy
97372ec17d MDL-63648 tool_xmldb: missing capability check 2018-10-19 11:36:40 +02:00
AMOS bot
d619aa6e04 Automatically generated installer lang files 2018-10-19 00:08:01 +00:00
Eloy Lafuente (stronk7)
1845a5bbaa Merge branch 'MDL-63648-master' of git://github.com/marinaglancy/moodle 2018-10-18 23:54:06 +02:00
Eloy Lafuente (stronk7)
d6d5ea5d04 Merge branch 'MDL-62920-master' of https://github.com/aanabit/moodle 2018-10-18 23:47:37 +02:00
Eloy Lafuente (stronk7)
456a7e4b36 Merge branch 'MDL-27520_master-fix' of https://github.com/markn86/moodle 2018-10-18 22:03:43 +02:00
Eloy Lafuente (stronk7)
e38e2cde4e Merge branch 'MDL-60145-master' of https://github.com/snake/moodle 2018-10-18 18:56:34 +02:00
Mark Nelson
66b5036805 MDL-27520 assignfeedback_comments: fix Behat failures 2018-10-18 18:32:59 +08:00
Eloy Lafuente (stronk7)
a2d2ed90c2 Merge branch 'MDL-63465-master' of git://github.com/jleyva/moodle 2018-10-18 12:22:42 +02:00
Eloy Lafuente (stronk7)
2205ecc2b6 Merge branch 'MDL-63658-master-2' of https://github.com/snake/moodle 2018-10-18 11:15:11 +02:00
Jake Dallimore
21b50ebe19 MDL-63658 core_favourites: fix errors discovered on oracle db
- Assuming 1 would be a record that didn't exist. should be using 0.
- Missing space before AND in sql in provider.
2018-10-18 17:11:07 +08:00
Andrew Nicols
78f6d5196d Merge branch 'MDL-63658-master-2' of https://github.com/snake/moodle 2018-10-18 15:48:47 +08:00
Jake Dallimore
68eaa3150e MDL-63658 core_favourites: properly define interface methods and cleanup
This gets rid of specific repo functions which were unused, and makes
sure the following methods are defined on the interface, implemented
and tested:
- exists_by($criteria)
- find_by($criteria)
- delete_by($crtieria)
Also, added missing tests for find_favourite() repo method.
2018-10-18 15:39:57 +08:00
Juan Leyva
0f8b26043f MDL-63465 blocks: New WS core_blocks_get_dashboard_blocks 2018-10-18 09:17:24 +02:00
Jun Pataleta
de632063af Merge branch 'MDL-63667-master-fix2' of git://github.com/damyon/moodle 2018-10-18 14:37:13 +08:00
Peter
34ef8466d0 MDL-63042 core_theme: Change the background color 2018-10-18 12:05:57 +08:00
Andrew Nicols
61e0f58ca3 MDL-63667 amd: Check for parent template recursion 2018-10-18 12:04:19 +08:00
Huong Nguyen
8b0a933d21 MDL-40695 Quiz: Move manual grading report display to renderer 2018-10-18 10:06:45 +07:00
Damyon Wiese
b51c5b929f MDL-63667 output: Fix for recursive templates
A template can include itself - e.g. by looping over the context children and rendering a tree.

Ensure this promise still resolves.

Example: admin/tool/lp/templates/competencies_tree.mustache.
2018-10-18 10:48:01 +08:00
Andrew Nicols
3212e7aaef Merge branch 'MDL-63658-master-2' of https://github.com/snake/moodle 2018-10-18 10:06:14 +08:00
Jake Dallimore
1f3c76f0ec MDL-63658 core_favourites: fix differences between install and upgrade 2018-10-18 09:40:07 +08:00
Andrew Nicols
2ac4ea89d9 Merge branch 'MDL-63658-master-2' of https://github.com/snake/moodle 2018-10-18 09:08:22 +08:00
Eloy Lafuente (stronk7)
4658eefa13 Merge branch 'MDL-63632-master' of git://github.com/andrewnicols/moodle 2018-10-18 02:38:57 +02:00
Jake Dallimore
8d9cd27b02 MDL-63658 core_favourites: let service object use get_component_names
This was using a helper, but now we have the function in core to achieve
the same thing, so use this instead.
2018-10-18 08:22:08 +08:00
Jake Dallimore
3a1ece149f MDL-63658 core: new method get_component_names() added to core 2018-10-18 08:22:07 +08:00
Jake Dallimore
b7a3ec6f8d MDL-63658 core_favourites: consolidate interfaces and rename
Let's worry about reuse of the crud code later, when that requirement
arises, so moved that into the ifavourite_repository interface, and then
renamed it favourite_repository_interface.
2018-10-18 08:22:07 +08:00
Jake Dallimore
0551ed3569 MDL-63658 core_favourites: rename user_favourites_service and services
Now: user_favourite_service (singular) and service_factory
2018-10-18 08:22:07 +08:00
Jake Dallimore
cb90b549b6 MDL-63658 core_favourites: singularise the repository class types
Instead of favourites_repository we now have favourite_repository,
which is more in line with other implementations of this pattern.
2018-10-18 08:22:07 +08:00
Jake Dallimore
cfaf86b059 MDL-63658 core_favourites: make favourite a first class object
This patch adds several things:
- favourite entity class under local/entity
- refactoring of repository and service to use the new class instead
of stdClass.
- update repository unit tests to use the object instead of stdClass.
- update service_test so that the mock repo requires the object for
the add operation.
- remove unnecessary constructor from favourites_repository class.
2018-10-18 08:22:07 +08:00
Jake Dallimore
8ffbe9c163 MDL-63658 core_favourites: adding paging support to the service layer 2018-10-18 08:22:07 +08:00
Jake Dallimore
ac9138db1c MDL-63658 core_favourites: implement privacy API for favourites 2018-10-18 08:22:06 +08:00
Jake Dallimore
4a02aae5f5 MDL-63658 core_favourites: namespace the repositories and services 2018-10-18 08:22:06 +08:00
Jake Dallimore
771051325b MDL-63658 core_favourites: add business logic aware service layer 2018-10-18 08:22:06 +08:00