[Wikidata-bugs] [Maniphest] [Commented On] T100875: run a bot that adds sitelinks to articles that were created using ContentTranslation and not linked to other languages
Ladsgroup added a comment. I added the code in crontab. And the code is here https://gist.github.com/Ladsgroup/602ae2ba5db7a3031901 in case I got hit by a truck :) TASK DETAIL https://phabricator.wikimedia.org/T100875 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Ladsgroup Cc: Lydia_Pintscher, santhosh, Nikerabbit, Ladsgroup, Amire80, Aklapper, Wikidata-bugs, aude, Jsahleen, Arrbee, KartikMistry, 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] T100875: run a bot that adds sitelinks to articles that were created using ContentTranslation and not linked to other languages
Amire80 added a comment. Reopened. The auto-adding of interlanguage links seems to work most of the time, but occasionally it seems to fail (we are trying to understand why). Until it's totally reliable, it would be nice to run this bot periodically, for example every week. Can it be scheduled? TASK DETAIL https://phabricator.wikimedia.org/T100875 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Ladsgroup, Amire80 Cc: Lydia_Pintscher, santhosh, Nikerabbit, Ladsgroup, Amire80, Aklapper, Wikidata-bugs, aude, Jsahleen, Arrbee, KartikMistry, 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] T100875: run a bot that adds sitelinks to articles that were created using ContentTranslation and not linked to other languages
Ladsgroup added a comment. The bot finished working and made more than 550 edits: https://www.wikidata.org/w/index.php?title=Special:Contributions/Dexbotdir=prevoffset=20150601091333target=Dexbot (click on newer edits to see more) Errors to check by humans are here: https://tools.wmflabs.org/dexbot/errors.json The script is here: https://gist.github.com/Ladsgroup/dccec148e8ecc1fab476 TASK DETAIL https://phabricator.wikimedia.org/T100875 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Ladsgroup Cc: Bene, Lydia_Pintscher, santhosh, Nikerabbit, Romaine, Ladsgroup, Amire80, Aklapper, Wikidata-bugs, aude, Jsahleen, Arrbee, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T100875: run a bot that adds sitelinks to articles that were created using ContentTranslation and not linked to other languages
Ladsgroup added a comment. The bot finished working and made more than 550 edits: https://www.wikidata.org/w/index.php?title=Special:Contributions/Dexbotdir=prevoffset=20150601091333target=Dexbot (click on newer edits to see more) Errors to check by humans are here: https://tools.wmflabs.org/dexbot/errors.json TASK DETAIL https://phabricator.wikimedia.org/T100875 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Ladsgroup Cc: Bene, Lydia_Pintscher, santhosh, Nikerabbit, Romaine, Ladsgroup, Amire80, Aklapper, Wikidata-bugs, aude, Jsahleen, Arrbee, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T100875: run a bot that adds sitelinks to articles that were created using ContentTranslation and not linked to other languages
Lydia_Pintscher added a comment. Thanks, Amir! :) TASK DETAIL https://phabricator.wikimedia.org/T100875 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Ladsgroup, Lydia_Pintscher Cc: Bene, Lydia_Pintscher, santhosh, Nikerabbit, Romaine, Ladsgroup, Amire80, Aklapper, Wikidata-bugs, aude, Jsahleen, Arrbee, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T100875: run a bot that adds sitelinks to articles that were created using ContentTranslation and not linked to other languages
Ladsgroup added a comment. Writing something for that is pretty easy and I like to help about ContentTranslation, Just give me list of wikis which content translation is enabled, then consider it done :) TASK DETAIL https://phabricator.wikimedia.org/T100875 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Ladsgroup Cc: Bene, Lydia_Pintscher, santhosh, Nikerabbit, Romaine, Ladsgroup, Amire80, Aklapper, Wikidata-bugs, aude, Jsahleen, Arrbee, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T100875: run a bot that adds sitelinks to articles that were created using ContentTranslation and not linked to other languages
Amire80 added a comment. @Ladsgroup, thanks! See https://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php Search for wmgUseContentTranslation . You can go over all the true values, and you can skip testwiki of course. TASK DETAIL https://phabricator.wikimedia.org/T100875 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Ladsgroup, Amire80 Cc: Bene, Lydia_Pintscher, santhosh, Nikerabbit, Romaine, Ladsgroup, Amire80, Aklapper, Wikidata-bugs, aude, Jsahleen, Arrbee, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T100875: run a bot that adds sitelinks to articles that were created using ContentTranslation and not linked to other languages
Amire80 added a comment. (This is not a bug in https://phabricator.wikimedia.org/tag/wikidata/ on in https://phabricator.wikimedia.org/tag/mediawiki-extensions-contenttranslation/, but I tag both projects because they are related.) TASK DETAIL https://phabricator.wikimedia.org/T100875 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80 Cc: santhosh, Nikerabbit, Romaine, Ladsgroup, Amire80, Aklapper, Wikidata-bugs, aude, Jsahleen, Arrbee, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T100875: run a bot that adds sitelinks to articles that were created using ContentTranslation and not linked to other languages
Nikerabbit added a comment. Which labs do you mean? There are separate tables for production and beta-labs. Those are in the wikishared database and named cx_drafts, cx_translations, cx_translators. I have not checked whether those are available on the database copies on labs. TASK DETAIL https://phabricator.wikimedia.org/T100875 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Nikerabbit Cc: Bene, Lydia_Pintscher, santhosh, Nikerabbit, Romaine, Ladsgroup, Amire80, Aklapper, Wikidata-bugs, aude, Jsahleen, Arrbee, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T100875: run a bot that adds sitelinks to articles that were created using ContentTranslation and not linked to other languages
santhosh added a comment. In https://phabricator.wikimedia.org/T100875#1322706, @Amire80 wrote: I suspect that we don't have a convenient API to get a list of all translations https://www.mediawiki.org/wiki/Content_translation/Published_translations TASK DETAIL https://phabricator.wikimedia.org/T100875 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: santhosh Cc: Bene, Lydia_Pintscher, santhosh, Nikerabbit, Romaine, Ladsgroup, Amire80, Aklapper, Wikidata-bugs, aude, Jsahleen, Arrbee, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T100875: run a bot that adds sitelinks to articles that were created using ContentTranslation and not linked to other languages
Bene added a comment. I guess that it's better to get the list from the central contenttranslation database Is that available on labs? And is the database documented somewhere? TASK DETAIL https://phabricator.wikimedia.org/T100875 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Bene Cc: Bene, Lydia_Pintscher, santhosh, Nikerabbit, Romaine, Ladsgroup, Amire80, Aklapper, Wikidata-bugs, aude, Jsahleen, Arrbee, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T100875: run a bot that adds sitelinks to articles that were created using ContentTranslation and not linked to other languages
Amire80 added a comment. In https://phabricator.wikimedia.org/T100875#1322759, @santhosh wrote: In https://phabricator.wikimedia.org/T100875#1322706, @Amire80 wrote: I suspect that we don't have a convenient API to get a list of all translations https://www.mediawiki.org/wiki/Content_translation/Published_translations Thanks, this should work. Another option is to run the following query in every wiki: https://www.mediawiki.org/wiki/Content_translation/analytics/queries#Pages_created_in_the_main_namespace I'm not sure what's more efficient - it's up to the bot writer. TASK DETAIL https://phabricator.wikimedia.org/T100875 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80 Cc: Bene, Lydia_Pintscher, santhosh, Nikerabbit, Romaine, Ladsgroup, Amire80, Aklapper, Wikidata-bugs, aude, Jsahleen, Arrbee, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
[Wikidata-bugs] [Maniphest] [Commented On] T100875: run a bot that adds sitelinks to articles that were created using ContentTranslation and not linked to other languages
Amire80 added a comment. In https://phabricator.wikimedia.org/T100875#1322685, @Bene wrote: I guess that it's better to get the list from the central contenttranslation database Is that available on labs? And is the database documented somewhere? I suspect that we don't have a convenient API to get a list of all translations, but this is probably a one-time thing, for which it's possible to get a one-time simply query that lists all the published articles. TASK DETAIL https://phabricator.wikimedia.org/T100875 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Amire80 Cc: Bene, Lydia_Pintscher, santhosh, Nikerabbit, Romaine, Ladsgroup, Amire80, Aklapper, Wikidata-bugs, aude, Jsahleen, Arrbee, KartikMistry ___ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs