Last modified: 2011-03-13 18:06:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26524, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24524 - Proposal: Single maintenance entry point
Proposal: Single maintenance entry point
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.17.x
All All
: Lowest enhancement (vote)
: ---
Assigned To: Chad H.
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-24 11:22 UTC by Liangent
Modified: 2011-03-13 18:06 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Liangent 2010-07-24 11:22:45 UTC
Inspired by Django's manage.py

Is it possible to build a single entry point for all maintenance tasks? For example,

php maintenance/update.php -> php maintenance.php update
php maintenance/changePassword.php -> php maintenance.php changePassword --user A --password B

And allow extensions, such as LocalisationUpdate, to add their own maintenance commands here as well. So,

php extensions/LocalisationUpdate/update.php -> php maintenance.php localisationUpdate
Comment 1 Max Semenik 2010-07-24 11:27:40 UTC
Could be easily done with our new maintenace system. However, this form will be a bit more verbose - what are the benefits?
Comment 2 Liangent 2010-07-24 11:34:28 UTC
(In reply to comment #1)
> Could be easily done with our new maintenace system. However, this form will be
> a bit more verbose - what are the benefits?

First, maintenance directory is crowded, and not all files are expected to be used as maintenance scripts (for wiki sysadmins). This can give a clearer list of maintenance commands for them.

Second, extensions' maintenance scripts, such as LocalisationUpdate's, are scattered across the whole extension directory. I guess a central point looks better.
Comment 3 Max Semenik 2010-07-24 11:37:29 UTC
We will not remove older entry points any time soon due to backwards compatibilty, otherwise might be worth implementing.
Comment 4 p858snake 2010-07-24 11:45:16 UTC
Perhaps we should develop a folder naming standard for maintenance scripts provided by extensions like what we do (or at least discussed) for the testing framework, Which will also give a unified entry point a basis of where to look for them.

Perhaps something sweet and simple like. "/extensions/<NAME>/maintenance/".
Comment 5 Chad H. 2010-07-24 22:16:39 UTC
It's possible, but I don't think it's useful at all. WONTFIX.
Comment 6 Platonides 2010-07-24 22:19:26 UTC
Our maintenance scripts already have now a consistent interface. I agree, WONTFIX.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links