13006 Commits

Author SHA1 Message Date
Petr Skoda
4ac88d6d10 MDL-32149 remaining phpunit tests for backup/restore 2012-04-03 22:30:55 +02:00
Petr Skoda
728eadac78 MDL-32149 significantly faster database reset, "util.php --drop" can now be interrupted at any time 2012-04-03 22:30:54 +02:00
Petr Skoda
dbf5a44798 MDL-32149 add backup tests and dropping of extra tables 2012-04-03 22:30:54 +02:00
Petr Skoda
458b33866d MDL-32149 reset all globals in PHPUnit tests, fix setting of $USER 2012-04-03 22:30:54 +02:00
Petr Skoda
a3d5830a0a MDL-32149 PHPUnit test support - part 2
Includes:
* constants refactoring
* reworked db table init
* support for $CFG->debug = -1
* functional DB tests
* fixed $DB->get_indexes() to not throw exceptions when table does not exist
* fix handling of user passwords in test db
* add debug info to exception messages
* removed unnecessary PHP debug errors from mathslib
* fixed @error suppression in get_string
* fixed PHPUnit error handler setup
* added timezone info to default install
2012-04-03 22:30:53 +02:00
Eloy Lafuente (stronk7)
46ed2f8b7f Merge branch 'w14_MDL-32251_m23_strict3' of git://github.com/skodak/moodle 2012-04-03 21:17:58 +02:00
Aparup Banerjee
c82745d016 Merge branch 'wip-MDL-30784-master' of git://github.com/phalacee/moodle 2012-04-03 17:00:47 +08:00
Aparup Banerjee
82d5042a73 Merge branch 'wip-MDL-31789-master' of git://github.com/marinaglancy/moodle 2012-04-03 16:31:53 +08:00
Aparup Banerjee
9cafd9c6e0 Merge branch 'wip-MDL-32081-m23' of git://github.com/samhemelryk/moodle 2012-04-03 16:08:18 +08:00
Petr Skoda
4218d813bf MDL-32251 add missing spikephpcoverage modification info, improve coding style in competionlib 2012-04-03 07:59:39 +02:00
Aparup Banerjee
bc706271c8 Merge branch 'wip-MDL-32171-master' of git://github.com/marinaglancy/moodle 2012-04-03 11:42:58 +08:00
Rajesh Taneja
ab6ec58a2e MDL-32270 Library: ->defaulthomepage is checked before used 2012-04-03 11:28:07 +08:00
Sam Hemelryk
7b98a1dfd8 Merge branch 'wip-mdl-32150' of git://github.com/rajeshtaneja/moodle 2012-04-03 10:33:06 +12:00
Dan Poltawski
8408d23c99 Merge branch 'w14_MDL-32250_m23_simpletest110' of git://github.com/skodak/moodle 2012-04-02 16:15:35 +08:00
Sam Hemelryk
f9488a6f73 MDL-30981 upgrade: Fixed a couple of phpdoc typos 2012-04-02 12:27:23 +12:00
Sam Hemelryk
ea6805f009 Merge branch 'MDL-30981' of git://github.com/stronk7/moodle 2012-04-02 12:26:41 +12:00
Eloy Lafuente (stronk7)
39b90b5152 MDL-30981 Upgrade API: Added related phpdocs 2012-04-02 00:40:13 +02:00
Sam Hemelryk
3279dd4253 Merge branch 'MDL-31711' of git://github.com/nebgor/moodle 2012-04-02 10:22:22 +12:00
Petr Skoda
d9d61fa340 MDL-32251 use standard PHP debug levels instead of original 38911 2012-03-30 19:19:06 +02:00
David Mudrak
cd89994d88 MDL-20438 getting rid of left to-do notes 2012-03-30 11:05:42 +02:00
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
Rajesh Taneja
a415ecc21c MDL-30051 cron: login error sql is now cross db 2012-03-30 16:48:31 +08:00
Rossiani Wijaya
f9f281b8fe MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag 2012-03-30 16:26:58 +08:00
Rajesh Taneja
91f7f8c1c1 MDL-32150 Libraries: checkbox controller will not check or uncheck freezed checkboxes 2012-03-30 13:04:04 +08:00
Rajesh Taneja
af8def57f6 MDL-32150 Libraries: checkall and uncheckall will not select disabled or readonly checkboxes 2012-03-30 13:04:04 +08:00
Marina Glancy
a45e65206a MDL-32171: add 'Manage' link to Picasa repository 2012-03-30 08:33:28 +08:00
Marina Glancy
b2cb00c2e9 MDL-31789: Allowing context object to be passed to JS using json_encode()
Classes with magic properties such as context do not pass through json_encode().
The solution is to implement iterator in such classes and convert what we
feed to json_encode to array using 'foreach' before we pass it to json_encode():
- class context implements IteratorAggregate
- added function convert_to_array() that converts anything to array
- before calling json_encode we convert the argument to array
2012-03-30 08:27:53 +08:00
Jason Fowler
27c3b8d8c7 MDL-30784 - lib - Patch provided by Jason Hardin to provide detection for Android Tablets to allow the theme engine to provide the tablet theme 2012-03-30 08:16:38 +08:00
Sam Hemelryk
aa4a6566a5 MDL-29678 lib: Require login now overrides to false for AJAX scripts 2012-03-30 10:23:46 +13:00
Sam Hemelryk
04bcd1ce39 MDL-29678 navigation: Navigation AJAX require_login calls no longer set wantsurl or redirect 2012-03-30 10:23:46 +13:00