Page MenuHomePhabricator

API: Add timestamp sort to list=allimages
Closed, ResolvedPublic

Description

I have not found a way, to get images sorted by timestamp, so there is no way to simulate Special:NewFiles with the api.

Please allow sorting by timestamp for list=allimages with optional start/end
(see list=categorymembers for a example of timestamp sorting in an api module).

Thanks.


Version: 1.21.x
Severity: enhancement

Details

Reference
bz27202

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:16 PM
bzimport set Reference to bz27202.

Bryan.TongMinh wrote:

The person doing this should take a careful look into the indices on the image table, which may are all single column indices.

(In reply to comment #1)

http://en.wikipedia.org/w/api.php?action=query&list=recentchanges&rcnamespace=6&rctype=new
simulates NewFiles.

No, that are only created pages in file namespace (file description, maybe of shared files), not new uploaded files. That simulate http://en.wikipedia.org/w/index.php?title=Special%3ANewPages&namespace=6

File description created by upload are not listed in recentchanges, only the log event.

  • Bug 40120 has been marked as a duplicate of this bug. ***

I'm going to look at this one. From bug 40120.

ping - would some developers/maintainers review the patch (see comment 8) please?

Ping - would some developers/maintainers review the patch in gerrit (see comment 8, +172, -50) please?