Page MenuHomePhabricator

CommonsMetadataComponent
ActivePublic

Members (2)

Details

Description

Attempts at extracting metadata from Wikimedia Commons pages (Homepage)

Recent Activity

Fri, Nov 22

Nux added a comment to T380190: Template used in information->description causes wrong image description to be returned from API.

Yeah, you would have to edit this: https://commons.wikimedia.org/wiki/Template:Monument_ocrotit_de_stat/layout

Fri, Nov 22, 1:35 AM · CommonsMetadata, Commons
Tacsipacsi edited projects for T380190: Template used in information->description causes wrong image description to be returned from API, added: CommonsMetadata; removed MediaWiki-File-management, Structured-Data-Backlog.

CommonsMetadata (and not SDC!) looks for the description class, and if it finds multiple instances, it apparently chooses the last one. The Polish image works because @Nux fixed it for T373979 (which is probably a duplicate of the current task).

Fri, Nov 22, 12:57 AM · CommonsMetadata, Commons

Tue, Nov 19

Maintenance_bot removed a project from T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText(): Patch-For-Review.
Tue, Nov 19, 2:31 PM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata
gerritbot added a comment to T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText().

Change #1091275 merged by jenkins-bot:

[mediawiki/extensions/CommonsMetadata@master] Replace uses of deprecated ParserOutput::getText()

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

Tue, Nov 19, 2:04 PM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata

Thu, Nov 14

gerritbot added a project to T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText(): Patch-For-Review.
Thu, Nov 14, 4:13 PM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata
gerritbot added a comment to T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText().

Change #1091275 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/extensions/CommonsMetadata@master] Replace uses of deprecated ParserOutput::getText()

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

Thu, Nov 14, 4:13 PM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata

Oct 24 2024

ihurbain removed a parent task for T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText(): T371640: [EPIC] Deploy Parsoid Read Views for all Wikivoyage wikis.
Oct 24 2024, 2:21 PM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata

Oct 20 2024

Pppery added a project to T155741: img_metadata missing: Wikimedia-database-issue (Bad data).
Oct 20 2024, 10:14 PM · Wikimedia-database-issue (Bad data), MediaWiki-File-management, Commons, CommonsMetadata, WMF-General-or-Unknown, Multimedia

Oct 7 2024

Umherirrender added a comment to T373979: Generic template added to description for WLM dominates description over language alternatives.

It is a community decision how to use templates. The extension looks at the generated html. Each localized sub-template passed the lang code and that is used to generate a html lang code.

Oct 7 2024, 5:55 PM · Local-Wiki-Template-And-Gadget-Issues, CommonsMetadata
Tgr added a comment to T373979: Generic template added to description for WLM dominates description over language alternatives.

The relevant logic is TemplateParser::parseContents(); maybe it could concatenate entries in the same language instead of overriding the previous one. But it's probably better to not put the monument ID in the description anyway, it's just not that relevant. {{lang}} should not cause any confusion when it's used outside the description field of {{Information}}.

Oct 7 2024, 10:40 AM · Local-Wiki-Template-And-Gadget-Issues, CommonsMetadata

Oct 6 2024

Nux added a comment to T373979: Generic template added to description for WLM dominates description over language alternatives.

Problem was actually due to using the lang template, so I fixed that:
https://commons.wikimedia.org/w/index.php?title=Template:Zabytek_nieruchomy/layout&diff=next&oldid=933521494

Oct 6 2024, 8:14 PM · Local-Wiki-Template-And-Gadget-Issues, CommonsMetadata

Oct 5 2024

Umherirrender closed T373979: Generic template added to description for WLM dominates description over language alternatives as Invalid.

Changed in https://commons.wikimedia.org/w/index.php?title=Template:Zabytek_nieruchomy/layout&diff=prev&oldid=933521494

Oct 5 2024, 8:55 PM · Local-Wiki-Template-And-Gadget-Issues, CommonsMetadata

Oct 4 2024

simon04 edited projects for T373825: Template parameters not rendered in MediaViewer image description, added: CommonsMetadata; removed MediaViewer.

The template parsing is performed by the CommonsMetadata extension.

Oct 4 2024, 10:52 AM · CommonsMetadata, Local-Wiki-Template-And-Gadget-Issues

Oct 3 2024

Aklapper renamed T205699: Wrong autogenerated caption caption in WLM photos from Wrong autogenerated cation caption in WLM photos to Wrong autogenerated caption caption in WLM photos.
Oct 3 2024, 3:58 PM · CommonsMetadata, Multimedia
Zache added a comment to T205699: Wrong autogenerated caption caption in WLM photos.

Best and wanted caption would be. still "Katedralskolanin liikuntasalin peruskorjauksessa löytyneet rauniot" .

Oct 3 2024, 3:23 PM · CommonsMetadata, Multimedia
simon04 added a comment to T205699: Wrong autogenerated caption caption in WLM photos.

Testing today, I obtain the following caption: "Tämä on kuva suomalaisesta monumentista, jonka tunniste on 'Turun tuomiokirkko ja Turun historiallinen ydinalue' (Q29974183) - RKY: 4620"

Oct 3 2024, 3:17 PM · CommonsMetadata, Multimedia
simon04 added a comment to T373979: Generic template added to description for WLM dominates description over language alternatives.

The problem here is that the monument template outputs this HTML fragment:

Oct 3 2024, 3:14 PM · Local-Wiki-Template-And-Gadget-Issues, CommonsMetadata
simon04 edited projects for T373979: Generic template added to description for WLM dominates description over language alternatives, added: CommonsMetadata; removed MediaViewer.

The template parsing is performed by the CommonsMetadata extension.

Oct 3 2024, 9:09 AM · Local-Wiki-Template-And-Gadget-Issues, CommonsMetadata

Aug 15 2024

TheDJ edited projects for T369361: Mobile MediaViewer dumps HTML instead of author, added: CommonsMetadata; removed MediaViewer.
Aug 15 2024, 8:04 PM · CommonsMetadata, MobileFrontend, Mobile

Aug 4 2024

Tgr added a comment to T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText().

Just using getRawText() should be fine.

Aug 4 2024, 3:29 PM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata
Tgr renamed T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText() from CommonsMetadata DataCollector::verifyAttributeMetadata should use ParserOutput::getRawText() to CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText().
Aug 4 2024, 3:26 PM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata

Aug 1 2024

MSantos added a parent task for T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText(): T371640: [EPIC] Deploy Parsoid Read Views for all Wikivoyage wikis.
Aug 1 2024, 9:25 PM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata

Jul 29 2024

MSantos added a project to T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText(): OKR-Work.
Jul 29 2024, 2:49 PM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata

Jun 20 2024

MSantos moved T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText() from Uncategorized to Phase 1 - DiscussionTools support on the Parsoid-Read-Views board.
Jun 20 2024, 2:27 PM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata
MSantos removed a project from T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText(): Parsoid.
Jun 20 2024, 2:26 PM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata

Jun 16 2024

Umherirrender closed T353522: Rework CommonsMetadata LocalFileMock and ForeignDBFileMock hack to support php8.2 in the extension as Resolved.
Jun 16 2024, 11:24 AM · MW-1.43-notes (1.43.0-wmf.9; 2024-06-11), PHP 8.2 support, CommonsMetadata

Jun 15 2024

Maintenance_bot removed a project from T353522: Rework CommonsMetadata LocalFileMock and ForeignDBFileMock hack to support php8.2 in the extension: Patch-For-Review.
Jun 15 2024, 7:30 AM · MW-1.43-notes (1.43.0-wmf.9; 2024-06-11), PHP 8.2 support, CommonsMetadata
gerritbot added a comment to T353522: Rework CommonsMetadata LocalFileMock and ForeignDBFileMock hack to support php8.2 in the extension.

Change #1044275 merged by jenkins-bot:

[mediawiki/extensions/CommonsMetadata@REL1_42] tests: Declare ParserTestHelper::$mockedCategories

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

Jun 15 2024, 6:35 AM · MW-1.43-notes (1.43.0-wmf.9; 2024-06-11), PHP 8.2 support, CommonsMetadata
gerritbot added a project to T353522: Rework CommonsMetadata LocalFileMock and ForeignDBFileMock hack to support php8.2 in the extension: Patch-For-Review.
Jun 15 2024, 6:10 AM · MW-1.43-notes (1.43.0-wmf.9; 2024-06-11), PHP 8.2 support, CommonsMetadata
gerritbot added a comment to T353522: Rework CommonsMetadata LocalFileMock and ForeignDBFileMock hack to support php8.2 in the extension.

Change #1044275 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/CommonsMetadata@REL1_42] tests: Declare ParserTestHelper::$mockedCategories

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

Jun 15 2024, 6:10 AM · MW-1.43-notes (1.43.0-wmf.9; 2024-06-11), PHP 8.2 support, CommonsMetadata

Jun 13 2024

simon04 moved T68606: Media viewer fails to give credit to all people in specific circumstances from Backlog to License/permission/attribution on the MediaViewer board.
Jun 13 2024, 8:46 PM · MW-1.42-notes (1.42.0-wmf.16; 2024-01-30), Multimedia, CommonsMetadata, MediaViewer

Jun 10 2024

cscott claimed T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText().
Jun 10 2024, 3:10 PM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata
MSantos added a project to T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText(): Parsoid-Read-Views.
Jun 10 2024, 3:04 PM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata

Jun 9 2024

Maintenance_bot removed a project from T353522: Rework CommonsMetadata LocalFileMock and ForeignDBFileMock hack to support php8.2 in the extension: Patch-For-Review.
Jun 9 2024, 11:30 PM · MW-1.43-notes (1.43.0-wmf.9; 2024-06-11), PHP 8.2 support, CommonsMetadata
ReleaseTaggerBot added a project to T353522: Rework CommonsMetadata LocalFileMock and ForeignDBFileMock hack to support php8.2 in the extension: MW-1.43-notes (1.43.0-wmf.9; 2024-06-11).
Jun 9 2024, 11:00 PM · MW-1.43-notes (1.43.0-wmf.9; 2024-06-11), PHP 8.2 support, CommonsMetadata
gerritbot added a comment to T353522: Rework CommonsMetadata LocalFileMock and ForeignDBFileMock hack to support php8.2 in the extension.

Change #983417 merged by jenkins-bot:

[mediawiki/extensions/CommonsMetadata@master] tests: Declare ParserTestHelper::$mockedCategories

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

Jun 9 2024, 10:38 PM · MW-1.43-notes (1.43.0-wmf.9; 2024-06-11), PHP 8.2 support, CommonsMetadata
gerritbot added a project to T353522: Rework CommonsMetadata LocalFileMock and ForeignDBFileMock hack to support php8.2 in the extension: Patch-For-Review.
Jun 9 2024, 8:24 AM · MW-1.43-notes (1.43.0-wmf.9; 2024-06-11), PHP 8.2 support, CommonsMetadata
gerritbot added a comment to T353522: Rework CommonsMetadata LocalFileMock and ForeignDBFileMock hack to support php8.2 in the extension.

Change #983417 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/CommonsMetadata@master] tests: Declare ParserTestHelper::$mockedCategories

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

Jun 9 2024, 8:24 AM · MW-1.43-notes (1.43.0-wmf.9; 2024-06-11), PHP 8.2 support, CommonsMetadata

Jun 6 2024

MSantos edited projects for T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText(), added: Content-Transform-Team-WIP; removed Parsoid.
Jun 6 2024, 2:20 PM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata

Jun 3 2024

JJMC89 removed a subtask for T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText(): T366433: CentralAuth tests broken unless you run them inside Quibble.
Jun 3 2024, 1:45 AM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata
OKJ04 added a subtask for T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText(): T366433: CentralAuth tests broken unless you run them inside Quibble.
Jun 3 2024, 1:40 AM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata

May 31 2024

cscott created T366395: CommonsMetadata DataCollector::verifyAttributionMetadata should use ParserOutput::getRawText().
May 31 2024, 10:10 PM · OKR-Work, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, CommonsMetadata

Apr 25 2024

thcipriani closed T301487: InvalidArgumentException: WikiPage constructed on a Title that cannot exist as a page: commons:File:The whole map of Sanmon-Santō Sakamoto Sōezu (1st volume).png as Resolved.

Not seeing any of these in the past 90 days, optimistically resolving.

Apr 25 2024, 3:57 PM · Structured Data Engineering, Structured-Data-Backlog, Patch-Needs-Improvement, CommonsMetadata, Wikimedia-production-error

Apr 20 2024

Umherirrender closed T312357: Migrate usage of Database::select to SelectQueryBuilder in CommonsMetadata as Invalid.

This extension does not have own database queries

Apr 20 2024, 9:25 PM · CommonsMetadata, Technical-Debt

Feb 4 2024

Tgr added a comment to T68606: Media viewer fails to give credit to all people in specific circumstances.

I don't quite understand what's so hard about just... coding a graceful failure state for anything that seems non-simple. If you end up with, say, https://commons.wikimedia.org/wiki/File:Edward_Duncan_-_The_Explosion_of_the_United_States_Steam_Frigate_Missouri_-_Original.tiff - where there's three creator cards and an awful lot of important text explaining the roles - it's probably going to be far easier to just direct people to the file description page than try to convert it to an attribution line. Like, it really feels like an attempt at perfection is overruling the simple solution of just... handling the trivial cases you can handle and including a "see here" link for anything not readily machine readable.

Feb 4 2024, 5:48 AM · MW-1.42-notes (1.42.0-wmf.16; 2024-01-30), Multimedia, CommonsMetadata, MediaViewer

Feb 3 2024

AdamCuerden added a comment to T68606: Media viewer fails to give credit to all people in specific circumstances.

I'm going to be honest (although you probably expect that at this point): I don't quite understand what's so hard about just... coding a graceful failure state for anything that seems non-simple. If you end up with, say, https://commons.wikimedia.org/wiki/File:Edward_Duncan_-_The_Explosion_of_the_United_States_Steam_Frigate_Missouri_-_Original.tiff - where there's three creator cards and an awful lot of important text explaining the roles - it's probably going to be far easier to just direct people to the file description page than try to convert it to an attribution line. Like, it really feels like an attempt at perfection is overruling the simple solution of just... handling the trivial cases you can handle and including a "see here" link for anything not readily machine readable.

Feb 3 2024, 6:48 AM · MW-1.42-notes (1.42.0-wmf.16; 2024-01-30), Multimedia, CommonsMetadata, MediaViewer

Feb 1 2024

TheDJ added a comment to T68606: Media viewer fails to give credit to all people in specific circumstances.

Sigh. Turns out that the multi language support only takes the first English elements in a field. So that patch needs some more follow-up

Feb 1 2024, 10:04 AM · MW-1.42-notes (1.42.0-wmf.16; 2024-01-30), Multimedia, CommonsMetadata, MediaViewer

Jan 28 2024

Maintenance_bot removed a project from T68606: Media viewer fails to give credit to all people in specific circumstances: Patch-For-Review.
Jan 28 2024, 5:30 AM · MW-1.42-notes (1.42.0-wmf.16; 2024-01-30), Multimedia, CommonsMetadata, MediaViewer
ReleaseTaggerBot added a project to T68606: Media viewer fails to give credit to all people in specific circumstances: MW-1.42-notes (1.42.0-wmf.16; 2024-01-30).
Jan 28 2024, 5:00 AM · MW-1.42-notes (1.42.0-wmf.16; 2024-01-30), Multimedia, CommonsMetadata, MediaViewer
gerritbot added a comment to T68606: Media viewer fails to give credit to all people in specific circumstances.

Change 787870 merged by jenkins-bot:

[mediawiki/extensions/CommonsMetadata@master] Retrieve artists/authors from multiple vcards

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

Jan 28 2024, 4:31 AM · MW-1.42-notes (1.42.0-wmf.16; 2024-01-30), Multimedia, CommonsMetadata, MediaViewer