Last modified: 2014-05-10 09:38:18 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 T28872, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26872 - API: allow listing of files uploaded by user
API: allow listing of files uploaded by user
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.18.x
All All
: Lowest enhancement with 1 vote (vote)
: 1.21.x release
Assigned To: Jesús Martínez Novo (Ciencia Al Poder)
:
: 33589 35613 (view as bug list)
Depends on:
Blocks: 22744 46839
  Show dependency treegraph
 
Reported: 2011-01-22 19:32 UTC by Umherirrender
Modified: 2014-05-10 09:38 UTC (History)
14 users (show)

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


Attachments

Description Umherirrender 2011-01-22 19:32:00 UTC
In addition to r65013: Please allow listing of files per user.

Maybe add a aiuser to list=allimages.

Thanks.
Comment 1 Krinkle 2011-01-23 03:07:03 UTC
Changing summary (to avoid confusion with "listing files by author")
Comment 2 Bryan Tong Minh 2011-01-23 11:43:37 UTC
Somebody who has knowledge about how mysql handles indices needs to look into this. I don't know if MySQL is able to merge three indices to make the required query sane.
Comment 3 Roan Kattouw 2011-01-24 02:23:00 UTC
(In reply to comment #2)
> Somebody who has knowledge about how mysql handles indices needs to look into
> this. I don't know if MySQL is able to merge three indices to make the required
> query sane.
There is no such thing as merging indices.

There is an index on (img_user_text, img_timestamp), we could use that. However, we'd have to sort and page by timestamp instead of name (kind of annoying since timestamps aren't necessarily unique), and we couldn't support any other limiting parameters (aisha1, aiprefix, etc.) in combination with aiuser.
Comment 4 Bryan Tong Minh 2011-01-24 08:08:02 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Somebody who has knowledge about how mysql handles indices needs to look into
> > this. I don't know if MySQL is able to merge three indices to make the required
> > query sane.
> There is no such thing as merging indices.
> 
Well, then we're pretty screwed already, as we are sorting by img_name and have conditions on img_size, which are two separate indices.

We should first make sure that img_name is included in all indices.
Comment 5 db [inactive,noenotif] 2011-04-09 09:24:37 UTC
(In reply to comment #4)
> We should first make sure that img_name is included in all indices.

tracking to bug 22744, maybe someone has time to look at the indices.
Comment 6 db [inactive,noenotif] 2012-02-18 18:10:47 UTC
*** Bug 33589 has been marked as a duplicate of this bug. ***
Comment 7 db [inactive,noenotif] 2012-04-01 14:18:03 UTC
*** Bug 35613 has been marked as a duplicate of this bug. ***
Comment 8 Rainer Rillke @commons.wikimedia 2013-04-03 09:09:45 UTC
Here I am going to provide some more use cases:
To create
* A gallery the files uploaded by one user
* A slideshow of files uploaded by one user

To enhance
* The mobile App's feature "My Uploads" see Bug 46839
Comment 9 Quim Gil 2014-04-08 15:35:45 UTC
Request filed years ago, silent during the past year. Setting priority to Lowest in order to reflect the current situation.
Comment 10 Rainer Rillke @commons.wikimedia 2014-04-08 16:38:58 UTC
(In reply to Quim Gil from comment #9)
> Request filed years ago, silent during the past year.

Perhaps because there is now
https://commons.wikimedia.org/w/api.php?action=query&list=allimages&aiuser=Rillke&aisort=timestamp

I don't know whom to thank but ... Thank you!
Comment 11 Quim Gil 2014-04-08 17:02:12 UTC
Just to be sure, you mean that this report has been FIXED?

Marking as such, please revert if I was too optimistic. Also, does anybody know in which release was this fixed?
Comment 12 Umherirrender 2014-04-08 17:16:44 UTC
Was added with Gerrit change #23984 along with aisort=timestamp

(In reply to Quim Gil from comment #9)
> Request filed years ago, silent during the past year.

Unfortunately there are many bugs without actions in the past years ...

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


Navigation
Links