[Wikidata-bugs] [Maniphest] [Updated] T177005: Allow MediaInfo pages to be accessed via associated file name

2017-12-22 Thread Ramsey-WMF
Ramsey-WMF added a project: Epic.
TASK DETAILhttps://phabricator.wikimedia.org/T177005EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: thiemowmde, Ramsey-WMFCc: thiemowmde, Lydia_Pintscher, daniel, Aklapper, Ramsey-WMF, Cparle, MarkTraceur, Lahi, PDrouin-WMF, Gq86, E1presidente, SandraF_WMF, GoranSMilovanovic, QZanden, Tramullas, Acer, V4switch, LawExplorer, Susannaanas, Wong128hk, Aschroet, Jane023, Wikidata-bugs, PKM, Base, matthiasmullie, aude, Bawolff, Ricordisamoa, Fabrice_Florin, Raymond, Steinsplitter, Matanya, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Updated] T177005: Allow MediaInfo pages to be accessed via associated file name

2017-12-02 Thread daniel
daniel added a project: User-Daniel.daniel added a comment.
@MarkTraceur Hey! I just got back from 10 days of vacation. Last I talked to Thiemo, he said he'd work on my patch. It's quite possible that it's now waiting for review from me, I'll check on Monday.

We have recently changed out sprint process, so this may have been lost somewhere - I hope that did not happen...TASK DETAILhttps://phabricator.wikimedia.org/T177005EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: danielCc: thiemowmde, Lydia_Pintscher, daniel, Aklapper, Ramsey-WMF, Cparle, MarkTraceur, Lahi, PDrouin-WMF, Gq86, E1presidente, SandraF_WMF, GoranSMilovanovic, QZanden, Acer, V4switch, Susannaanas, Wong128hk, Jane023, Wikidata-bugs, PKM, Base, matthiasmullie, aude, Bawolff, Ricordisamoa, Fabrice_Florin, Raymond, Steinsplitter, Matanya, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Updated] T177005: Allow MediaInfo pages to be accessed via associated file name

2017-09-28 Thread MarkTraceur
MarkTraceur added a comment.
OK, just going to write down some notes about what I've found out so far...

First, we decided that the key accomplishments here would be the following:


An entry in the file page's page_props that corresponds to the mediainfo page (accessible via action="" similar to wikibase_item)
An API module that allows for getting a mediainfo entity via the file page title (e.g. action="" with all other params of wbgetentities, essentially just an alias other than the ID lookup)


I have discovered several interesting things that I will document here, mostly for my own edification:


The MediaInfo id string (M13, for example) is just the ID of the file page in the MediaWiki database (and, therefore, the normal MW API results), so it would be relatively easy to use that as a temporary implementation if anyone wanted to start writing bots. This is not useful for internal code, because there are abstraction functions we should use to avoid problems later.
I thought I might be able to use action="" but it turns out the sites= param is looking at the interwiki map, so there won't be any way to get at MediaInfo entities on the same site. Oh, well.
I haven't yet determined at which point I should create a page_props entry for each file...creating them on file upload would be easiest, but would mean running a real mean maintenance script upon first deployment. That could be okay. I suppose that's what we'll do.
Furthermore, I am skeptical of skipping the database entry and relying on on-demand data for each API call. There wouldn't be a huge performance hit, but it seems wrong to represent something as being true via the API that isn't true in the database.
Some of the above should probably be further split into different tasks. I will do that now and claim the API task.
TASK DETAILhttps://phabricator.wikimedia.org/T177005EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MarkTraceurCc: Aklapper, Ramsey-WMF, MBinder_WMF, Cparle, MarkTraceur, E1presidente, Jmmuguerza, SandraF_WMF, GoranSMilovanovic, QZanden, Acer, V4switch, Susannaanas, Izno, Wong128hk, Wikidata-bugs, PKM, Base, matthiasmullie, aude, Bawolff, Ricordisamoa, Fabrice_Florin, Raymond, Matanya, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs