User Details
- User Since
- Oct 4 2016, 5:18 PM (505 w, 4 d)
- Availability
- Available
- IRC Nick
- pmiazga
- LDAP User
- Pmiazga
- MediaWiki User
- PMiazga (WMF) [ Global Accounts ]
Thu, Jun 11
Let me claim this work.
Fri, May 22
The Slack message was just a quick highlight, meant to capture my thoughts before I create the phab ticket. Most likely, I didn't include a 301 at that time because I was still forming both proposals.
@Mooeypoo the problem is not about fetching the data. This is easy - I can fetch data without problems. The entire problem is what kinda of data the Attribution should return - because file is on remote, do we return remote attribution, or we return local attribution.
Thu, May 21
That would be option A - use the ForeignAPIRepo -> the idea is that REST API Handler would use PageContentHelper to check if the Title exists locally, and in case of not found, it would use the ForeignAPIRepo and call RepoGroup::findFile() to load it from remote.
After a quick and a bit hacky way, I'm able to return Attribution data from a remote Title. But the work also exposed some quirks, and before I move forward, I'd like to align on the architectural approach for handling remote media.
When I say local -> I mean the environment client is querying, and remote is the environment that has the file ( most likely Commons ).
A quick question - do we want to add the wprov links here too ? cc @HCoplin-WMF
Tue, May 19
Mon, May 18
sorry for confusion, removing the sprint tag - as this is an epic and still has some subtasks that have to be done, therefore I cannot close it yet.
Fri, May 15
The update to enable this feature on all wikis has to be reverted due to T425580: [Spike] [BUG] POTD Gallery doesn't load, crashes upon share
@HCoplin-WMF what do we do with cases like
- 'Fair use'
- 'No restrictions'
- 'Attribution'
May 14 2026
@Sarai-WMF @HCoplin-WMF I added also wprov param info to schema documentation:
May 13 2026
@HCoplin-WMF do you have an idea where we can link on the site page?
May 12 2026
May 11 2026
May 7 2026
After a deeper thought, I don't think we need different wprov values for each link -> as the we will know which link was clicked by the link ( URL ) itself. Therefore we may be totally good with just two af[s|c]w1 which would be translated to
I'm looking at t[[ https://wikitech.wikimedia.org/wiki/Provenance#Description_of_wprov_parameter | Description of wprov parameter ]] and it should be
May 6 2026
May 5 2026
May 4 2026
I have some free cycles this sprint, let me pick it up.
Apr 30 2026
I eagerly added text as this could be rendered as plain text, therefore it could be regular page. From what I see as built-in content models: ( source: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/818753f06b593ee6308642e64199d57ac4707d89/includes/MainConfigSchema.php#3377 )
Apr 29 2026
Attribution returns the source_wiki parameter twice - once in essentials section, and once in the root.
I love it ! The only small nitpick I would propose - do not put that in the WANObjectCache, please. This class is already a hog, over 3K lines. The cache could be a param, sth like:
The easiest and best way to disable Attribution signals for Wikibase items is to use the content-model. Wikibase items use wikibase-item and wikibase-property. This way, we will stop showing the signals mentioned in the ticket.
Apr 27 2026
Apr 24 2026
@HCoplin-WMF where do we want to keep those logos? Probably we need to upload those to Commons. Another option would be to point directly to creativecommons.
Apr 21 2026
Apr 20 2026
Apr 16 2026
Apr 15 2026
The fix attached to this ticket is not the fix for the issue, but a workaround around this bug. The root cause ( invalid serialization of arrays ) still has to be handled.