Smalyshev added a comment.
> Actually, the MediaInfoId can be generated from the Title object. It's based on the page ID. No access to the slot is needed. For generating ID, sure. But we don't know if the particular file page has the slot, and if it does not, we shouldn't generate the ID, probably. Also, as you noticed, what if there's ever more than one? I could hack together temporary implementation based on `EntityByLinkedTitleLookup`, which would rely on MediaInfo hook and assume only MediaInfo uses slots, and does it in a very particular way it does now, but we probably need to look into more comprehensive solution as to how to enumerate such things. TASK DETAIL https://phabricator.wikimedia.org/T222299 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Smalyshev Cc: Mholloway, WMDE-leszek, Jdforrester-WMF, matthiasmullie, Cparle, daniel, Lucas_Werkmeister_WMDE, Tpt, Addshore, Ramsey-WMF, Aklapper, Smalyshev, alaa_wmde, Nandana, JKSTNK, Lahi, PDrouin-WMF, Gq86, E1presidente, Anooprao, SandraF_WMF, GoranSMilovanovic, QZanden, EBjune, Tramullas, Acer, merbst, LawExplorer, Salgo60, Silverfish, Poyekhali, _jensen, rosalieper, Jonas, Xmlizer, Susannaanas, Wong128hk, Jane023, jkroll, Wikidata-bugs, Jdouglas, Base, aude, Tobias1984, El_Grafo, Dinoguy1000, Manybubbles, Ricordisamoa, Wesalius, Lydia_Pintscher, Fabrice_Florin, Raymond, Steinsplitter, Mbch331, Keegan
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
