Page MenuHomePhabricator

Mathemancer2
User

Projects

User is not a member of any projects.

Today

  • No visible events.

Tomorrow

  • No visible events.

Wednesday

  • No visible events.

User Details

User Since
Dec 3 2019, 11:50 AM (357 w, 5 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Mathemancer2 [ Global Accounts ]

Recent Activity

Jan 2 2020

Mathemancer2 updated subscribers of T241275: When image info query fails allimages generator fails irrecoverably leaving no continuation token.

@Anomie I respectfully disagree with the classification of this issue as a duplicate. My reasoning is that the issue T201205 is regarding an imageinfo request for a single file. The problem there (as I understand it) is that the apparatus cannot make a thumbnail (or at least this fails some validation) when an image is 0px by 0px. That results in none of the info parameters being retrieved for the image in that case.

Jan 2 2020, 7:14 PM · Platform Engineering, MediaWiki-Action-API
Mathemancer2 added a comment to T201205: Bad metadata for a single file errors out the complete imageinfo prop request.

To determine the extent of the problem, I ran a test, where I tried to use a generator to grab image info for all images uploaded to commons.wikimedia.org on each day of November 2019. Unfortunately, more than half of the days failed irrecoverably due to this bug. I.e., a request of the following form will fail for a little over half of the dates in November tested:

https://commons.wikimedia.org/w/api.php?action=query&generator=allimages&prop=imageinfo&gailimit=40&gaisort=timestamp&gaistart=2019-11-02T00:00:00Z&gaiend=2019-11-03T00:00:00Z&iiprop=url|user|dimensions|extmetadata&iiurlwidth=300&format=json&gaicontinue=20191102113020|Eduard_Karel_(1861-1950).jpg

This example is for the date 2019-11-02. I've attached a file with a list of dates for which the generator functionality is broken by this bug in November 2019, along with the request that fails irrecoverably for each date (by irrecoverably, I mean that the error does not contain any information that allows a program to skip over the broken file and continue).

Jan 2 2020, 12:48 PM · Commons, MediaWiki-File-management, MediaWiki-Action-API

Dec 20 2019

Mathemancer2 added a comment to T241275: When image info query fails allimages generator fails irrecoverably leaving no continuation token.

Related issues:
T176894
T201205

Dec 20 2019, 8:02 PM · Platform Engineering, MediaWiki-Action-API
Mathemancer2 created T241275: When image info query fails allimages generator fails irrecoverably leaving no continuation token.
Dec 20 2019, 7:59 PM · Platform Engineering, MediaWiki-Action-API

Dec 3 2019

Mathemancer2 added a comment to T239639: Add filtering to list=allimages for feature parity with Special:NewFiles.

What I'd like is the ability to make an API request that returns the same info as is available at https://commons.wikimedia.org/wiki/Special:NewFiles . The second page has many more pictures available. Note that the first page has only a couple of pictures from September, then before that nothing all the way back to mid March.

https://commons.wikimedia.org/w/api.php?action=query&list=allimages&aiprop=user|timestamp|url&aisort=timestamp&aidir=older&ailimit=50&aiprop=timestamp|url|size|user ?

Dec 3 2019, 5:07 PM · Platform Engineering, MediaWiki-Action-API
Mathemancer2 added a comment to T239639: Add filtering to list=allimages for feature parity with Special:NewFiles.

Hello, I'm the one who started the thread on IRC. To clarify, I'm aware that a get request to https://www.mediawiki.org/w/api.php?action=query&list=allimages&aiprop=user%7Ctimestamp%7Curl&aisort=timestamp&aidir=older returns more-or-less the same info as is available at the page https://www.mediawiki.org/wiki/Special:NewFiles . What I'd like is the ability to make an API request that returns the same info as is available at https://commons.wikimedia.org/wiki/Special:NewFiles . The second page has many more pictures available. Note that the first page has only a couple of pictures from September, then before that nothing all the way back to mid March.

Dec 3 2019, 11:55 AM · Platform Engineering, MediaWiki-Action-API