Last modified: 2013-04-22 16:16:01 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 T29202, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27202 - API: Add timestamp sort to list=allimages
API: Add timestamp sort to list=allimages
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.21.x
All All
: Normal enhancement (vote)
: 1.21.0 release
Assigned To: Jesús Martínez Novo (Ciencia Al Poder)
:
: 40120 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-06 18:57 UTC by db [inactive,noenotif]
Modified: 2013-04-22 16:16 UTC (History)
8 users (show)

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


Attachments

Description db [inactive,noenotif] 2011-02-06 18:57:55 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.
Comment 2 Bryan Tong Minh 2011-02-06 19:14:21 UTC
The person doing this should take a careful look into the indices on the image table, which may are all single column indices.
Comment 3 db [inactive,noenotif] 2011-02-06 19:50:04 UTC
(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.
Comment 5 db [inactive,noenotif] 2011-02-11 19:56:22 UTC
(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.
Comment 6 Jesús Martínez Novo (Ciencia Al Poder) 2012-09-12 18:52:37 UTC
*** Bug 40120 has been marked as a duplicate of this bug. ***
Comment 7 Jesús Martínez Novo (Ciencia Al Poder) 2012-09-12 18:55:43 UTC
I'm going to look at this one. From bug 40120.
Comment 8 Jesús Martínez Novo (Ciencia Al Poder) 2012-09-16 20:13:25 UTC
Code patch in Gerrit: https://gerrit.wikimedia.org/r/23984
Comment 9 Andre Klapper 2012-10-22 18:15:46 UTC
ping - would some developers/maintainers review the patch (see comment 8) please?
Comment 10 Andre Klapper 2012-12-03 11:36:26 UTC
Ping - would some developers/maintainers review the patch in gerrit (see comment 8, +172, -50) please?
Comment 11 Brad Jorsch 2012-12-03 15:41:31 UTC
Merged.
Comment 12 Andre Klapper 2012-12-03 16:35:14 UTC
Awesome, thanks!

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


Navigation
Links