[07:26:47] zhuyifei1999_: I will just update the thingy straightaway and let you know (python 3.5 on wmflabs) [07:27:01] k [07:28:53] Where can I buy a hairbrush around here? [07:29:04] This is, uh, important. [07:35:09] Isarra: rossmann may have it [07:35:34] it's near metro Dejvicka from what I see [07:35:45] (not sure though) [07:36:50] I couldn't find any there, but maybe I should try again while awake... [07:37:11] hm. [07:42:02] zhuyifei1999_: (and others interested). toolsforge webservice still seems not to support python 3.5 (even though this was merged yesterday). I see this from the backlog. https://dpaste.de/ZvvO - seems like uwsgi is still on 3.4.2 it seems. [07:42:20] Isarra: is rossmann even open today ? [07:52:15] No idea. [07:52:46] I'll probably look tomorrow. [07:58:29] Don't know what to do today? You can come to the education center to talk and still find fun things to work on [07:59:11] Other sessions now starting: Selenium tests [08:00:26] https://phabricator.wikimedia.org/T223624 Write the first Selenium test for a repository [08:42:36] help wanted! I have an upload file python program using mwclient and I get `mwclient.errors.APIError: ('abusefilter-disallowed', "'''Warning:''' This action has b... `. Actually my mwclient is authenticated to test2.wikipedia.org. Is there a way to get past this, (and I just need it for testing purposes) [08:47:46] tonythomas: abusefilter errors tend to be based on content, you need to look at what that specific filter bans [08:48:46] frustrated with IRC? come to the communication tools session! https://phabricator.wikimedia.org/T223418 (in 10 minutes) [08:50:34] https://xkcd.com/1782/ :) [08:59:06] fixed it, thanks to zhuyifei1999_ [09:17:02] tgr_: I have more OAuth clients to be removed/rejected. [09:33:40] Again a C++ question at the help desk. Anyone at the venue that can look at some code? [09:37:06] petan, ^ [09:38:28] I just looked around for petan and I don't think he is here this morning. tobias47n9e, I can help you (or whoever need it) find him [09:38:34] He writes a lot of C++ these days :) [09:41:33] halfak: where are you sitting? [09:41:53] I'm at table 1 in the mentoring area. I can swing by the helpdesk. [09:42:32] c++ help is needed at the table next to help desk [09:42:45] Seems to be resolved [09:56:07] thedj: https://phabricator.wikimedia.org/T204577 [10:15:20] Any 'ArticlePlaceholder' extension developers available to look into an error ? [10:15:23] https://phabricator.wikimedia.org/T207235 [10:30:30] Deadline for submitting to the showcase is in 1 minute! https://etherpad.wikimedia.org/p/Wikimedia_hackathon_showcase_2019 [11:02:26] Reedy: https://zh.wikivoyage.beta.wmflabs.org/zh-cn/%E6%B5%8B%E8%AF%95 https://zh.wikivoyage.beta.wmflabs.org/zh-hans/%E6%B5%8B%E8%AF%95 [11:10:02] anybody seen daniel kinzler? [11:10:53] Ever? [11:27:49] a few times [11:29:06] my hackathon project was a new feature for Toolforge devs – which mailing list should I announce that on, cloud or cloud-announce? any thoughts? [11:29:30] (it’s already live, so I’d send the email right around the showcase) [11:29:33] I think probably just cloud [11:29:40] ok thanks [11:32:37] I just sent Daniel K a message, Danny_B :) [11:39:23] debt: thanks, already solved in the meantime [11:45:19] tonythomas: I'm around if you still need the OAuth apps fixed [11:45:39] tgr_: I will give you the ids soon. Thank you! [11:53:31] Hello all [11:53:42] Can anyone help me with a Wikidata question? [11:54:31] I'd like to have method to take a label, language pair like "George Washington", "en" [11:55:04] ...and get the identifier for the entity, "Q23" [11:55:41] This seems like a normal thing to do but I can't figure out how to do it. [11:55:50] Oh, I'm using wikidata-sdk and wikidata-edit [11:56:02] eprodromou: the problem is that this is ambiguous in general: many items might have the same label in a given language [11:56:11] Ah [11:56:21] Let's change that to [11:56:37] An array of matching identifiers, ["Q23", ...] [11:56:49] you can use the reconciliation interface for that, it lets you narrow down by type [11:57:04] reconciliation interface? [11:57:17] it is described here: https://github.com/OpenRefine/OpenRefine/wiki/Reconciliation-Service-API [11:57:21] let me give you an example [11:58:57] OK, this is great [11:58:58] https://tools.wmflabs.org/openrefine-wikidata/en/api?query={%22query%22:%22George%20Washington%22,%22type%22:%22Q5%22} [11:59:35] if you do not want any filtering by type, or other properties, you can use Wikidata's search APIs directly [11:59:48] (it is going to be quicker) [12:00:21] Oh, good, how would that work? [12:01:23] if you want the same results as Wikidata's search page: https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentities [12:02:18] ah sorry no, this is not Wikidata's search page, this is the suggestion box [12:02:31] Wikidata's search page results are given by https://www.wikidata.org/w/api.php?action=help&modules=query%2Bsearch [12:03:27] in general these two search endpoints will give you different results [12:04:35] No, that first one gives me what I want [12:04:37] https://www.wikidata.org/w/api.php?action=wbsearchentities&language=en&search=czech+national+library+of+technology [12:05:46] great! [12:15:14] Hey bd808, chicocvenancio and zhuyifei1999_ -- I've collected some instructions to automatically update a toolforge project based on a github repo whenever the repo is pushed to [12:15:20] Right now they're here: https://www.mediawiki.org/wiki/User:Waldir/Toolforge#Auto-update_Toolforge_from_GitHub [12:15:46] Can you take a quick look and let me know if they look OK to add to the documentation at https://wikitech.wikimedia.org/wiki/Help:Toolforge#Setting_up_code_review_and_version_control ? [12:18:33] Lydia_WMDE: I have started some documentation for developers for EditGroups at https://editgroups.readthedocs.io/en/latest/, I would need your help to add the webhooks to the GitHub repo for it to be updated automatically [12:19:00] waldir: looking... [12:19:08] pintoch: ok just let me know what needs to be done [12:19:42] if you go to https://readthedocs.org/projects/editgroups/ you should be able to add the webhooks from there I believe [12:20:01] (after logging in via GitHub) [12:20:16] ok let me see [12:21:29] waldir: well, that only works if the tool is a lighttpd-based webservice that runs php [12:21:48] (if it does not work we can resort to creating them manually from GitHub as explained in https://docs.readthedocs.io/en/stable/webhooks.html) [12:22:21] isn't that the default, zhuyifei1999_ ? I assumed one would have to deliberately change that to have a different setup [12:22:32] you can show the instructions, but I don't think it's 'generic' [12:23:32] zhuyifei1999_: what should I add to make them sufficiently generic? [12:24:27] waldir: the "echo ..." isn't redirected to a file, but otherwise I think it should work. [12:24:54] well, it is the default, a lot of people use python+uwsgi / node / etc. [12:24:59] @pintoch [12:25:12] pintoch: I'm not seeing anything that would let me set up a webhook [12:25:30] bd808: Oh I meant to remove that, it's from a previous version of the steps (I was testing out and loading the php page in my browser) [12:25:38] (remove the echo, I mean) [12:25:45] I think it's fine as long as it's explicitly stated that it only works under this circumstance [12:25:58] waldir: maybe rather than putting the instructions into the main Help page, make a sub page for it and link from the git section and also from https://wikitech.wikimedia.org/wiki/Help:Toolforge/How_to ? [12:26:12] Ah nevermind, I misunderstood you. Yes, will fix [12:26:28] We can work on refining things a bit too. It doesn't have to be perfect on the first edit ;) [12:26:35] bd808: Sounds good, will do 👍 [12:26:39] Lydia_WMDE: okay, then can you go to https://github.com/Wikidata/editgroups/settings/hooks and create it from there? I will try to give you the settings [12:26:45] Thanks for the review guys :) [12:26:47] ok [12:27:04] pintoch: if this is a matter of missing rights on your side btw we can also fix that [12:27:28] either way is fine [12:27:58] Lydia_WMDE: yes it is, but I am not sure there is a way for you to give me the rights without me being an admin on every single Wikidata project… :-/ we struggled with that when we transferred the project to the org already ^^ [12:28:32] ok but tbh if that's what it takes... [12:28:41] I'll send you the hook details by PM [12:28:45] oh well let's try setting it up and if that doesn't work... [12:28:48] thx [12:38:31] waldir: thanks for writing it ;) [12:39:32] I spent a whole evening figuring it all out, I'd better make something useful out of it :) [12:51:40] [REMINDER] Hackathon closing and showcase at Balling Hall 15:00 - [13:13:58] https://etherpad.wikimedia.org/p/Wikimedia_hackathon_showcase_2019 [13:37:44] TIL how to pronounce “Kattouw” [13:38:01] I mean I only knew him for like a decade :) [13:41:09] Lol [14:16:27] halfak: wanna train the chinese set? [14:16:43] zhuyifei1999_, yeah, man. We can experiment with it :) [14:21:16] Thanks for everyone! [16:55:35] yurb: but but but [16:55:49] https://github.com/mediawiki-utilities/python-mediawiki-utilities is not even listed at https://www.mediawiki.org/wiki/API:Client_code#Python [16:56:52] anyone knows which is preferred mediawiki api wrapper for python that is lightweight etc? [17:04:04] and since i'm already asking, has anyone idea is there a good example of putting some 300 random wikipedia articles in let's say 10 heuristic categories using some simple clustering algorithm? [18:13:34] ok, yurb probably meant this: https://github.com/mediawiki-utilities/python-mwapi [18:18:04] tramm: I prefer python-mwapi, but I don’t know if that’s a wide-spread opinion ^^ [18:18:18] it’s just the one used in the documentation that got me started [18:18:35] I think it’s the most straightforward one compared to the others – .get(), .post(), tada [18:18:54] but I haven’t actually used the others, so I’m only judging those by their READMEs [18:19:49] a small set of unit tests for it could be a nice small final-evening hackathon project ;) [18:39:53] Lucas_WMDE: thanks!