22938 Commits

Author SHA1 Message Date
Dan Poltawski
cf8c463de6 Merge branch 'MDL-57009-master' of git://github.com/damyon/moodle 2017-02-07 12:32:34 +00:00
Dan Poltawski
125fa38af3 Merge branch 'MDL-57370-master' of git://github.com/ryanwyllie/moodle 2017-02-07 10:35:13 +00:00
Damyon Wiese
3d6ae65b61 MDL-57009 javascript: Reject on all errors
Not all error paths were resulting in a reject() call to fail a promise.
2017-02-07 15:36:48 +08:00
Damyon Wiese
f3cd5c5b7b MDL-57009 javascript: Always use when.apply
Or it does not really wait for the promises.
2017-02-07 15:03:43 +08:00
Ryan Wyllie
b1e6f1a8fb MDL-57370 message: deprecate message_get_recent_conversations 2017-02-07 01:40:47 +00:00
Ryan Wyllie
98be2d2009 MDL-57370 message: change indexes on message tables 2017-02-07 01:40:47 +00:00
Eloy Lafuente (stronk7)
7373f641e5 Merge branch 'MDL-57846-master' of git://github.com/jleyva/moodle 2017-02-07 00:12:30 +01:00
Eloy Lafuente (stronk7)
f20f598ab5 Merge branch 'MDL-57841-master' of git://github.com/damyon/moodle 2017-02-06 20:18:17 +01:00
Eloy Lafuente (stronk7)
8abe17288b Merge branch 'MDL-57844-master' of git://github.com/dpalou/moodle 2017-02-06 19:53:55 +01:00
Eloy Lafuente (stronk7)
f65a48c50e Merge branch 'MDL-53349-master' of https://github.com/xow/moodle 2017-02-06 16:06:25 +01:00
Dani Palou
21d9f020ae MDL-57844 message: Add some message WS to the Mobile service 2017-02-02 10:03:05 +01:00
Damyon Wiese
b302369d17 MDL-57009 javascript: cibot nagging 2017-02-02 15:54:19 +08:00
Damyon Wiese
39bf2a985b MDL-57009 javascript: Dont rely on async ajax
Recursively pre-scan mustache templates to extract the list of blocks and partials. Then
we can pre-fetch them all and don't have to rely on jquery async ajax (which is deprecated).

This is part of a refactoring of the promises code in the templates module to prevent duplicate requests.
2017-02-02 15:54:19 +08:00
Damyon Wiese
f20a336b43 MDL-57009 js: Do not fetch the same template twice
Also clean up promises use of done vs then.
2017-02-02 15:54:19 +08:00
Damyon Wiese
dcdf7c6155 MDL-57009 js: Skip ajax request for same string
This is done by caching the first promise generated to fetch a string.
2017-02-02 15:54:19 +08:00
Juan Leyva
d472f530ac MDL-57846 core_exporter: Allow properties description in exporters 2017-02-01 19:10:18 +01:00
Nadav Kavalerchik
e375029ea0 MDL-53349 Autocomplete: Support multi lingual COMMA keycode (44) 2017-02-01 16:00:41 +08:00
Damyon Wiese
13fb78a4f6 MDL-57841 exporter: Allow scalars as related objects 2017-02-01 15:30:56 +08:00
Ankit Agarwal
5e80c61df4 MDL-57027 accesslib: Improve perf of sql 2017-02-01 13:01:29 +08:00
Petr Skoda
a6210651a9 MDL-57027 fix get_users_by_capability()
Change-Id: I98dc88784dfa0293f88a19c3d36e7a46a3f52672
2017-02-01 13:01:28 +08:00
Dan Poltawski
8cf4591a8e Merge branch 'wip-mdl-54628' of https://github.com/rajeshtaneja/moodle 2017-02-01 13:01:26 +08:00
Andrew Nicols
7463727761 Merge branch 'wip-MDL-57568-master' of git://github.com/abgreeve/moodle 2017-01-30 13:56:16 +08:00
Rajesh Taneja
36cc9f8e37
MDL-54628 behat: Set behat dir for each run under behat_dataroot
Before this patch behat_dataroot for parallel runs
were created at same level as ->behat_dataroot
After this patch, it will be created 1 level under
->behat_dataroot with BEHAT_PARALLEL_SITE_NAME
prefix and run number as suffix. This will allow
common files as test enabled and parallel run info
to be saved in parent directory and access it easily.
2017-01-30 08:51:53 +08:00
Helson Castro
5ad0bb82f1 MDL-57568 forms: Added missing include for button element. 2017-01-27 13:58:31 +08:00
Dan Poltawski
e7ecb4a90f MDL-57690 js: fix core modal uses in amd
Converting the uses to the AMD modules is a bit risky for now, instead
just require the YUI depdency.
2017-01-26 11:28:59 +00:00
Dan Poltawski
0053c77d62 MDL-57690 js: fix missing requirement before using M.core.dialogue 2017-01-26 08:52:50 +00:00
Andrew Nicols
ae099a2a1d Merge branch 'MDL-57273-master' of git://github.com/damyon/moodle 2017-01-25 08:48:27 +08:00
wehr
88671590f2 MDL-57655 session: Adds igbinary serializer to Redis session handler 2017-01-25 00:47:25 +01:00
Eloy Lafuente (stronk7)
0396389272 Merge branch 'MDL-57690-master' of git://github.com/danpoltawski/moodle 2017-01-24 20:22:44 +01:00
Eloy Lafuente (stronk7)
0db24a200a Merge branch 'MDL-49423-master' of git://github.com/jleyva/moodle 2017-01-24 19:05:51 +01:00
Damyon Wiese
6b206c5309 MDL-57273 persistent: Dont allow set and get for helpers
Helper methods (ie custom methods on a persistent) should not be callable via set() or get() even
if they start with set_ or get_. They are not the same as custom getters and setters for real persistent
properties.
2017-01-24 15:39:53 +08:00
Damyon Wiese
0ce135f65d MDL-57273 persistent: Some more magic __call conversions
I missed all the entry pages when converting from set_abc() and get_abc() to set('abc', ) and get('abc').

Also fixed a wrong namespace for core_competency\external\performance_helper
2017-01-24 15:20:07 +08:00
Dan Poltawski
cffa0ec79b Merge branch 'wip_master_mdl-50625_ldap_better_check_paged_results_support' of https://github.com/iarenaza/moodle 2017-01-23 16:21:02 +00:00
Damyon Wiese
e97e96155a MDL-57273 persistent: Fix access to set/get in test
The setters and getters for the path property in the test class need to be protected.
2017-01-23 14:18:04 +08:00
Damyon Wiese
d5818626c0 MDL-57273 persistent: Improved style
Use \blah::class instead of '\\blah' in define_class functions.
Allow chaining of setters by returning $this.
2017-01-23 11:58:59 +08:00
Rajesh Taneja
1d37f50ee0
MDL-54628 behat: Show parallel run command with proper rerun option 2017-01-23 10:37:19 +08:00
Juan Leyva
1295885084 MDL-49423 admin: Support optgroup in admin_setting_configmultiselect 2017-01-20 13:09:02 +01:00
Juan Leyva
25905de518 MDL-49423 admin: Support optgroup in admin_setting_configselect 2017-01-20 13:09:01 +01:00
Damyon Wiese
599acbe776 MDL-57273 persistent: protected custom getters
(and setters).
2017-01-20 12:56:19 +08:00
Damyon Wiese
9c91a9593d MDL-57273 core: Remove magic setters and getters
Remove the magic getters and setters from persistent. They are deprecated only in the persistent
class for competencies.
2017-01-20 12:56:19 +08:00
Frederic Massart
32896dcbab MDL-57273 core: Using $renamedclasses for deprecated classes 2017-01-20 12:56:19 +08:00
Frederic Massart
547801a411 MDL-57273 form: Persistent form automatically setType on some fields 2017-01-20 12:56:19 +08:00
Frederic Massart
b505a9e4e0 MDL-57273 core: Migrating the persistent form class to core 2017-01-20 12:56:19 +08:00
Frederic Massart
4bc68a416e MDL-57273 core: Exporters support custom formatting parameters 2017-01-20 12:56:19 +08:00
Frederic Massart
6e28143599 MDL-57273 core: Migrating core_competency exporters into core 2017-01-20 12:56:18 +08:00
Frederic Massart
2198e0e94a MDL-57273 core: Migrating persistent from core_competency into core 2017-01-20 12:56:18 +08:00
John Beedell
8b0d254f05 MDL-57511 Quiz: Attempts report shows non-unique debugging 2017-01-19 14:27:55 +00:00
Iñaki Arenaza
e47863e840 MDL-50625 auth_ldap: Better check for paged results support
There is at least one LDAP server (Sun Directory Server) that doesn't
support Paged Results extension, even if it supports LDAP version 3. So
checking just for LDAP version is not enough.

If possible, we check the supportedControl attribute of the LDAP rootDSE
and see if the paged results control is available. This needs an LDAP
connection, which might not be possible to establish before we configure
some essential LDAP settings (server, bind user, password, etc.). Thus
we try to establish the connection and check the supportedControl
attribute. But if we fail, we perform only basic checks that are less
accurate and err on the side of cautiousness.
2017-01-19 10:55:26 +01:00
Dan Poltawski
935584aaba MDL-57690 yui: remove the mcore rollup
This was is pre-loading some modules which are not used in boost:

* Block docking
* Popup Help

The other pre-loaded requirements were used for YUI dialogues and
modals. With time we are moving away from these, so rather than
'pre-loading' we can let the yui loader do its job.
2017-01-19 08:10:34 +00:00
Dan Poltawski
f745b81201 MDL-57690 output: stop requiring moodle-core-popuphelp on every page
In boost we are not longer using this module, so lets limit it to
bootstrapbase only
2017-01-19 08:10:34 +00:00