Page MenuHomePhabricator

Improve API:Allimages docs to state that it only checks last version
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

It gets plenty of results.

What should have happened instead?:

It should also list
https://commons.wikimedia.org/wiki/File:Fence_along_the_Montana%E2%80%93Alberta_border_-_19940726.jpg
but that is totally missing. One wonders what else is missing.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Maybe too many odd characters in the missing file's URL?

Event Timeline

Jidanni renamed this task from API skips some results to allimages API call skips some results.Feb 13 2023, 9:00 AM

Wait, something redirects to it,
https://commons.wikimedia.org/w/index.php?title=File:19940726cardston.jpg&redirect=no
but that isn't in the results either.
https://www.mediawiki.org/wiki/API:Allimages doesn't mention anything special.

Someone else uploaded a new revision of that missing file after you uploaded it - maybe that's why it's not showing up?

Wait, something redirects to it,
https://commons.wikimedia.org/w/index.php?title=File:19940726cardston.jpg&redirect=no
but that isn't in the results either.

That one doesn't seem to be an actual file, just a redirect page.

The doc just says:

aiuser:
Only return files uploaded by this user. Can only be used with aisort=timestamp. Cannot be used together with aifilterbots.

It doesn't say it only checks the newest version. Maybe it should say that in the doc.

So what second call should I use to reach out in the dark and also grab cases like that?

OK, I can use
https://commons.wikimedia.org/w/index.php?title=Special%3AContributions&target=Jidanni&namespace=6&newOnly=1&start=2007-05-31&end=2007-08-01&limit=5 and there it is on top.

Aklapper renamed this task from allimages API call skips some results to Improve API:Allimages docs to state that it only checks last version.Feb 13 2023, 11:42 AM
Aklapper edited projects, added Documentation; removed MediaWiki-Uploading.

Change 888819 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/core@master] API: Fix query+allimages user parameter description

https://gerrit.wikimedia.org/r/888819

@Tgr Thanks for updating the doc!

,,, formatversion=2...

OK, but one then needs to weed out duplicates. OK, I'll add ucshow=new.

Change 888819 merged by jenkins-bot:

[mediawiki/core@master] API: Fix query+allimages user parameter description

https://gerrit.wikimedia.org/r/888819

Tgr claimed this task.

Change 891630 had a related patch set uploaded (by Reedy; author: Gergő Tisza):

[mediawiki/core@REL1_39] API: Fix query+allimages user parameter description

https://gerrit.wikimedia.org/r/891630

Change 891631 had a related patch set uploaded (by Reedy; author: Gergő Tisza):

[mediawiki/core@REL1_38] API: Fix query+allimages user parameter description

https://gerrit.wikimedia.org/r/891631

Change 891632 had a related patch set uploaded (by Reedy; author: Gergő Tisza):

[mediawiki/core@REL1_35] API: Fix query+allimages user parameter description

https://gerrit.wikimedia.org/r/891632

Change 891632 merged by jenkins-bot:

[mediawiki/core@REL1_35] API: Fix query+allimages user parameter description

https://gerrit.wikimedia.org/r/891632

Change 891630 merged by jenkins-bot:

[mediawiki/core@REL1_39] API: Fix query+allimages user parameter description

https://gerrit.wikimedia.org/r/891630

Change 891631 merged by jenkins-bot:

[mediawiki/core@REL1_38] API: Fix query+allimages user parameter description

https://gerrit.wikimedia.org/r/891631