Page MenuHomePhabricator

Tool-commonsapiComponent
ActivePublic

Members (2)

Watchers (1)

Details

Description

A tool for obtaining metadata about media stored on Wikimedia Commons.

Website: https://commonsapi.toolforge.org/
Repository: https://gitlab.wikimedia.org/toolforge-repos/commonsapi/

Recent Activity

Jul 12 2023

Aklapper changed the edit policy for Tool-commonsapi.
Jul 12 2023, 8:26 AM

Feb 11 2023

Aklapper edited Description on Tool-commonsapi.
Feb 11 2023, 7:20 PM

Dec 15 2020

Sebkur closed T268902: Meta name attribute not generating in JSON output as Resolved.
Dec 15 2020, 8:50 PM · Tool-commonsapi
Sebkur added a comment to T268902: Meta name attribute not generating in JSON output.

Great, thank you a lot again!

Dec 15 2020, 8:20 PM · Tool-commonsapi
SJK added a comment to T268902: Meta name attribute not generating in JSON output.

@Sebkur It took me a while, but here is a PR containing the above patch: https://github.com/sebkur/commonsapi/pull/1

Dec 15 2020, 6:45 AM · Tool-commonsapi

Dec 1 2020

Sebkur added a comment to T268902: Meta name attribute not generating in JSON output.

Alright, here's a Github mirror: https://github.com/sebkur/commonsapi

Dec 1 2020, 9:51 PM · Tool-commonsapi

Nov 30 2020

Sebkur added a comment to T268902: Meta name attribute not generating in JSON output.

Thanks for the patch. I find the collaboration here on phabricator a bit clumsy, it doesn't seem to have the notion of a pull request. Maybe I'll create a mirror on Github so that it becomes a bit easier to submit and review a patch. Also it'll be easier to give credit to your contributions.

Nov 30 2020, 7:29 PM · Tool-commonsapi

Nov 27 2020

SJK added a comment to T268661: Support JSON output.

Logged another issue for the meta item name attribute problem: T268902

Nov 27 2020, 10:57 PM · Tool-commonsapi
SJK added a comment to T268902: Meta name attribute not generating in JSON output.

With this patch the relevant JSON output now looks like this:

"meta": {
     "item": [
         {
             "name": "Make",
             "value": "Canon"
         },
         {
             "name": "Model",
             "value": "Canon EOS 30D"
         },
         {
             "name": "XResolution",
             "value": "350/1"
         },
         {
             "name": "YResolution",
             "value": "350/1"
         },
         {
             "name": "ResolutionUnit",
             "value": "2"
         },
         {
             "name": "Software",
             "value": "Paint Shop Pro Photo 11.20"
         },
         {
             "name": "DateTime",
             "value": "2007:09:07 23:17:35"
         },
Nov 27 2020, 10:56 PM · Tool-commonsapi
SJK reassigned T268902: Meta name attribute not generating in JSON output from SJK to Sebkur.
Nov 27 2020, 10:55 PM · Tool-commonsapi
SJK added a comment to T268902: Meta name attribute not generating in JSON output.

Patch to fix this issue:

Nov 27 2020, 10:55 PM · Tool-commonsapi
SJK created T268902: Meta name attribute not generating in JSON output.
Nov 27 2020, 10:52 PM · Tool-commonsapi
SJK added a comment to T268661: Support JSON output.

@Sebkur Thanks for merging that. I didn't notice the issue with the name attribute of <item>... I will have a look at it soon, see if I can come up with a patch to fix it

Nov 27 2020, 10:20 PM · Tool-commonsapi
Sebkur added a comment to T268661: Support JSON output.

I just closed this, but feel free to comment on this thread :)

Nov 27 2020, 9:59 PM · Tool-commonsapi
Sebkur closed T268661: Support JSON output as Resolved.
Nov 27 2020, 9:57 PM · Tool-commonsapi
Sebkur added a comment to T268661: Support JSON output.

Great, seems to work. I looked at this https://commonsapi.toolforge.org/?image=Sa-warthog.jpg&thumbwidth=150&thumbheight=150&versions&meta&format=json
and noticed that the name=... attribute does not appear in the generated JSON, any ideas how to fix that?

Nov 27 2020, 9:49 PM · Tool-commonsapi
Sebkur added a comment to T268661: Support JSON output.

JSON support sounds like a very good idea to me. Thanks for the patch!

Nov 27 2020, 9:43 PM · Tool-commonsapi

Nov 25 2020

SJK assigned T268661: Support JSON output to Sebkur.
Nov 25 2020, 11:15 PM · Tool-commonsapi
SJK added a member for Tool-commonsapi: SJK.
Nov 25 2020, 6:00 AM

Nov 24 2020

SJK added a comment to T268661: Support JSON output.

Here's a patch which implements this:

Nov 24 2020, 6:44 PM · Tool-commonsapi
SJK updated the task description for T268661: Support JSON output.
Nov 24 2020, 6:00 PM · Tool-commonsapi
SJK created T268661: Support JSON output.
Nov 24 2020, 5:52 PM · Tool-commonsapi
SJK added a watcher for Tool-commonsapi: SJK.
Nov 24 2020, 5:34 PM

Jul 19 2020

Sebkur edited Description on Tool-commonsapi.
Jul 19 2020, 12:49 PM

Jul 18 2020

Peachey88 closed T257937: Project creation for tool commonsapi.toolforge.org as Resolved.

@Sebkur Your project Tool-commonsapi has now been created, Please update the description of your project with a basic blurb about the tool.

Jul 18 2020, 6:54 AM · Tool-commonsapi, Project-Admins
Peachey88 set the image for Tool-commonsapi to F31939333: fa-briefcase-blue.png.
Jul 18 2020, 6:52 AM
Peachey88 created Tool-commonsapi.
Jul 18 2020, 6:52 AM