12866 Commits

Author SHA1 Message Date
David Mudrak
5344ddd116 MDL-20438 warn the admin that we are just showing available updates
This warning is displayed so that folks do not expect any sort of
auto-update ala Wordpress (yet).
2012-03-30 11:05:42 +02:00
David Mudrak
718eb2a59f MDL-20438 small fixes spotted during various testing 2012-03-30 11:05:42 +02:00
David Mudrak
4442cc8036 MDL-20438 finishing the updatenotifybuilds feature
Unit tests say that all.
2012-03-30 11:05:42 +02:00
David Mudrak
21cde6ac14 MDL-20438 fixing the message_send() docblock
This is not directly relevant to the issue. I just spotted it while
working on the messaging API. Consider it as a well meant Trojan horse
on this branch ;-)
2012-03-30 11:05:42 +02:00
David Mudrak
a77141a7dc MDL-20438 send notifications via messaging API 2012-03-30 11:05:42 +02:00
David Mudrak
19d11b3b34 MDL-20438 introducing the cron_notifications() method
This method accepts all detected changes in cron-based fetch and picks
those the site admins want to be informed about (based on the maturity
level etc).
2012-03-30 11:05:42 +02:00
David Mudrak
c6f008e747 MDL-20438 dropping get_core_update_info() method
There is now a single method get_update_info() used for both core and
plugins.
2012-03-30 11:05:41 +02:00
David Mudrak
7b35553b9b MDL-20438 Introducing new compare_responses() method 2012-03-30 11:05:41 +02:00
David Mudrak
be37888050 MDL-20438 Initial support for cron based notifications
If enabled, Moodle sites will check for updates every night sometimes
between 01:00 AM and 06:00 AM local time. The actual offset will be
generated randomly at the beginning and used consistently since then.
This way, the queries against the server are supposed to be spread in
time.

Serious site admins should not try to upgrade their sites later than
01:00 AM as they are too tired already. Neither should they do it before
06:00 AM as they did not have a morning coffee yet and are too tired yet
:-)
2012-03-30 11:05:41 +02:00
David Mudrak
f9286139d9 MDL-20438 make sure that the curl class has been included
The filelib is usually loaded already. However, during some steps of the
upgrade the curl class must be available to perform fetches of updates
and the library does not need to be loaded yet.
2012-03-30 11:05:41 +02:00
David Mudrak
9bdedf322a MDL-20438 admin/plugins.php now respects required maturity setting 2012-03-30 11:05:41 +02:00
David Mudrak
55585f3ac0 MDL-20438 initial support for checking available core update
In case of Moodle code itself, there is no plugin_manager like class
available so the checker class itself must be aware of versions and
actually do the checks. On the other hand, we can always rely that
version, release and maturity are always returned by the remote server.
2012-03-30 11:05:41 +02:00
David Mudrak
7d8de6d84a MDL-20438 updated response format support
Multiple component updates are supported now. Code cleanup and
refactoring.
2012-03-30 11:05:40 +02:00
David Mudrak
2b47947ef5 MDL-20438 A set of unittests to illustrate the update checking integration in the plugin_manager 2012-03-30 11:05:40 +02:00
David Mudrak
dd119e21fa MDL-20438 Let plugin_manager class use the service provided by the new available_update_checker
All plugininfo classes now have new property that holds their remote
status information.
2012-03-30 11:05:40 +02:00
David Mudrak
cd0bb55f84 MDL-20438 Introducing new available_update_checker class
The purpose of the class is to fetch the information about available
updates for the Moodle core and/or Moodle components from a remote site
and cache it locally.
2012-03-30 11:05:40 +02:00
David Mudrak
00ef3c3ed1 MDL-20438 Introducing plugininfo classes factory and plugin manager unit tests 2012-03-30 11:05:40 +02:00
David Mudrak
9c26cf7060 MDL-20438 New moodle_major_version() function
We will need to know our major version to fetch the relevant data from remote
servers. This patch also fixes yet another place where the version used
to be hard-coded.
2012-03-30 11:05:40 +02:00
David Mudrak
4ed266809c MDL-20438 Change the order of plugin types at the overview pages 2012-03-30 11:05:40 +02:00
David Mudrak
d26f3ddde7 MDL-20438 New plugins overview panel displaying some stats 2012-03-30 11:05:39 +02:00
David Mudrak
b6ad85946d MDL-20438 Refactoring pluginlib before adding anything new
These changes are motivated by feedback from Tim Hunt (17 October 2011
in the developers chat room). The combination of using an interface, but
then putting all the useful information in public fields, was not good
design of this library. So I am merging the plugin_information interface
and the plugintype_base class into a new abstract class plugininfo_base.
This new class defines the basic API of all information holding
subclasses. This does not change the code, just puts the documentation
closer to the methods they are actually implemented.
2012-03-30 11:05:39 +02:00
Dan Poltawski
a4051353d1 Revert "Merge branch 'MDL-31914-master-4' of git://git.luns.net.uk/moodle"
This reverts commit 296c0247c6cc9e525721fc92b5a78c7146e6887d, reversing
changes made to 2511b0742a3695298d8216fe9723581c089909d7.

Conflicts:

	lib/db/upgrade.php
	version.php
2012-03-29 16:07:30 +08:00
Eloy Lafuente (stronk7)
3f0cb423b2 Merge branch 'w13_MDL-32095_m23_strict2' of git://github.com/skodak/moodle 2012-03-28 22:49:38 +02:00
Petr Skoda
b137739b5e MDL-32095 fix outputlib test to setup debug level properly 2012-03-28 22:47:57 +02:00
Petr Skoda
e63f95d7c1 MDL-12730 new debug levels (support strict) + upgrade from old ones 2012-03-28 16:39:42 +02:00
Eloy Lafuente (stronk7)
296c0247c6 Merge branch 'MDL-31914-master-4' of git://git.luns.net.uk/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-03-27 10:10:17 +02:00
Dan Poltawski
2511b0742a Merge branch 'MDL-32028' of git://github.com/nebgor/moodle 2012-03-27 14:46:52 +08:00
Aparup Banerjee
5eee9f7ade Merge branch 'w13_MDL-32109_m23_fastpurify' of git://github.com/skodak/moodle 2012-03-27 10:15:18 +08:00
Sam Hemelryk
a7cd1f5a53 Merge branch 'MDL-22510-master' of git://github.com/ankitagarwal/moodle 2012-03-27 11:03:19 +13:00
Sam Hemelryk
5dc1a544ea Merge branch 'MDL-11378-master-2' of git://git.luns.net.uk/moodle 2012-03-27 10:05:43 +13:00
Sam Hemelryk
c194925278 Merge branch 'master_MDL-32147' of git://github.com/danmarsden/moodle 2012-03-27 09:51:40 +13:00
Eloy Lafuente (stronk7)
9ee910e69c MDL-32112 mysql: change rename sql generator to pass validation 2012-03-26 19:57:58 +02:00
Eloy Lafuente (stronk7)
43616f61f1 Merge branch 'w13_MDL-32112_m23_dbman' of git://github.com/skodak/moodle 2012-03-26 19:40:58 +02:00
Petr Skoda
68a7c9a696 MDL-32095 some more E_STRICT fixes 2012-03-26 11:47:15 +02:00
Dan Poltawski
9efaab4949 Merge branch 'MDL-32176' of git://github.com/timhunt/moodle 2012-03-26 09:35:49 +08:00
Rajesh Taneja
4d6f9478ed MDL-31903 course: Title on highlight and hide icon should be only added in ie 2012-03-26 11:44:50 +13:00
Rajesh Taneja
618c155a24 MDL-31903 course: Highlight icon will get iniatlised properly 2012-03-26 11:44:50 +13:00
Rajesh Taneja
f753887155 MDL-31903 course: update patch to fix course highlight icon and title toggle 2012-03-26 11:44:50 +13:00
Juho Viitasalo
730477a878 MDL-31903 course: Fixed course highlight icon and title toggle 2012-03-26 11:44:16 +13:00
Sam Hemelryk
991b3a3a9b Merge branch 'MDL-32026-master-2' of git://git.luns.net.uk/moodle 2012-03-26 11:13:54 +13:00
Sam Hemelryk
75e5bd51ea Merge branch 'w13_MDL-31685_m23_filelocking' of git://github.com/skodak/moodle 2012-03-26 10:35:48 +13:00
Petr Skoda
436b961381 MDL-32112 use constants for field and table limits
For now using the same JS hardcoding trick Eloy did the last time...
2012-03-24 11:45:36 +01:00
Petr Skoda
7fd31fe86c MDL-32112 horrible hack that ignores invalid size for XMLDB_TYPE_NUMBER in numerical question type
The easies fix could be to use VARCHAR instead because this field is used only for reading and writing, no selects on this field it seems.
2012-03-24 11:40:15 +01:00
Petr Skoda
d3232735ee MDL-32112 validate float definition in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda
54e71a43ba MDL-32112 validate number definition in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda
720d605e61 MDL-32112 validate integer definition in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda
f9090b195b MDL-32112 validate table name restrictions in sql_generator 2012-03-24 11:40:15 +01:00
Petr Skoda
6cfade8f5a MDL-32112 validate field name restrictions in sql_generator 2012-03-24 11:40:14 +01:00
Petr Skoda
f0bf9ffeaa MDL-31685 new setting for prevention of file based locking
Please note that this setting can not be stored in database because some scripts use ABORT_AFTER_CONFIG.
2012-03-24 11:37:13 +01:00
Petr Skoda
62cd8cd9f5 MDL-32029 fix get_tables() when prefix empty in external database 2012-03-24 11:36:01 +01:00