Last modified: 2013-04-22 16:16:01 UTC
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.
http://en.wikipedia.org/w/api.php?action=query&list=recentchanges&rcnamespace=6&rctype=new simulates NewFiles.
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.
http://en.wikipedia.org/w/api.php?action=query&list=logevents&letype=upload maybe?
(In reply to comment #4) > http://en.wikipedia.org/w/api.php?action=query&list=logevents&letype=upload > maybe? That looks better. But contains deleted files.
*** Bug 40120 has been marked as a duplicate of this bug. ***
I'm going to look at this one. From bug 40120.
Code patch in Gerrit: https://gerrit.wikimedia.org/r/23984
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?
Merged.
Awesome, thanks!