[Wikidata-bugs] [Maniphest] [Commented On] T87410: Link translated articles with other languages through Wikidata automatically
Pginer-WMF added a comment. As part of the work on version 2 we asked advanced users to create articles and two reported that wikidata links were not added automatically when publishing (1) (2). We may want to investigate if there is a regression about this, or in case that it takes too much time for the links to update (e.g., due to Wikidata cache), evaluate what can be done to reduce the confusion.TASK DETAILhttps://phabricator.wikimedia.org/T87410EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Amire80, Pginer-WMFCc: Vituzzu, Nemo_bis, KartikMistry, gerritbot, He7d3r, Ricordisamoa, santhosh, Nikerabbit, CennoxX, hoo, Lydia_Pintscher, Amire80, Arrbee, Aklapper, Pginer-WMF, Lahi, Gq86, GoranSMilovanovic, chapulina, QZanden, LawExplorer, Nizil, Ixocactus, Wikidata-bugs, aude, Jsahleen, Mbch331___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T87410: Link translated articles with other languages through Wikidata automatically
Amire80 added a comment. This was updated in production yesterday. The comment in ca.wikipedia probably refers to something that happened shortly before the update. I just tested it carefully: - https://ca.wikipedia.org/wiki/Usuari:Amire80/Mazkeret_Moshe - https://www.wikidata.org/w/index.php?title=Q2904793action=history It definitely doesn't happen anymore. You can see that no link was added to the Wikidata item. Compare it with https://www.wikidata.org/w/index.php?title=Q134396action=history , where links to test pages were auto-added and manually deleted. TASK DETAIL https://phabricator.wikimedia.org/T87410 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80 Cc: KartikMistry, gerritbot, He7d3r, Ricordisamoa, santhosh, Nikerabbit, CennoxX, hoo, Lydia_Pintscher, Amire80, Arrbee, Aklapper, Pginer-WMF, Wikidata-bugs, aude, Jsahleen, Malyacko, P.Copp ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T87410: Link translated articles with other languages through Wikidata automatically
Pginer-WMF added a comment. Thanks for double-checking @Amire80! TASK DETAIL https://phabricator.wikimedia.org/T87410 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80, Pginer-WMF Cc: KartikMistry, gerritbot, He7d3r, Ricordisamoa, santhosh, Nikerabbit, CennoxX, hoo, Lydia_Pintscher, Amire80, Arrbee, Aklapper, Pginer-WMF, Wikidata-bugs, aude, Jsahleen, Malyacko, P.Copp ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T87410: Link translated articles with other languages through Wikidata automatically
gerritbot added a comment. Change 214119 merged by jenkins-bot: Add a Wikibase link after publishing a page https://gerrit.wikimedia.org/r/214119 TASK DETAIL https://phabricator.wikimedia.org/T87410 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80, gerritbot Cc: gerritbot, He7d3r, Ricordisamoa, santhosh, Nikerabbit, CennoxX, hoo, Lydia_Pintscher, Amire80, Arrbee, Aklapper, Pginer-WMF, Wikidata-bugs, aude, Jsahleen, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T87410: Link translated articles with other languages through Wikidata automatically
Amire80 added a comment. A bit of background: I cheated while developing, because I don't have a local Wikibase installation for testing. To test I copied the function from https://gerrit.wikimedia.org/r/#/c/214119/13/modules/wikibaselink/ext.cx.wikibase.link.js to https://ca.wikipedia.org/wiki/Usuari:Amire80/common.js , and then I translated the article https://ca.wikipedia.org/wiki/Assaf_Amdurski - and it worked, the links were added automatically and without any disruption. TASK DETAIL https://phabricator.wikimedia.org/T87410 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80 Cc: gerritbot, He7d3r, Ricordisamoa, santhosh, Nikerabbit, CennoxX, hoo, Lydia_Pintscher, Amire80, Arrbee, Aklapper, Pginer-WMF, Wikidata-bugs, aude, Jsahleen, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T87410: Link translated articles with other languages through Wikidata automatically
Amire80 added a comment. ... And this is the Wikidata edit that was done: https://www.wikidata.org/w/index.php?title=Q4808345diff=prevoldid=220307587 . TASK DETAIL https://phabricator.wikimedia.org/T87410 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80 Cc: gerritbot, He7d3r, Ricordisamoa, santhosh, Nikerabbit, CennoxX, hoo, Lydia_Pintscher, Amire80, Arrbee, Aklapper, Pginer-WMF, Wikidata-bugs, aude, Jsahleen, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T87410: Link translated articles with other languages through Wikidata automatically
gerritbot added a subscriber: gerritbot. gerritbot added a comment. Change 214119 had a related patch set uploaded (by Amire80): WIP: Add a Wikibase link https://gerrit.wikimedia.org/r/214119 TASK DETAIL https://phabricator.wikimedia.org/T87410 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80, gerritbot Cc: gerritbot, He7d3r, Ricordisamoa, santhosh, Nikerabbit, CennoxX, hoo, Lydia_Pintscher, Amire80, Arrbee, Aklapper, Pginer-WMF, Wikidata-bugs, aude, Jsahleen, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T87410: Link translated articles with other languages through Wikidata automatically
gerritbot added a comment. Change 214119 had a related patch set uploaded (by Amire80): WIP: Add a Wikibase link https://gerrit.wikimedia.org/r/214119 TASK DETAIL https://phabricator.wikimedia.org/T87410 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80, gerritbot Cc: gerritbot, He7d3r, Ricordisamoa, santhosh, Nikerabbit, CennoxX, hoo, Lydia_Pintscher, Amire80, Arrbee, Aklapper, Pginer-WMF, Wikidata-bugs, aude, Jsahleen, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T87410: Link translated articles with other languages through Wikidata automatically
Amire80 added a comment. OK, so in https://gerrit.wikimedia.org/r/214119 I tried to do it first with raw API calls, and it didn't work, so I tried it by using PageConnector, as I tried at first, and it still doesn't do the right thing. @hoo, everybody points at you as the PageConnector expert, and it's probably something very simple; can you please take a look? Thanks! TASK DETAIL https://phabricator.wikimedia.org/T87410 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80 Cc: gerritbot, He7d3r, Ricordisamoa, santhosh, Nikerabbit, CennoxX, hoo, Lydia_Pintscher, Amire80, Arrbee, Aklapper, Pginer-WMF, Wikidata-bugs, aude, Jsahleen, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T87410: Link translated articles with other languages through Wikidata automatically
santhosh added a comment. I think we just need wblinktitles api api.php?action=wblinktitlesfromsite=enwikifromtitle=Hydrogentosite=dewikitotitle=Wasserstoff with an edit token TASK DETAIL https://phabricator.wikimedia.org/T87410 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80, santhosh Cc: He7d3r, Ricordisamoa, santhosh, Nikerabbit, CennoxX, hoo, Lydia_Pintscher, Amire80, Arrbee, Aklapper, Pginer-WMF, Wikidata-bugs, aude, Jsahleen, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T87410: Link translated articles with other languages through Wikidata automatically
hoo added a comment. In https://phabricator.wikimedia.org/T87410#1309481, @santhosh wrote: I think we just need wblinktitles api api.php?action=wblinktitlesfromsite=enwikifromtitle=Hydrogentosite=dewikitotitle=Wasserstoff with an edit token Yes, that would work. You can also use the wbsetsitelink api, if you prefer (that way you don't need to know about other articles). TASK DETAIL https://phabricator.wikimedia.org/T87410 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80, hoo Cc: He7d3r, Ricordisamoa, santhosh, Nikerabbit, CennoxX, hoo, Lydia_Pintscher, Amire80, Arrbee, Aklapper, Pginer-WMF, Wikidata-bugs, aude, Jsahleen, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T87410: Link translated articles with other languages through Wikidata automatically
Ricordisamoa added a comment. In https://phabricator.wikimedia.org/T87410#1310762, @hoo wrote: In https://phabricator.wikimedia.org/T87410#1309481, @santhosh wrote: I think we just need wblinktitles api api.php?action=wblinktitlesfromsite=enwikifromtitle=Hydrogentosite=dewikitotitle=Wasserstoff with an edit token Yes, that would work. You can also use the wbsetsitelink api, if you prefer (that way you don't need to know about other articles). Since the purpose is linking articles translated from other wikis, I think their titles and site ids are already known. Aren't they? TASK DETAIL https://phabricator.wikimedia.org/T87410 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80, Ricordisamoa Cc: He7d3r, Ricordisamoa, santhosh, Nikerabbit, CennoxX, hoo, Lydia_Pintscher, Amire80, Arrbee, Aklapper, Pginer-WMF, Wikidata-bugs, aude, Jsahleen, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T87410: Link translated articles with other languages through Wikidata automatically
hoo added a comment. In https://phabricator.wikimedia.org/T87410#1079888, @Amire80 wrote: Thanks! ContentTranslation is developed mostly with Wikipedia in mind, but doesn't forget non-Wikimedia sites. What would be the right way that the current site is a Wikibase client? Check that $wgWBClientSettings is defined? Server side we're using `defined( 'WBC_VERSION' )` for this... on the client (JavaScript), you would probably check for the existence of the RL modules. TASK DETAIL https://phabricator.wikimedia.org/T87410 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign username. EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80, hoo Cc: santhosh, Nikerabbit, CennoxX, hoo, Lydia_Pintscher, Amire80, Arrbee, Aklapper, Pginer-WMF, Wikidata-bugs, Jdouglas, aude, Jsahleen, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T87410: Link translated articles with other languages through Wikidata automatically
Amire80 added a comment. Thanks! ContentTranslation is developed mostly with Wikipedia in mind, but doesn't forget non-Wikimedia sites. What would be the right way that the current site is a Wikibase client? Check that $wgWBClientSettings is defined? TASK DETAIL https://phabricator.wikimedia.org/T87410 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign username. EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80 Cc: santhosh, Nikerabbit, CennoxX, hoo, Lydia_Pintscher, Amire80, Arrbee, Aklapper, Pginer-WMF, Wikidata-bugs, Jdouglas, aude, Jsahleen, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T87410: Link translated articles with other languages through Wikidata automatically
hoo added a comment. Hi, I don't have a lot of time today (actually I'm not working the whole week and next week), but I still want to give some initial ideas. You can do it in the front end and make use of https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/master/client/resources/wikibase.client.PageConnector.js (that's what the Add links dialog uses) or you can make use of the wblinktitles api https://www.wikidata.org/w/api.php?action=helpmodules=wblinktitles (that module can't perform item merges, but I guess that's not an issue here). Using that api is probably the easiest and most stable thing to do. Binding against the Wikibase extension in PHP is probably not that much of a good idea given that we don't really have stable PHP interfaces. TASK DETAIL https://phabricator.wikimedia.org/T87410 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign username. EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80, hoo Cc: santhosh, Nikerabbit, CennoxX, hoo, Lydia_Pintscher, Amire80, Arrbee, Aklapper, Pginer-WMF, Wikidata-bugs, Jdouglas, aude, Jsahleen, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs