[09:19:56] Hallo [09:20:31] Some people here may be interested to know that the infobox template for geography of a country int he Hebrew Wikipedia was adapted to Wikidata [09:24:33] how does that work ? [09:25:10] fields get automatically queries from wikidata when you look at the wikipedia page ? [09:25:14] *queried [09:25:54] rom1504: yes [09:27:43] See Geography of Germany for example: https://he.wikipedia.org/wiki/%D7%92%D7%90%D7%95%D7%92%D7%A8%D7%A4%D7%99%D7%94_%D7%A9%D7%9C_%D7%92%D7%A8%D7%9E%D7%A0%D7%99%D7%94 [09:27:56] View the source—the first line is just a template call without parameters. [09:27:59] Wikidata is awesome. [09:28:15] It makes the articles' code much more maintainable. [09:28:27] It makes the templates' even worse than in the past, however ;) [09:45:06] Anybody in the office for a daily? [09:45:26] Adrian_WMDE: Whats your time scale for today? [09:45:46] Thiemo_WMDE: As usual [09:46:04] Leaving about 4pm? [09:46:59] Bit earlier [12:14:55] Adrian_WMDE: https://gerrit.wikimedia.org/r/292129 <-- this still contains a mistake, I believe. Am I wrong? [12:15:46] You might be right [12:15:59] Adrian_WMDE: Currently reviewing https://gerrit.wikimedia.org/r/294687 Should be simple. Code moved around but is not really changed, correct? [12:16:13] Yes [12:16:29] I just got lazy when I first introduced the ViewFactory and didn't convert everything to it [12:16:32] Ok. Give me 15min, I may ask questions then. Ok? [12:17:27] Sure [12:34:31] Adrian_WMDE: 2 questions in https://gerrit.wikimedia.org/r/294687 [12:35:06] I already fixed the JSDoc thing. [12:35:13] So only 1 question. [12:36:31] I guess the CSS class names comes from the backend template now. [12:37:32] answered [12:51:09] * aude waves :) [13:00:53] aude: Hi. Btw, anything for the scrum-of-scrums today? [13:02:17] Thiemo_WMDE: not from me [13:24:09] Adrian_WMDE: Still there? Next patch is https://gerrit.wikimedia.org/r/291861 and I do not understand the idea behind it. [17:07:57] Lydia_WMDE: Around? I'm searching the most relevant wiktionary ticket we have. Is it https://phabricator.wikimedia.org/T986 ? [17:37:29] DanielK_WMDE, can we chat in half an hour? [18:56:47] hi [18:56:54] hey [18:57:03] hi yannf [18:57:03] is there a property for Wikisource category? [18:57:15] categories [18:57:54] I don't think so, I think you can just use the regular ones we have for categories. [18:58:04] which is? [18:58:31] https://www.wikidata.org/wiki/Property:P910? [18:58:32] P910 Masterwork From Distant Lands - https://phabricator.wikimedia.org/P910 [18:58:38] ignore stashbot pls [18:59:09] https://fr.wikisource.org/wiki/Cat%C3%A9gorie:R%C3%A9volution_russe [18:59:48] maybe it will help more if you tell me what you want to do :) [19:00:22] add an entry for this cat, so that it gets interwikis [19:00:32] I think you can just add it to https://www.wikidata.org/wiki/Q6910979 [19:00:36] about the Russian revolution [19:01:01] ah ok [19:01:56] something else [19:02:11] looking for an entry for the author of https://commons.wikimedia.org/wiki/File:Gorine_-_La_R%C3%A9volution_russe_de_1905.djvu [19:02:50] not sure about the spelling [19:03:07] Pavel Osipovič Gorin? [19:03:20] Yep, and some other variants here: http://viaf.org/viaf/64057872/ [19:06:51] yes [19:07:20] Pretty sure you can create a notable item with those. [19:07:32] Anyone know how I can call an arbitrary Wikidata item from Lua code? [19:07:59] I don't want to use the one that is connected to the Wikidata item (for example a test page that anyway has no connected item) [19:08:43] tobias47n9e_: just wikibase.getEntity( 'Q' )? [19:08:50] sjoerddebruin, ok thanks [19:09:02] different options are just listed here, or am I wrong? https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.getEntity [19:09:22] sjoerddebruin, Thanks. Couldn't find that anywhere and I am so new to Lua that I don't know where to look :) [19:09:33] I am a bit surprised there isn't any entry yet, he is quite notable http://nasb.gov.by/eng/members/academicians/gorin.php [19:09:46] tobias47n9e_: that page came up as second or something when searching for "wikidata lua" on Google [19:10:09] yannf: Yeah, weird. [19:10:24] sjoerddebruin, I searched for wikidata lua arbitrary access and was less successful :/ [19:10:55] Well it would be weird to me if the basic functions would only allow input from the connected item. [19:12:53] sjoerddebruin, I really just started learning Lua today. But I thought I heard that that was possible. I am tackling this bug here: https://phabricator.wikimedia.org/T76229 [19:13:33] Great! :) [19:13:35] "SyntaxError: Unexpected end of JSON input" <- what's that? [19:13:42] yannf: where? [19:13:54] And here is the start: https://www.wikidata.org/wiki/Wikidata:Infobox_Tutorial - I actually wanted to write it during the Wikimania Hackathon, but I had to explain SPARQL to a few people and didn't get to anything. [19:14:30] https://www.wikidata.org/wiki/Q25110347 when adding "instance of" -> human [19:14:46] yikes [19:15:14] where is hoo when you need him... [19:15:47] i'll see what happens if i create a new item [19:16:29] sjoerddebruin, there is one already https://www.wikidata.org/wiki/Q17044050 [19:16:31] same, will create phab task [19:16:45] yannf: oh, without latin labels... great [19:18:25] https://phabricator.wikimedia.org/T138974 [19:18:52] could you delete https://www.wikidata.org/wiki/Q25110347 plz [19:19:17] done [19:20:47] thnaks [19:21:04] now same error every time :( SyntaxError: Unexpected end of JSON input [19:21:13] yeah, everywhere [19:23:37] Not sure if Lydia_WMDE is still up. :) [19:25:26] sjoerddebruin: wish I could reproduce it [19:26:20] You don't have problems? I don't see any added statements in your contribs [19:27:00] "SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data" [19:27:03] all kinds of errors [19:27:25] this again... [19:27:39] I am sure there was similar problem few weeks ago [19:27:56] the most important thing is in console [19:28:02] Use of the "edit" token is deprecated. Use "csrf" instead. [19:28:41] Oh right, I was only looking at the console errors tab [19:28:56] certainly caused by deployment train which happens on Wednesdays [19:29:08] so a rollback is very likely [19:30:08] * aude panics [19:30:24] aude: thank God for you [19:30:26] we didn't deploy new wikidata code so not sure what's wrong :( [19:31:08] use of "edit" token warning is not new (we should fix it though) [19:32:07] Weird that there are no complaints in the project chat yet. :O [19:32:52] take a look at Special:RecentChanges, not statements have been added for a while [19:33:06] yeah, I was checking that [19:33:28] wondering if it also is blocking adding statements via API, that will be annoying as fuck [19:34:21] we are reverting the code on wikidata until we fix [19:34:32] test.wikidata is similarly broken, so we will still be able to debug [19:37:00] sjoerddebruin, probably yes, tried adding Authority control, and it is stucked [19:37:19] Yikes, better write a message then. When was the deploy aude? [19:37:28] adding statements should work again [19:37:36] aude: it is, thanks [19:37:40] *does [19:38:04] and the console report is still there, so it was irrelevant as aude said [19:38:15] we still still fix the token issue [19:38:35] maybe sjoerddebruin could remove that comment on Phab [19:39:44] Edited to reflect the current status. [19:41:26] aude: is it normal that vendor/data-values is now present both under extensions/WikidataBuildResources and extensions/WikidataBuildResources/extensions/Wikibase/vendor/ ? or my checkout is out of sync? [19:42:49] not normal [19:43:01] maybe you ran composer install under wikibase? [19:43:17] aude: so which one should be there? resouces one or wikibase one? [19:43:50] aude: I don't remember doing it, but who knows... that install had a lot done to it. so under Wikibase there should be no vendor/? [19:44:01] resources [19:44:14] if you are using the build, which seems the case [19:46:29] aude: https://www.wikidata.org/wiki/Wikidata:Project_chat#Temporary_outage_of_adding_statements [19:47:06] just updated my local install of mediawiki and now have the bug [19:47:10] sjoerddebruin: thanks [19:47:26] Maybe I should take that communcation job... ;) [19:49:17] :) [20:11:34] PHP Notice: The specified value for the Wikibase setting 'entityNamespaces' uses content model ids. This is deprecated. Please update to plain entity types. [Called from Wikibase\Repo\WikibaseRepo::fixLegacyContentModelSetting in /vagrant/mediawiki/extensions/WikidataBuildResources/extensions/Wikibase/repo/includes/WikibaseRepo.php at line 1753] in [20:11:34] /vagrant/mediawiki/includes/debug/MWDebug.php on line 309 [20:11:44] anybody knows why I'm getting this now? [20:11:56] and how to fix it? [20:12:51] SMalyshev: think we changed it in production [20:13:07] aude: so what it should be instead? should vagrant be updated then? [20:13:11] needs to be also changed in mediawiki-vagrant [20:13:55] like https://github.com/wikimedia/operations-mediawiki-config/blob/master/wmf-config/Wikibase.php#L53 [20:14:03] and needs to be set in both client and repo now [20:14:22] the old settings should still work, and if you prefer, make a task [20:14:42] I'll try to patch my vagrant if it works I'll make a patch [20:15:25] aude: should it be also changed from wgWBRepoSettings to wgWBSharedSettings? [20:15:51] or just copied? [20:16:53] copied would be ok [20:17:21] just they both need to be maintained to be the same, which is why we use shared settings in prodcution [20:17:37] aude: hm, but they are like this now: $wgWBRepoSettings['entityNamespaces']['wikibase-item'] = NS_MAIN; [20:17:39] so we don't end up forgetting to update one of them [20:17:41] so what's the diff? [20:17:48] oh [20:18:52] think it's supposed to be 'item' [20:19:04] and 'property' (entity types) [20:19:08] all examples btw also have NS_MAIN [20:19:16] repo/config/Wikibase.example.php [20:19:24] client/config/WikibaseClient.example.php [20:19:58] I think it needs a better error message :) [20:20:11] most error messages need that :) [20:22:50] SMalyshev: https://phabricator.wikimedia.org/T138982 [20:24:12] aude: ah, I made T138983 in the meantime :) [20:24:12] T138983: entityNamespaces change leads to notices on Vagrant - https://phabricator.wikimedia.org/T138983 [20:24:55] feel free to merge/split as needed, there's at least 4 things needing to be done there [20:27:35] ah, wait, I'm wrong - examples are fine [20:28:01] in repo, but not in client [20:31:53] SMalyshev: ok [20:41:16] sjoerddebruin: aude: you're the best [20:41:17] thank you [20:41:22] sorry - i just got home [20:41:34] np [20:41:53] hi Lydia_WMDE ! [20:42:17] hey Harmonia_Amanda :) [20:42:43] so sad I couldn't come to wikimania :s [20:42:49] yes :( [20:43:05] Harmonia_Amanda: indeed! [20:43:07] :( [20:43:28] If there was only one way to meet Wikidata people all at one place... [20:43:31] Lydia_WMDE: https://gerrit.wikimedia.org/r/#/c/296648/ [20:43:51] sjoerddebruin: :P I've been poking people to see what we can do about it [20:43:54] aude: looking [20:44:00] i don't expect it to be merged tonight but if someone could look tomorrow, that would be helpful [20:44:06] Lydia_WMDE: Great, will remind you every week. ;) [20:44:11] then we can backport and re-deploy wmf.8 to wikidata [20:44:19] aude: ok cool [20:44:19] sjoerddebruin: and WikiCite ? :-P [20:44:26] sjoerddebruin: ohnoes! What did i start? :D [20:44:29] repking: of course :) [20:46:12] hmm weird... now I get Failed to decode as application/json on Main_Page in my wikidata setup [20:46:25] why it tries to decode regular page as JSON? [20:46:54] SMalyshev: content-type header? [20:47:09] repking: what do you mean? [20:47:13] Lydia_WMDE: hmm, did you wrote an email, like several weeks ago, about what lists redactors on WP would want of wikidata? [20:47:42] Harmonia_Amanda: yes [20:49:26] because i use wikidata on wikinews and what I would really love to see is a way to facilitate queries about qualifiers. I'm workin on awards, which are stocked on wikidata like this : Qid P166 SpecificAward O805;TheCeremony [20:49:32] P805* [20:49:32] P805 Tools things to exclude in initial copy - https://phabricator.wikimedia.org/P805 [20:49:34] SMalyshev: just trying to answer your question without context, sorry :-). When tries to decode a page in a format that has no sense it tends to be that either the client or the server are sending that header. But of course, I doubt you are hitting this error [20:50:01] Lydia_WMDE: and there is no way to generate a table with all "P805: ThisSpecificCeremony" right now [20:50:01] P805 Tools things to exclude in initial copy - https://phabricator.wikimedia.org/P805 [20:50:52] Harmonia_Amanda: *nod* [20:50:53] Lydia_WMDE: and if we could, we could generate tables of recipients for awards on Wikinexs more easily and that would be so great [20:51:17] hmmm you should be able to get this with a sparql query... no? [20:51:17] the French Wikinews have already adopted wikidata for sport results [20:51:32] nice [20:51:37] Lydia_WMDE: yes, but not as a template in lua [20:51:43] oh sure [20:51:44] yes [20:52:20] Lydia_WMDE: like that: https://fr.wikinews.org/wiki/Courses_de_chiens_de_tra%C3%AEneau_:_les_r%C3%A9sultats_du_Solstice_50 [20:52:30] arrgh no [20:52:35] not like that [20:53:24] repking: I don't think my browser sends anything unusual [20:56:13] Lydia_WMDE: well, wikinews want a template like this one; https://fr.wikinews.org/wiki/Mod%C3%A8le:Tableau_qualificateurs [20:56:25] whicj doesn't have a documentation >< [20:56:28] thanks! [20:56:33] hehe yeah [20:56:54] Lydia_WMDE: https://fr.wikipedia.org/wiki/Mod%C3%A8le:Tableau_qualificateurs [20:57:06] SMalyshev: maybe it doesn't sends the Accept: header? [20:57:07] same template on Wikipedia *with* documentation [20:57:31] Lydia_WMDE: we can't use sparql to power tables like that, I think? [20:57:35] repking: I'm pretty sure it sends all the standard things browsers send since forever, nothing special [20:57:48] Harmonia_Amanda: with magnus' listeria bot but nothing else yet yeah [20:58:44] Lydia_WMDE: so well, if we are speaking of making lists with wikidata, an easy way to quary with a specific qualifier (property-value) as a starting point would be a great gift :) [20:59:09] :) makes sense [21:00:06] if I only have to update wikidata then write an introduction and just paste the template to have automatically my results, I would wrote more often for wikinews :D [21:00:25] Now a question in the air for you people: How do you deal with sparql timeouts?, there's an algorithm you use to simplify the query, or divide etc ? [21:01:25] SMalyshev: Now the server is sending the wrong data for something down the line, which server are you hitting? [21:01:37] repking: I wept [21:01:50] ... not sure that's helpful, actually [21:02:21] repking: my own vagrant install [21:05:18] Harmonia_Amanda: sure that was my strategy, but tears tend to break my keyboards. This is the fourth in a week [21:06:17] Harmonia_Amanda: fixed [21:06:30] Mattho69: thanks! [21:06:58] so Lydia_WMDE I want to be able to do that with awards: https://fr.wikinews.org/wiki/Copper_Basin_300_:_Matt_Hall_remporte_la_victoire [21:07:07] an automatic table! [21:07:16] *nod* [21:08:01] :) [21:08:07] Mattho69: many thanks [21:08:41] SMalyshev: oops, sorry I can't help :-( [22:24:49] aude: do you know if anything changed recently in content model handling in wikidata? [22:26:01] I'm getting page which has model wikitext parsed as wikibase-item and I have no idea why