Page MenuHomePhabricator

Remove query.php
Closed, ResolvedPublic

Description

As the api now has all the functionality that query had, I thikn it's time to remove query.php from the face of earth


Version: unspecified
Severity: normal

Details

Reference
bz12881

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:04 PM
bzimport set Reference to bz12881.

I can confirm that all features in query.php have been ported to api.php, and that query.php is now obsolete. I'll leave the honor of removing query.php (or adding an OBSOLETE file) to Yuri, though.

Posted ref to this bug on the mailing lists, waiting for any last minute "oh my god, it will stop google.com from searching wiki" emails.

For anyone porting query.php to api.php, see documentation at http://www.mediawiki.org/wiki/API

Thanks everyone, LONG LIVE THE query.php :)))

Let's wait until 1.12 release, please

Yes, there is no hurry in removing the feature. Let's just announce it every where for now.

I also would recommend replacing query.php with a wrapper to the current API. If they're as similar as described, this shouldn't be a difficult task and it will avoid most backward-compatibility breakage.

(In reality of course there will probably be some calls which won't return the same results exactly, but that's better than just chucking the old API out.)

BotQuery is currently terribly unmaintained - only 6 commits to it this year, and none of them were significant, just some quick hacks. I'm afraid that it's already semi-functional, and thigs are getting only worse as time passes. If there is no one willing to either maintain it or rewrite it as an API wrapper, it should be disabled anyway.


[1] http://en.wikipedia.org/w/query.php?what=revisions&titles=Main%20Page&rvuniqusr&rvlimit=3&rvcomments&rvcontent

Note: query.php is currently used by Lupin's Popups ([[WP:NAVPOP]]), which already seems to fail sometimes, seemingly due to problems with query. Popups will need to be tweaked to work with API before this request could be fulfilled.

Died a violent death yesterday. Long live the API!