[01:09:08] aude: hey - sorry - was filling out paperwork due today :) [01:09:18] aude: are you very familiar with OSM’s org structure? [05:45:16] addshore: around? [06:12:53] addshore: I'm trying to figure out how to use wbeditentity to fix sonsequences of T138725 but I'm getting "Unknown language" all the time [06:12:54] T138725: Special:NewItem and Special:NewProperty allow creation of items with term language as any string - https://phabricator.wikimedia.org/T138725 [07:46:14] SMalyshev: yeh! [07:46:55] so, get the whole entity using wbegtentities SMalyshev, and pass the whole entity back excluding the bad languages and set the clear param! [07:47:59] I just updated my comment on the ticket! [10:13:35] Lydia_WMDE: https://github.com/wikimedia/mediawiki-extensions-WikibaseJavaScriptApi/blob/master/src/RepoApi.js [10:35:54] https://www.wikidata.org/wiki/Wikidata:Property_proposal/Software_quality_assurance is ready, should I just wait for someone with proper credentials to act on it ? Or should I ping someone ? [14:26:51] mutante: did you try changing +- 1 to +- 0 ? [15:19:44] Lydia_WMDE: will some of the primarysources bugs also be fixed by your team? :) [15:22:09] sjoerddebruin: realistically no but other people said they'd help [15:22:12] if we move it [15:22:21] so i am hoping now that that wasn't just empty promises [15:41:20] Lydia_WMDE: ah, ok [16:57:24] dachary: thanks, no, i had not tried that. now i see that somebody already fixed it (somehow) in https://www.wikidata.org/w/index.php?title=Q4876413&type=revision&diff=356651089&oldid=356650529 [17:16:27] media properties are really funest for the property suggestions [17:27:08] addshore: thanks! do you know how to make pywikibot do that? [17:27:17] nope :/ [17:27:27] you can easily do it with my php library though :P [17:27:41] addshore: ok :) which one is that? [17:28:35] https://github.com/addwiki/wikibase-api [17:29:12] addshore: thanks! I'll take a look. I've found a number of entities with bad languages, so I want to make a script to fix them [17:29:36] Cool, yeh, simply, you have an ItemLookup (same interface as in wikibase code) and you have a https://github.com/addwiki/wikibase-api/blob/master/src/Api/Service/EntityDocumentSaver.php [17:30:22] If you want an example of how to construct the factory with the datavalue things see https://github.com/addwiki/wikimedia-commands/blob/master/src/ExtensionToWikidata.php#L97 [17:30:35] (i'm going to make a convenience library for wikidata soon......) any questions just ask! :) [17:31:41] addshore: sure, I'll try to do something once I'm done with meetings. thanks! [17:56:42] addshore: is there any phpdoc on this? [19:12:47] SMalyshev: for what? you mean magical html browsable phpdoc? if so then no :/ [19:22:01] addshore: np, I figured it out. I've cleaned up the items with bad languages I could find [19:47:34] :) [20:26:02] SMalyshev: were you cleaning up the terms with bad language codes? [20:34:27] nikki: yes [20:35:19] though I'm pretty sure I haven't got all of them as I don't have the list of languages, I only found those that are known bad, like español [20:37:20] assuming the db is up to date, the last page of https://quarry.wmflabs.org/query/10665 has some more [20:38:59] (the ones which are clearly language names, the two non-latin ones plus "de-DE", "En" and "Spa") [22:35:22] nikki: any way to see which items these languages relate to? [22:40:10] ah, term_entity_id seems to be it