63 Commits

Author SHA1 Message Date
Dan Poltawski
789ce8202b Merge branch 'MDL-39148-uninstall' of git://github.com/mudrd8mz/moodle
Conflicts:
	theme/bootstrap/style/generated.css
2013-04-22 14:33:28 +01:00
Dan Poltawski
816659ed9e Merge branch 'MDL-39249-upgrade-wizard' of git://github.com/mudrd8mz/moodle 2013-04-22 13:12:48 +01:00
David Mudrák
5d7a4bab3f MDL-39249 Return to the correct page after successful update deployment
The method available_update_deployer::make_execution_widget() used to
have hard-coded return URL. Now it accepts the return URL as the second
parameter and passes it to the mdeploy.php utility.

The callerurl parameter is now correctly passed and used.
2013-04-20 03:00:19 +02:00
David Mudrák
2f838a4e93 MDL-39248 Display only plugins with available updates at plugins check 2013-04-20 00:42:02 +02:00
David Mudrák
9074e47871 MDL-39148 Highlight plugin status at the overview screen
Plugins that are to be installed and plugins that are missing from disk
are now highlighted at the Plugins overview screen. Other statuses (such as
of plugin to be upgraded) should not be needed at this page as those
are primarily intended for the Plugins checks screen during the upgrade.
2013-04-19 13:21:39 +02:00
David Mudrák
3ca1b54642 MDL-39087 Use progress_trace class to display uninstallation progress
This is much better API than using the array passed by reference. At the
moment, it is pretty hacky as it abuses text_progress_trace to output
raw HTML echoed by uninstall_plugin() but that will be improved later
while moving the logic out of that function into the plugin_manager.
2013-04-12 04:02:28 +02:00
David Mudrák
c2d2001a14 MDL-39087 Improve the Plugins overview renderer
As suggested by Tim Hunt during the peer-review, rendering methods
should not set properties of the page they are producing HTML code for.
Additionally, the page now uses correct check that the uninstalling can
happen.
2013-04-12 03:32:35 +02:00
David Mudrák
54d7589397 MDL-39087 Improve the Plugins overview table layout
This patch returns the layout of the Uninstall | Settings links to two
columns. There is no space saved on the screen by using the single
column and two columns align better. The reasoning for using single
column was that there would be multiple links in the 'Actions' column
but that does not seem to happen anytime soon.
2013-04-12 01:44:35 +02:00
David Mudrák
73658371eb MDL-39087 Simplify get_uninstall_url() interpretation
The get_uninstall_url() method of all subclasses of plugininfo_base
class is now expected to always return moodle_url. Subclasses can use
the new method is_uninstall_allowed() to control the availability of the
'Uninstall' link at the Plugins overview page (previously they would do
it by get_uninstall_url() returning null). By default, URL to a new
general plugin uninstall tool is returned. Unless the plugin type needs
extra steps that can't be handled by plugininfo_xxx::uninstall() method
or xmldb_xxx_uninstall() function, this default URL should satisfy all
plugin types.

The overall logic is implemented in plugin_manager::can_install_plugin()
that respects the plugininfo class decision and vetoes it in certain
cases (typically when plugin or its subplugin is required by some other
plugin).
2013-04-12 01:44:35 +02:00
David Mudrák
436d94478d MDL-39087 Implement a common interface for uninstalling general plugin
Plugins may use this general tool for uninstallation and eventually
removal of the deployed source code. At the moment, this is implemented
as a wrapper for the core function uninstall_plugin() with an extra hook
in the relevant plugin info subclass.

For non-standard add-ons, the tool can remove the deployed plugin source
code as well, if the web server has required write permissions. Ideally,
all add-ons installed via the new tool_installaddon should be removable
via the web interface as well.
2013-04-12 01:42:58 +02:00
Rossiani Wijaya
6fc61f2d08 MDL-36554 Admin settings: make tables class consistent throughout admin settings 2013-01-14 10:10:54 +08:00
Dan Poltawski
f92340ed3f Merge branch 'MDL-36948-master' of git://github.com/FMCorz/moodle 2012-12-03 11:59:01 +08:00
David Mudrák
30e2682756 MDL-36903 Pre-check the ZIP download before executing the mdeploy.php utility
This patch makes Moodle call HTTP HEAD method via cURL to see if the ZIP
is expected to be downloadable by mdeploy.php. This is mainly intended
for SSL certificates check.
2012-11-30 16:09:58 +01:00
Frederic Massart
c2e10ac08a MDL-36948 usability: Styling for new reload icon 2012-11-30 20:19:16 +08:00
Frederic Massart
fa9c0aab13 MDL-36633 usability: Styling over the admin pages 2012-11-21 17:29:13 +08:00
David Mudrák
0daa642894 MDL-35238 Inform the admin if the update can not be deployed due to write permissions 2012-11-09 00:20:18 +01:00
David Mudrák
08c3bc006d MDL-35238 Warn the admin if they are about to overwrite a SCM checkout 2012-11-08 22:33:07 +01:00
David Mudrák
6aa2e2881a MDL-35238 Admin renderer method to display the plugin update confirmation page 2012-11-08 22:33:06 +01:00
David Mudrák
fa3feafbbb MDL-35238 Display a button to install an available update 2012-11-08 22:33:06 +01:00
David Mudrák
7bc759bd44 MDL-35238 Remove the hide/show icon from the Plugins overview page
This was reported in forums as an usability issue. This icon is used
across Moodle as an active link to hide or show things - not as a status
icon. People were trying to disable plugins by clicking the icon. Until
there is a full support for doing this from the Plugins overview page,
it is better to remove the icons completely.
2012-11-08 22:33:06 +01:00
David Mudrák
4df8bced23 MDL-35238 Allow filtering at the Plugins overview page 2012-11-08 22:33:06 +01:00
David Mudrák
966bd7852e MDL-34099 Report available updates for plugins at admin/index.php
The Notifications (admin/index.php) page has now information about
available updates for core and eventually plugins, too. Note that the
structure of the available updates array changed. This breaks backward
compatibility for eventual 3rd renderers out there (not expected
though).
2012-11-08 22:33:05 +01:00
Eloy Lafuente (stronk7)
dbaf9d448d Merge branch 'wip-MDL-22955-m24' of git://github.com/samhemelryk/moodle 2012-10-10 00:35:11 +02:00
Sam Hemelryk
436dbeecda MDL-22955 theme: Added ability to use SVG format for icons 2012-10-08 09:16:14 +13:00
Rajesh Taneja
956082f18d MDL-35397 Administration: changed link for 'many other contributors'
Previously 'many other contributors' was pointing to http://docs.moodle.org/dev/Credits
now, it will point to http://moodle.org/dev.
2012-10-02 13:41:13 +08:00
Petr Škoda
774c42a8d3 MDL-34046 improve mixed files upgrade error
Credit goes to Gordon Bateson.
2012-07-06 08:00:53 +02:00
Dan Poltawski
b3245b758c Merge branch 'MD-31803' of git://github.com/mouneyrac/moodle
Conflicts:
	admin/index.php
	admin/renderer.php
	version.php
2012-06-04 19:25:58 +08:00
Petr Skoda
0aff15c2c9 MDL-33007 add workaround for broken iconv //IGNORE
This patch adds mbstring utf-8 cleanup fallback and admin warning if no utf-8 cleanup possible in user submitted data.
2012-06-01 12:23:09 +02:00
David Mudrak
e937c5456e MDL-32329 fixed missing phpdoc and improved coding style
Credit goes to Aparup Banerjee for spotting this during the integration
review.
2012-05-30 10:35:28 +02:00
David Mudrak
ead8ba3b63 MDL-32329 improved plugin dependencies check on upgrade
Previously, it was the renderer method that actually called
all_plugins_ok(). I believe that renderer methods should not be
responsible for such an important step in the install/upgrade code flow.
So dependencies are now checked by admin/index.php on upgrade, too.
2012-05-30 10:35:28 +02:00
David Mudrak
39f15cc712 MDL-32329 check for plugin dependencies during the pre-install checking
This follows the same path as we have in CLI installers. Plugin
dependencies are checked right after the environment checks and the
install can't continue unless all dependencies are fixed.
2012-05-30 10:35:28 +02:00
Sam Hemelryk
2bdafb867a Merge branch 'MDL-32337-uptodate' of git://github.com/mudrd8mz/moodle 2012-05-17 14:55:21 +12:00
David Mudrak
cb1c329186 MDL-32337 admin notifications page checks for the recent updates fetch timestamp
Now the message 'Your Moodle code is up-to-date!' is displayed only if
the fetch was done within the last hour. Otherwise, just the button
'Check for available updates' is displayed.
2012-05-15 16:59:45 +02:00
David Mudrak
4db58f5fc7 MDL-32610 available updates info at the admin Notifications page can be hidden 2012-05-15 14:30:47 +02:00
David Mudrak
fa1d403f2e MDL-32610 available updates info at the Plugins check upgrade page can be hidden 2012-05-15 14:23:48 +02:00
David Mudrak
7716057f7d MDL-32610 available updates info at the Plugins overview admin page can be hidden 2012-05-15 13:43:08 +02:00
David Mudrak
8342171b52 MDL-20438 reintroducing plugin_management_page renderer method
See http://moodle.org/local/chatlogs/index.php?conversationid=9784#c340340
for the whole saga.
2012-03-30 11:05:42 +02:00
David Mudrak
a687fcac7a MDL-20438 added a link to toggle the plugins check page back to the shorter list 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
96dd92376f MDL-20438 display available updates during the upgrade, too
We are displaying available updates for installed plugins only. It was
decided (by me and Eloy) that we will not display info about available
Moodle update during the upgrade. It seems to be redundant as the admin
just uploaded a new version of Moodle so they probably chose what they
wanted.
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
e761138997 MDL-20438 colorize available updates for a plugin based on the update's maturity level 2012-03-30 11:05:41 +02:00
David Mudrak
37f75ad459 MDL-20438 colorize the maturity warning at the admin notifications page 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
3204daeae3 MDL-20438 The Plugins overview admin page now provides a way to check for updates 2012-03-30 11:05:40 +02:00
David Mudrak
2b135b05d8 MDL-20438 Making the plugins overview page space-friendly 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
Eloy Lafuente (stronk7)
679f37e5fe Merge branch 'w03_MDL-31161_m23_reqpluginnotice' of git://github.com/skodak/moodle 2012-01-17 02:05:53 +01:00
Aparup Banerjee
c8be518100 Merge branch 'w03_MDL-30929_m23_stalefiles' of https://github.com/skodak/moodle 2012-01-16 16:15:04 +08:00