Admin reports in 2.x

Admin reports in 2.x

by Mark Johnson -
Number of replies: 1
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Have I missed something, or has the Admin Report plugin type been left by the wayside in 2.x?  There seem to be a few areas where they dont seem to support the same features enjoyed by the other plugin types. For example:

  • Defining settings in settings.php doesn't seem to generate a settings form anywhere
  • There doesn't appear to be a "Manage Admin Reports" page that allows you to, for example, remove an installed report plugin.
These features are present for every other plugin type I've worked with, and the lack of them makes developing admin reports a pain. Perhaps, as I say, I've missed something and this plugin type is deprecated in favour of another (perhaps Local?), but I don't remember seeing this anywhere.
Average of ratings: -
In reply to Mark Johnson

Re: Admin reports in 2.x

by sam marshall -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Settings.php is necessary for admin reports but isn't handled automatically like it is for other plugin types. Since admin reports by definition appear in the admin menu (er once you set that up in settings.php) it didn't hugely make sense to have a separate settings page. If you need one it is still possible to add one from there...

(Note: I don't think this is behaviour is 'right', it would be nicer if settings.php worked same in all plugins (e.g. local plugins too) and there was some different mechanism for adding things to random places in the admin tree. But, it's possible to use it to achieve everything you need.)

Agree that the manage page should be present, there is no way to delete them from database (not that this does much harm, but it's sucky).

Note that until various 2.0.x point releases, local plugins and course reports also didn't have any 'standard' appearance on the admin menu. Admin reports have not been singled out for special ignoring. smile

So basically, the plugin type is not deprecated.

Petr and others are considering some more standardisation with a new 'admin tool' type which would also be used to reorganise standard admin behaviour [everything else on the admin menu] so that it is less monolithic. So far as I know this isn't finalised or underway, just talked about. If this were ever implemented, I can see it's possible that admin reports would be deprecated in favour of admin tools (because a report is a tool, and is there really a need for two separate plugin types in that case) but this would apply to some theoretical future version - 2.2 or whatever - and clearly not to Moodle 2.1.

--sam

Average of ratings: Useful (1)