[00:30:36] Guys, how to select specific language object version for the given object in SPARQL? [00:31:35] in other words, is there a dedicated property which points to version in other languages? [00:31:50] to the+ versions* [01:05:21] How to put OR? [01:05:38] ?country wdt:P31 wd:Q6256 OR ?country wdt:P31 wd:Q1763527 [06:41:55] PROBLEM - High lag on wdqs2003 is CRITICAL: 3608 ge 3600 https://grafana.wikimedia.org/dashboard/db/wikidata-query-service?orgId=1&panelId=8&fullscreen [07:25:02] hi, several users of OSM Wiki has complained after installing Wikibase that the autocomplete searchbox now only shows wikibase items, not the titles of the regular pages. Is that a setting somewhere? [07:25:27] ���XV����8�8)1=�� J�c�k5L����W��Vs�`��ml}@�<���F��]� [07:25:34] ����Q����Pa��G���s3|�`M�4�gO[�#˰X����_� [07:25:37] �]�_h��jψ�Y/!47���α4��m$��B}�V#T�V���+��Ì����vu��������� ��e٘o���(�k���O~]E�=)��ujLѻ�U���gWP��K�,�'��y�d!�~3ջ�x!�AH�SLϞ [07:25:41] 7��]���H��� ����C [07:27:11] Hello [07:28:37] what can be better than a broken utf8 bot [07:28:51] two broken utf8 bots [07:30:54] PROBLEM - High lag on wdqs2003 is CRITICAL: 3621 ge 3600 https://grafana.wikimedia.org/dashboard/db/wikidata-query-service?orgId=1&panelId=8&fullscreen [08:20:27] [09:24] * ChanServ gives channel operator status to eir [08:20:27] [09:24] * eir sets mode -q #wikidata $~a [08:20:27] [09:24] * eir removes channel operator status from eir [08:20:27] this needs fixing D: [08:21:03] (honestly I find the broken utf an improvement over their usual message :D) [08:23:32] how do i donate data?plz help [08:33:14] hi, several users of OSM Wiki has complained after I installed Wikibase that the searchbox suggester now only shows wikibase items, not the titles of the regular pages. Is that a setting somewhere? Can I make it mixed? If not, how can it only return the non-item results (I would rather have both, but if not possible, original wiki content is more important) [08:35:26] AFAIK wikibase adds to $wgNamespacesToBeSearchedDefault, but it doesn't override it, NS_MAIN should still be in there [08:35:32] I think that affects that search box too [09:02:34] 5��1R�9��|�7���]�:dx�SM�E�)|��7}L�wIH���o��H��X��޵��x>Ce>5��5V���.��I{����I��d`VU���� ����Pr'�ĥ [09:02:37] =�$����PED%��c�S�u�@ ̉?d�03�A�yȓ������huP�w�aa�"�A{��J�4A������b��6�Gj����'g�����~���5C�Z��-S#�iX��;����5�l [09:02:40] �{�����w�7 z�3P.���IW�4�^��ڂW���.@d��Wv����#��ڒu�=̣�.�+=gI�>��� }"�hQ-�q��VH�=�[�F@*)��{�DZf�d��/е.��6��-�_ �=��ys����0�% ��� [09:02:44] �����m�83)��NeE�Z �S�Tؑ�/���T"J�!؞�#�͊d�������C_7*�o�V�z��� 8]nW̚ [09:02:46] �r���q��Up��R�o�zcQ�8���D��溂�r7`���7 ��k��5-�V����?�t��8�"��Đ [09:04:25] �:JRCS�fGY{@��[� ��̤N��J��O`_�������� [09:04:25] ��9���;y�{]7���;bFC���(N3ڢ����-�}���vl#�o�s=(�Bم�^�%��>�����Snϣ�h�Q2�Lt;`��k�>��U��J'���'"��1��is{P#&�H-c�FgA�%�� ��y&��Vآ��2��F�fp [09:04:25] M����H�s���EUp��f����xh;��F�5��qxĤ��S������~��5X;�� a!�)�L S�ד����b9W"VC�� ������L'ቢ/ ��|ǭ�T�\�t-�UI�/Cͨ�n��g��ݐK���,ޓW��D��nSW�%�8�n��Μ;�?������/H�g�>��p�?H�a�6K�wEk��t�hL�񮡮�[�AS*��anOxf#Q��j�2��D����J� [09:04:29] ��j�@Ps�ަ.�x�5� [09:05:10] yurik: https://phabricator.wikimedia.org/T190454 [09:05:33] "Currently,we patch an item selector on top of the normal search box" https://phabricator.wikimedia.org/T189490 [10:21:42] 🙇 freso [10:23:33] * Freso Kappa [10:29:40] wait why? [10:31:40] ( ͡° ͜ʖ ͡°) [10:32:53] um ok? :D [10:34:11] addshore: I've quieted `$~a` for a year now. See https://github.com/freenode/eir/blob/master/doc/bantracker/operators-guide.txt for future/further reference. [10:34:56] so eir wil lno longer come opping once a day and unquiet the chan? [10:35:14] Hopefully. [10:35:16] !m Freso 👏 [10:35:16] 👏 merge merge merge MERGEEEEEEEEEEEEE Freso [10:35:32] uhm [10:35:33] I will! [10:35:42] * Freso finds something to merge [10:35:52] … in MusicBrainz. ( ͡° ͜ʖ ͡°) [10:35:56] is wm bot a bot or did i accidentally trigger a diff bot with !m here? :D [10:36:05] wm-bot is a bot, yes. [10:36:14] .. !m test [10:36:17] !m test [10:36:18] $2 merge merge merge MERGEEEEEEEEEEEEE test [10:36:22] right [10:36:29] "wm-bot!~wm-bot@wikimedia/bot/wm-bot" [10:36:45] so !m does something else in #musicbrainz so I wasn't excepting that here :D [10:37:56] i thought maybe t was a person replying as "merge that change you did!" or osmething :D but it's called bot so probably is a bit [10:38:01] *is a bot [10:52:30] It's cloak says it's a bot too. [10:52:37] *Its [11:30:40] Hallo. [11:30:45] What is "rescore profile"? [11:30:56] It appears in three translatable messages in Wikibase Repo. [11:32:41] it seems to be related to ElasticSearch… SMalyshev do you know more? [11:32:44] aharoni: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-rescore.html [11:33:06] "Rescoring can help to improve precision by reordering just the top (eg 100 - 500) documents returned by the query and post_filter phases, using a secondary (usually more costly) algorithm, instead of applying the costly algorithm to all documents in the index." [11:33:52] DanielK_WMDE_: thanks, it's clear enough [11:34:52] yw [12:35:20] hello [13:25:32] PROBLEM - puppet last run on wdqs2006 is CRITICAL: CRITICAL: Catalog fetch fail. Either compilation failed or puppetmaster has issues [13:26:02] PROBLEM - puppet last run on wdqs2003 is CRITICAL: CRITICAL: Catalog fetch fail. Either compilation failed or puppetmaster has issues [13:28:14] PROBLEM - puppet last run on wdqs1010 is CRITICAL: CRITICAL: Catalog fetch fail. Either compilation failed or puppetmaster has issues [13:28:15] PROBLEM - puppet last run on wdqs1008 is CRITICAL: CRITICAL: Catalog fetch fail. Either compilation failed or puppetmaster has issues [13:45:32] RECOVERY - puppet last run on wdqs1006 is OK: OK: Puppet is currently enabled, last run 50 seconds ago with 0 failures [13:56:12] RECOVERY - puppet last run on wdqs2006 is OK: OK: Puppet is currently enabled, last run 3 minutes ago with 0 failures [14:00:51] Technical Advice IRC meeting starting in 60 minutes in channel #wikimedia-tech, hosts: @amir1 & @Pablo_WMDE - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [14:50:52] Technical Advice IRC meeting starting in 10 minutes in channel #wikimedia-tech, hosts: @amir1 & @Pablo_WMDE - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [15:52:22] Lucas_WMDE: rescore profile is the configuration that determines how we rank search results [15:53:51] generally rescore profile is used for adjusting ranking on queries, especially using query-independent metrics (though not only), like item weight, etc. [15:54:46] we allow to have multiple profiles in config, which can be chosen at runtime with cirrusRescoreProfile URL option (though not many use it AFAIK) [15:56:08] ok, thanks [16:11:38] sjoerddebruin and Reedy, thanks!!! I guess it is SMalyshev i need to bug about it :) [16:12:05] SMalyshev, is there a simple (temporary?) workaround to get our original search suggester back? [16:12:15] until the joint search is implemented [16:12:39] is anyone else seeing a lot of items lately with no labels on the linked items, even though the linked items do have labels? [16:12:58] (i.e. the items used in statements) [16:13:42] nikki: like this? https://twitter.com/MagnusManske/status/1044538961266454529 [16:13:49] (not sure if we already have a Phabricator task about it) [16:13:56] yes [16:14:14] oh, I can even reproduce it on https://www.wikidata.org/wiki/Q24306770 [16:14:43] purging (or editing) has fixed all the ones so far that I've seen, but I didn't even know there was a problem [16:14:58] so maybe it's still happening [16:24:22] nikki: https://phabricator.wikimedia.org/T205556 [16:24:47] thanks [17:15:59] yurik: a super quick’n’dirty hack: edit extensions/Wikibase/repo/resources/wikibase.ui.entitysearch.js to add `return;` right after `'use strict';` (line 8) [17:16:08] super ugly but seems to work in my local wiki [17:16:23] then you’ll have the normal search box back [17:16:57] (though that won’t affect Special:Search’s default namespaces or anything) [17:17:01] Lucas_WMDE, the osm wiki runs directly from git, I would have to fork it :( Is there a code workaround? I do have a custom extension that can add javascript and handle hooks? [17:17:31] apparently this is handled by the wikibase.ui.entitysearch ResourceLoader module [17:17:38] does ResourceLoader have a way to blacklist modules or something? [17:17:41] or perhaps you can override it? [17:17:55] heh, that is a good question... [17:18:08] Reedy? [17:18:33] (at least it’s a dedicated ResourceLoader module and not bundled with a bunch of other things ^^ ) [17:22:24] yurik: this in LocalSettings.php also seems to work: [17:22:26] unset( $wgResourceModules['wikibase.ui.entitysearch'] ); [17:23:07] oh, funky :) [17:23:16] heh, i love hacks :) [17:23:30] at what point do you do that? after loading the module? [17:23:57] I put it near the end of my LocalSettings.php [17:24:02] but I think this is better: [17:24:04] $wgResourceModules['wikibase.ui.entitysearch']['scripts'] = []; [17:24:13] so the module is still there (in case anything depends on it), it just doesn’t load the script anymore :) [17:24:31] would it work if this is done before anything else? [17:24:42] i'm not sure about the order of the extension loading [17:25:05] I don’t understand the question, sorry [17:25:09] why is the order of extension loading relevant here? [17:25:39] is it difficult to edit LocalSettings.php in your setup? can you only add stuff at the beginning, or something? [17:26:56] I guess it would need to be after the Wikibase Repo extension is loaded [17:27:48] there is no single localsettings, each module has its own, and they are loaded by another script [17:27:49] yeah, if I move it before the require_once …/Wikibase.php, it doesn’t work [17:27:54] hm, okay [17:27:56] gotcha, thx [17:28:36] but you could probably create a new Phabricator task for “disable Wikidata’s custom search box” [17:28:44] which would be much simpler to implement than the task you commented on [17:29:01] Krinkle, so Lucas_WMDE just had an idea: $wgResourceModules['wikibase.ui.entitysearch']['scripts'] = [] [17:29:25] i understand that ideally this should be feature request, but until it is done, the OSM community needs some interim solution [17:29:48] yes, don't mess with the module registry, or module load queue. Similar to how you wouldn't try to unset a class from wgAutoloadClasses. [17:30:01] I’ll create the task [17:30:10] To make the software not perform the function, negotiate with the software to disable it willingly, so that it can avoid cascading failures. [17:30:46] Krinkle, i agree with you. We have a production problem. We don't want to disable Wikibase just because we need a minor js UI adjustment [17:31:10] so until it is implemented, what options do we have? [17:31:19] css display:none? [17:31:35] common.css [17:31:46] Krinkle, i think it is javascript that needs to disable autocomple dropdown [17:32:01] i mean - there is a standard autocomplete implementation, and a wikibase override [17:32:08] the override needs to be disabled for now [17:32:13] i don't maintain this code, the people that do are here, they might know an unsupported shortcut based on how it works. [17:32:46] if I'd be doing this, my first look for an unsupported hack is css display:none on the element that is being rendered. [17:33:13] Lucas_WMDE said he just inserts a "return" in the middle of the code :) Not very practical when the code is automatically pulled from repo into prod [17:33:48] right, but the searchbox should not be hidden - the js code that fills it should not be used [17:34:12] there are about 200 different elements, all of which could have a unique selector, may need to be more surgical, but it's probably possible. [17:34:13] Krinkle, what happens if I set $wgResourceModules['wikibase.ui.entitysearch']['scripts'] = [] ? [17:34:32] i know it is not perfect [17:35:19] I'm not sure what you're looking for. There is one supported way, which takes time apparently and/or is not priotiziable. [17:35:29] Any other way is unsupported. if it works, it's your risk to take. [17:35:44] If the module hack works enough to fit your needs without undesirable side effects, go for it. [17:35:59] task created: https://phabricator.wikimedia.org/T205560 [17:36:00] I'd go for the CSS way because it has very narrow chance of any side effects (aside from it showing up again at some point) [17:36:57] Lucas_WMDE, awesome, thanks!!! [17:37:25] changing the registry might expose cascading script errors, exceptions, unrelated failures in anything else on the wiki that uses javascript due to a fatal happening potentially. But if it doesn't and its' worth the risk, I can't say not to do something that is already unsupported :) [17:37:42] :D [17:38:24] agree... i was hoping there was some "supported" api that i could modify the state of the resource modules [17:39:15] e.g. a proper hook [17:39:22] thx Krinkle ! [17:39:58] There can't be. Such hook would expose aspects that are by definition internal. Changing them by definition can cause an error to happen given other aspects of Wikibase will not expect that to have happened. [17:40:07] The hook exists, in that wgResourceModules is mutable. But it's not supported, can't be. [17:41:20] To have a logical way to disable entitysearch functionality, an actual interface dedicated to it (bool config, a class, a different hook) would need to expose that decision so that Wikibase can carry it out further, e.g. to never load or depend on it, or interact with it based on that config. [17:42:15] I expect certain wikidata-related gadgets will break if the module scripts are not there due to certain symbols or DOM elements not existing. Depends on whether those gadgets tolerate the absence of it, probably not, since it isn't configurable today. [17:42:24] Anyhow, hope that make sense. [17:42:26] o/ [17:43:15] it does, and 100% agree :) [17:43:30] the difficulty of "production demands" vs "proper dev practices" :) [17:44:50] yurik: I think you just copy+pasted the wrong link in the Phabricator comment? :) [17:45:04] Lucas_WMDE, already fixed :D [17:45:15] hit save too fast [17:45:23] okay :D [17:47:57] bugagaga [17:48:03] :D [17:48:23] you’re too fast for me :D [17:48:38] anyways, I’m going home for now [17:48:55] Lucas_WMDE, hehe, if you implement this feature, you will definitly be ahead of me ;) [18:13:52] RECOVERY - High lag on wdqs2003 is OK: (C)3600 ge (W)1200 ge 1167 https://grafana.wikimedia.org/dashboard/db/wikidata-query-service?orgId=1&panelId=8&fullscreen [18:25:45] Amir1: When you're around, I was hoping to ask you about https://phabricator.wikimedia.org/T197267#4606974 [18:26:39] I started a patch to convert namespace registration to the vanilla stuff, https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/WikibaseLexeme/+/462017/ but I don't quite understand the requirements which led to custom registration in the first place. [19:09:38] does that standard search box work properly for entities? [19:10:05] I thought it searches in titles, which are useless for entities, unless you want Q122345 [19:43:05] SMalyshev: I'm curious... why the changes on the WDQS GUI don't appear even when you've merged them in production? [19:54:14] abian: changes are deployed on Mondays [19:54:31] Okay :) [19:54:35] so if it was merged this week, it will deploy Monday next week (10am Pacific usually) [19:54:54] I can do emergency deploy if something is on fire, but otherwise it's Mondays [19:55:02] Nothing on fire, no :) [19:55:18] Thanks! [19:55:19] and by "I" I mean myself or gehel. Just mentioning it in case it'd be needed in the future... [19:56:00] * gehel waves... [20:07:40] I don't suppose anyone who's good at python is around? [20:07:54] I have a dict containing dicts and want to know how many distinct values a particular key has [20:09:47] I would just use a different language where I know how to do that, but pywikibot is kinda in python :P [20:10:04] nikki: All I know is that you'll probably want the "set" class, which is meant to hold unique values. [20:10:36] https://docs.python.org/2/library/stdtypes.html#set [20:10:56] note that there's a breaking change regarding "set" between py2.6 and py2.7 [20:29:32] thanks... I think I've managed to get something working [20:30:04] great!