[08:30:58] New patchset: Daniel Kinzler; "Fix conflict detection in MapPatcher." [mediawiki/extensions/Diff] (master) - https://gerrit.wikimedia.org/r/73933 [08:31:37] New patchset: Daniel Kinzler; "Fix conflict detection in MapPatcher." [mediawiki/extensions/Diff] (master) - https://gerrit.wikimedia.org/r/73933 [08:53:33] New review: Liangent; "This particular line isn't problematic currently because ->language is always eagerly constructed fo..." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73854 [08:55:41] New patchset: Tobias Gritschacher; "Make use of Serializers in API results for sitelinks" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/69689 [08:55:57] New patchset: Henning Snater; "jQuery.ui.suggester: Proper event handler management" [mediawiki/extensions/DataValues] (master) - https://gerrit.wikimedia.org/r/73937 [09:06:10] New patchset: Henning Snater; "jQuery.wikibase.entityselector: Reposition menu when refreshing" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73938 [09:16:16] DanielK_WMDE_: Tobi_WMDE Denny_WMDE https://bugzilla.wikimedia.org/51376 [09:17:56] aude: I can look into it a bit later.. [09:18:09] ok [09:19:42] New patchset: Addshore; "Ask DeserializerFactory and Tests" [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/73786 [09:33:13] New patchset: Henning Snater; "Converted wikibase.ui.Tooltip to jQuery widget" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73939 [09:41:11] New patchset: Addshore; "move and fix wblinktitles validation" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73941 [09:43:47] Is it just me or is jenkins broken? O_o [09:44:12] works for me 8 min ago [09:44:21] Cache is not usable if WikibaseClient is configured for direct access to the repo database [09:44:41] oh our tests are broken? [09:44:52] :> [09:45:24] i think DanielK_WMDE_ is aware of the propertylist unseriailzer thing [09:45:32] :> [09:45:46] addshore: regarding https://gerrit.wikimedia.org/r/#/c/73316/ [09:45:53] all the skips ones are okay [09:46:04] somwhere along the way of patching array_values() must be used [09:46:19] because the last test checks removing against patching [09:46:27] and patching also breaks things [09:47:01] New review: Addshore; "I think we can ignore the failed tests and re run jenkins later." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73941 [09:47:01] aude: "aware" is saying to much. it randomly happens to me. [09:47:01] i have no clue why [09:47:01] :> [09:47:01] oh, okay [09:47:08] well it's appearing on jenkins now [09:48:04] addshore: also try opening the page not being logged in [09:48:25] ahh yes, you wont be able to see the draft :P [09:48:41] I imagine you can see it now you are a reviewer though? [09:48:48] yeo [09:48:49] *p [09:48:56] that's why I added myself [09:49:00] :> [09:49:03] it's a gerrit bug [09:49:20] found out only because Status is RULE_ERROR [09:49:23] that was strange [09:49:37] *goes to find which test makes it fail again* [09:50:28] I thought https://gerrit.wikimedia.org/r/#/c/73797 would be OK [09:50:49] but patcher can get arrays with gaps [09:50:57] and then things would've broken [09:51:09] New patchset: Henning Snater; "Converted wikibase.ui.Tooltip to jQuery widget" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73939 [09:52:06] addshore: ^ [09:53:53] New patchset: Tobias Gritschacher; "Make use of Serializers in API results for sitelinks" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/69689 [09:54:50] New review: Daniel Kinzler; "@Jeroen: I think ListDiffer/ListPatcher should treat the array as a *list*, that is, completely igno..." [mediawiki/extensions/Diff] (master) - https://gerrit.wikimedia.org/r/73797 [09:54:54] New review: Tobias Gritschacher; "(1 comment)" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/69689 [09:55:12] DanielK_WMDE_: done: https://gerrit.wikimedia.org/r/#/c/69689/ [09:57:29] New review: Tobias Gritschacher; "Hey!" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/62598 [09:57:43] New review: Tobias Gritschacher; "Hey!" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/63857 [09:58:23] aude, Denny_WMDE, Tobi_WMDE: this is currently causing conflicts to be silently overwritten: https://gerrit.wikimedia.org/r/#/c/73933/ [09:58:43] well, the patch fixes it, it doesn't casue it, obviously [09:59:29] DanielK_WMDE_: that would have been my next question.. :) [10:01:51] New patchset: Daniel Kinzler; "(bug 46352) Implement EntityHandler::getUndoContent" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73942 [10:23:56] New patchset: Addshore; "Improve errors in wblinktitles" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73943 [10:33:11] heh, Denny_WMDE > https://gerrit.wikimedia.org/r/#/c/73943/ [10:33:33] addshore: ? [10:33:44] build tests also fail :P [10:33:51] no merging :) [10:34:08] yeah, but once it's fixed, it will merge, no? [10:34:25] hehe *starts adding to the queue* [10:34:25] not automatically [10:34:35] working on it [10:34:36] i don't think.... [10:35:12] ah, we can probably kick it then to try again [10:42:30] New patchset: Daniel Kinzler; "ByPropertyListUnserializer must check structure." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73945 [10:43:07] aude, addshore, Denny_WMDE: see above [10:43:32] please verify, merge and then rebase any changes for which jenkins fails on ByPropertyListUnserializerTest [10:48:05] Change merged: jenkins-bot; [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73945 [10:48:19] addshore: can i "rebase" https://gerrit.wikimedia.org/r/#/c/73316/ to allow jenkins to run? [10:48:30] and the link titles patches? [10:48:44] errr, https://gerrit.wikimedia.org/r/#/c/73316/ is in data model [10:48:50] the other ones, can i rebase? [10:50:57] * aude is going to "rebase" everything that jenkins failed in wikibase [10:51:18] DanielK_WMDE_: addshore Henning_WMDE Tobi_WMDE speak up if you are working on something particular that you don't want me to rebase :) [10:51:23] addshore, Tobi_WMDE, Henning_WMDE: maybe worth a try? http://chocolatey.org/ [10:52:36] New patchset: Aude; "move and fix wblinktitles validation" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73941 [10:53:39] New patchset: Aude; "Make use of Serializers in API results for sitelinks" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/69689 [10:54:00] New patchset: Aude; "(bug 46352) Implement EntityHandler::getUndoContent" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73942 [10:54:25] New patchset: Addshore; "Improve errors in wblinktitles" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73943 [10:55:10] addshore: http://blog.jetbrains.com/webide/2011/02/zero-configuration-debugging-with-xdebug-and-phpstorm-2-0/ [10:55:15] Henning_WMDE: gerrit won't allow me to rebase your patches. they need manual rebase probably [10:55:40] addshore: if it doesn't work for you, i'll have a look at what i did in my apache/xdebug config [10:55:53] okay :) *looks at the many links above* [10:56:04] Tobi_WMDE: hmmm, jenkins still says "no" [10:56:35] addshore: meanwhile, i'm just going to fix the bug :P [10:56:42] ;_; go for it ;p [10:57:47] New review: Aude; "looks like the SiteLinkSerializerTest.php has a dependency on wikibase repo, which is not available ..." [mediawiki/extensions/Wikibase] (master) C: -1; - https://gerrit.wikimedia.org/r/69689 [11:02:08] aude: looking at https://bugzilla.wikimedia.org/show_bug.cgi?id=51376 now. if nobody else did yet [11:02:25] I dont think so :) [11:03:00] Tobi_WMDE: not yet [11:04:40] Tobi_WMDE: also be aware of https://bugzilla.wikimedia.org/show_bug.cgi?id=50983 [11:05:31] which addshore is working on [11:06:09] mhhm, that bug itself is fixed from the patch [11:06:18] this is a different bug now ;p [11:06:27] errr, it's the one about the formats being different [11:06:39] we haz too many bugs :o [11:06:49] thats nothing to do with the alises being remove though :P [11:06:56] yeah [11:07:00] you had another bug for it ;p [11:07:05] https://bugzilla.wikimedia.org/show_bug.cgi?id=51192 [12:33:26] New review: Jeroen De Dauw; "(1 comment)" [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/70443 [12:35:38] Change merged: Jeroen De Dauw; [mediawiki/extensions/Diff] (master) - https://gerrit.wikimedia.org/r/73933 [12:39:57] New patchset: Jeroen De Dauw; "Update rel notes and bump to 0.8 alpha" [mediawiki/extensions/Diff] (master) - https://gerrit.wikimedia.org/r/73955 [12:40:08] Change merged: Jeroen De Dauw; [mediawiki/extensions/Diff] (master) - https://gerrit.wikimedia.org/r/73955 [12:42:18] New patchset: Jeroen De Dauw; "(bug 51363) Add more tests to for bad diffs." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73772 [12:58:17] New patchset: Addshore; "Entity removeAliases now resets array keys" [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/73316 [12:58:24] DanielK_WMDE_: ^^ :) [12:58:50] everything should now be passing :) [12:59:19] lazowik: also ^^ [12:59:39] addshore: got an email, looking [13:00:43] yep [13:01:14] New review: Michał Łazowik; "Looks good" [mediawiki/extensions/WikibaseDataModel] (master) C: 1; - https://gerrit.wikimedia.org/r/73316 [13:02:15] New review: Jeroen De Dauw; "The ListPatcher is currently completely ignoring keys yes. This patch changes that" [mediawiki/extensions/Diff] (master) - https://gerrit.wikimedia.org/r/73797 [13:04:08] New patchset: Daniel Kinzler; "(bug 51363) Add more tests to for bad diffs." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73772 [13:04:23] liangent: ? [13:05:22] New review: Michał Łazowik; "(1 comment)" [mediawiki/extensions/WikibaseDataModel] (master) C: -1; - https://gerrit.wikimedia.org/r/73316 [13:05:50] Denny_WMDE: hi [13:06:00] shall we? [13:06:35] liangent: you prefer to chat in this channel, or one on one? [13:06:47] Denny_WMDE: is DanielK_WMDE_ also around? [13:07:04] Denny_WMDE: two topics: 1) getentities & serialized form used in other places 2) searchentities [13:08:14] 1) was already mentioned in a mail, and I've already talked about 2) with you a few days ago [13:08:26] liangent: i would prefer to structure it a bit differently [13:08:32] re your priorities and the way the work is done [13:08:44] by getting guided by specific stories [13:08:51] i.e. functionalities for the end user [13:09:39] one story "readers of wikidata can see a label in a different language if their language is not available" [13:09:56] another story "editing ..." [13:10:00] one story "search" [13:10:02] etc. [13:10:17] search is tied with editing [13:10:22] yes [13:10:29] because our search relies on the editing [13:10:38] but the first story, display, is not [13:10:46] right [13:11:08] for display, simply replacing wbEntity and wbUsedEntities just work [13:11:11] as mentioned in the mail [13:11:38] but we also need to think about how to display it [13:12:06] yeah [13:12:40] but first, the infrastructure to supported [13:12:50] js library and data format [13:12:55] *support it [13:13:06] yes [13:13:41] for that also we don't need yet automatic translation etc. [13:13:46] let us start as simple as possible [13:13:51] and try to get visible results [13:13:57] then we will get feedback [13:14:03] while we make the backend more powerful [13:14:08] and add translation etc. [13:14:19] or rather, transliteration [13:14:54] well in backend, translation is handled transparently when fetching labels [13:15:16] but it is not yet displayed anywhere [13:15:26] which makes it basically dead functionality as far as the user is concerned [13:15:39] that means untested, no feedback, etc. [13:15:55] no it's already displayed [13:16:02] https://gerrit.wikimedia.org/r/#/c/71845/ https://gerrit.wikimedia.org/r/#/c/71865/ [13:16:23] one minor place though [13:16:32] that is a surprising place [13:16:33] but cool [13:16:37] let's get it more visible [13:17:56] yeah those page titles don't need and can't have complex s so I went with them first [13:19:15] ready for primetime? [13:19:55] i mean, shall we display it on the page next? [13:19:55] on the item view? [13:19:55] Denny_WMDE: yeah [13:19:56] New patchset: Addshore; "Entity removeAliases now resets array keys" [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/73316 [13:20:30] liangent: is this for conversion? or fallback? [13:20:31] so what needs to happen to get there? [13:21:10] e.g. en-gb -> en or ku -> ku-arab [13:21:20] aude: upper layers don't distinguish them [13:21:27] liangent: ok [13:22:52] Change merged: Jeroen De Dauw; [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/73316 [13:23:13] Denny_WMDE: choose a correct format to pass data to entity view <- this is the thing I'm now considering [13:24:13] with it done I'll tweak js code to show language tags when it realized that a label is from a fallback language [13:24:15] s/realized/realizes/ [13:25:38] can you go a bit into more detail what you mean with the correct format? [13:25:47] mhhm Denny_WMDE I have just found core uses 'missingparam' as an error code which is different to what we use :/ Should I change WB to be like core for this also? [13:26:05] i like consistency [13:26:09] :P [13:26:15] addshore: any reason against? [13:26:36] not really, other than cores error codes look silly because they dont have dashes in them :> [13:26:50] New review: Daniel Werner; "(1 comment)" [mediawiki/extensions/Wikibase] (master) C: -1; - https://gerrit.wikimedia.org/r/73942 [13:27:16] New review: Jeroen De Dauw; "(1 comment)" [mediawiki/extensions/Ask] (master) C: -1; - https://gerrit.wikimedia.org/r/73786 [13:27:37] Denny_WMDE: current serialized format writes " labels:{de:{value:'something',language:de}} " when the user is viewing de and there is a de label, or " labels:{} " if there's no de label, right? [13:27:52] labels:{de:{value:'something',language:'de'}} [13:27:57] addshore: then let's switch [13:28:07] everything to have no dashes? :O [13:28:22] liangent: i think so [13:28:31] i would rather change core to have dashes ;p [13:28:44] Denny_WMDE: I want to change it to labels:{de:{value:'something',language:'en'}} or labels:{qqc:{value:'something',language:'en'}} when no de label [13:28:50] i guess one way to change it would be to "de-ch : { value: something, language: de} ? [13:29:05] i like the first one you suggest, liangent [13:29:27] addshore: I understand, but let's say no :) [13:29:33] :> [13:29:35] okay that's what DanielK_WMDE_ thinks too [13:30:37] but there're many client code assuming de-ch must be identical to de in de-ch : { value: something, language: de} [13:30:37] as they say in Germany "two dumbs, one thought" [13:31:16] let's list those places and fix them? [13:31:22] or, I should say: they assume in labels:{de:{value:'something',language:'en'}} de is always identical to en [13:31:38] (to use a incompatible language pairs) [13:31:50] ok [13:32:30] now by fixing them, they'll add a language tag to the label when they find that de != en [13:33:24] sorry i was disconnected for a moment (stupid network) [13:33:34] and before this takes place (and after labels:{de:{value:'something',language:'en'}} is done), user is seeing en text in de interface without any indication [13:33:43] if you said something, please repeat before [13:34:28] DanielK_WMDE: Looks like I need to remove the line again from the diff rel notes. Regression got introduced after the previous release: https://gerrit.wikimedia.org/r/#/c/68652/3/includes/differ/MapDiffer.php [13:35:21] New patchset: Jeroen De Dauw; "Remove incorrect line from rel notes" [mediawiki/extensions/Diff] (master) - https://gerrit.wikimedia.org/r/73960 [13:35:47] New review: Jeroen De Dauw; "Regression was only present in 0.7 alpha, not 0.6." [mediawiki/extensions/Diff] (master) C: 2; - https://gerrit.wikimedia.org/r/73960 [13:35:48] Change merged: Jeroen De Dauw; [mediawiki/extensions/Diff] (master) - https://gerrit.wikimedia.org/r/73960 [13:36:24] Denny_WMDE1: which was the last sentence you received? [13:36:53] or, I should say:  they assume  in  labels:{de:{value:'something',language:'en'}}       de is always identical to en [13:38:13] Denny_WMDE1: and before this takes place (and after labels:{de:{value:'something',language:'en'}} is done), user is seeing en text in de interface without any indication [13:38:15] and no more [13:38:28] ok, thanks [13:38:43] JeroenDeDauw1: remove which line? [13:38:59] DanielK_WMDE: the one about the regression you fixed [13:39:01] liangent: are there many places where we have that assumption? [13:39:45] JeroenDeDauw1: ah, ok. uh... but the error was present in the 0.7 release, no? [13:40:19] the code was merged june 24 [13:40:19] DanielK_WMDE: no [13:40:29] 0.7 was just releases yesterday [13:40:34] Do you mean 0.6? [13:40:56] no i mean that yesterday, the error was on master. [13:41:00] so the error is in 0,7 [13:41:16] am i missing something? [13:41:31] DanielK_WMDE: I merged it remember? Looking at the stuff is what promted me to release [13:41:48] How else would I have mistakenly have put the line in the rel notes? [13:41:52] .confusion [13:42:07] Denny_WMDE1: of course everywhere [13:42:32] basically the library just look at keys in json objects [13:42:38] and ignore the language attribute in it [13:42:46] JeroenDeDauw1: i fixed two bugs, one in MapDiffer (merged yesterday) and ine in MapPatcher (merged today) [13:43:25] liangent: oh, access to that field is not mediated by a function? [13:43:28] JeroenDeDauw1: if the first bug prompted the release of 0.7, the second one would go into 0.8, right? [13:44:42] even if there is, the function just return a single label, and can do nothing if it finds some inconsistency [13:44:57] except for throwing an error, or refusing to return a label [13:45:29] New patchset: Jeroen De Dauw; "Move stuff to src/ and remove duplicate testsuite" [mediawiki/extensions/WikibaseQueryEngine] (master) - https://gerrit.wikimedia.org/r/73961 [13:45:50] Change merged: Jeroen De Dauw; [mediawiki/extensions/WikibaseQueryEngine] (master) - https://gerrit.wikimedia.org/r/73961 [13:46:00] it cannot return HTML? that would solve everything, no? [13:46:47] Denny_WMDE1: I haven't really checked it [13:47:04] did you have an alternative plan? [13:48:12] Denny_WMDE1: so that's why I've thought about qqc [13:48:37] and add a getPreferredLabel or something in js lib [13:48:59] which returns a js dict (object) maybe [13:49:07] to include language info in it [13:49:52] so callers aware of qqc or getPreferredLabel (which must be added afterwards) know about this possible inconsistency too [13:50:08] to avoid breakage of existing stuff [13:50:54] but this doesn't look so good in terms of long time plan [13:51:10] (to have a better serialized format maybe [13:51:54] DanielK_WMDE: ^ [13:52:10] re your mail: I'm talking about that with denny here [13:52:27] i just told our Danwe Henning_WMDE and TobiasG_WMDE to join us as well, they have done most of the work on the front end [13:52:42] liangent: so, the alternatives are: a) ask for a "real" language + fallback mode, or b) as for a real language (no fallback) or alternatively qqc (all fallback). [13:52:46] did i get that right? [13:53:07] the latter would need no change to the data structure [13:53:18] both sound fine [13:53:30] the qqc approach has several drawbacks [13:53:51] e.g. you don't know what language the returned value is in. you can't apply direction tags, etc [13:54:00] the qqc proposal would also refrain from overloading the meaning of the other label-keys and not introduce unintentional side-effects [13:54:08] you can't generate links for editing it (you don't know the original language), etc [13:54:34] Denny_WMDE1: we'd lose/lack a lot of valuable information [13:54:37] DanielK_WMDE: why? the qqc key would still point to an object of the form { value : Vienna, language: de } [13:54:39] DanielK_WMDE: the real language in qqc is indicated by language attrib [13:54:53] and don't we have a client side language info database [13:54:54] if we always have that, fine [13:54:59] I mean directionality etc [13:55:08] i thought the current data structure doiesn't allow for that? did i get that wrong? [13:55:18] allow for what? [13:55:23] DanielK_WMDE: i think you did. it's always an object. [13:55:31] not a plain key -> string [13:55:34] ok then [13:55:51] right, it's luckily not using the internal serialization [13:56:11] so, if that is the case, i see even less use for qqc. [13:56:25] less use for or less issues with? [13:56:36] both [13:57:38] :-/ [13:58:00] and dropped again after my :-/ [13:58:03] Denny_WMDE1: what advantage does it have? [13:58:18] less unintentional side-effects [13:58:19] liangent: my approach to B/C would be to not apply any fallback u8nless the client asks for it. [13:58:36] the only place where that doesn't work is wbEntity, I think [13:59:13] Denny_WMDE1: you mean for peopple assuming that the value for a given language will always be in that language? [13:59:13] if you have a de : { value : Vienna, language : en } a client might currently just use de.value instead of also checking de.language [13:59:20] aye [13:59:37] i dont know which is better [13:59:41] these are the two options [13:59:46] New patchset: Tobias Gritschacher; "(bug 51376) Pass missing SerializationOptions" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73962 [13:59:46] that's why I think fallback should only be apüplied if the client asks for it [13:59:50] DanielK_WMDE: yeah. about wbEntity, for code using the builtin wikibase js lib, it might be easy: just let getLabel return nothing when it finds a mismatch (key and language attrib) [13:59:51] then the client also knows about it [13:59:58] Danwe: Henning_WMDE TobiasG_WMDE — any opinion? what would be easier to deal with in the UI? [14:00:37] liangent: yea, though it should also be possible to get the lable with fallback. getLabelObject or getLabelWithFallback or some such [14:01:19] * DanielK_WMDE thinks that wbEntity is an implementation detail and not part of our interface, and anything relying on it has to deal with the consequences [14:01:26] DanielK_WMDE: yeah but what about codes (usually user / site scripts) accessing wbEntity directly? [14:01:44] maybe "do we want to well support it"? [14:02:14] I don't, but that'S up to Danwe/Henning [14:03:18] aude: addshore: fix for the xml result issuw: https://gerrit.wikimedia.org/r/#/c/73962/ [14:04:35] w00t! :) [14:04:44] how do i reproduce the bug? [14:04:52] to test the fix? [14:05:20] api sandbox? [14:05:23] aude: just use the apisandbox [14:05:26] ok [14:05:45] and try to change a description or aliases with wbeditentity [14:05:59] and set the result format to xml [14:06:03] ok [14:06:08] *looks* :) [14:06:14] it worked for labels, because there I passed the options [14:06:17] * aude does not understand why people use xml in the api, but okay [14:06:22] just forgot them for descriptions and aliases [14:06:27] ok [14:06:30] easy enough then [14:06:35] ill let you test it aude :) [14:06:42] ok [14:06:47] no point in 2 people testing such a tiny change ;p [14:06:53] yep [14:06:59] it needs backporting [14:07:47] aude: I can backport once it's merged [14:07:52] or just du it yourself [14:08:00] *do [14:08:04] diy! [14:08:07] i can take care of it [14:08:24] i might cherry pick hennings patch for the edit links link thing [14:08:39] so the link goes to the site links section [14:09:11] #sitelinks-wikipedia ? [14:09:17] yep [14:09:47] *runs tests* [14:11:53] liangent: we had a long and loud discussion right here now [14:12:24] Denny_WMDE1: :) [14:12:30] and you want to use another channel? [14:12:34] no [14:12:43] i mean, here in the office we had a very loud discussion [14:12:57] about whether to use ggc or lang-key with inconsistent language value [14:13:16] and we all agree on the language-key [14:13:37] and update the front end code [14:13:49] to deal with appropriately [14:13:49] :) [14:13:49] :) [14:14:14] but unfortunately there will be a bit of a mess, because the label on the top is done very differently from the labels in the statements [14:14:29] hmm [14:15:15] but Danwe and Henning_WMDE will help you there [14:15:28] they probably will also be the ones mostly reviewing the javascript part [14:15:43] and they can point you to the right place and help answering questions [14:17:23] we can try in experimental first to see what happens if you just add a fallback language about a referenced item [14:17:28] that is used int he statements [14:17:43] and then start fixing them where they appear [14:20:11] in this approach I may need to fix js earlier than changing php output [14:20:31] depends. mark the changed php output as experimental [14:20:35] then it doesnt go into production [14:20:46] how is this done? [14:21:09] you mean to use a series of dependent changesets [14:21:26] or you have some mechanism to avoid some changesets in deployment? [14:21:34] eg revert them in deployment branch? [14:22:29] we have a mechanism to have some pieces not be executed in deployment [14:22:41] what do you want experimental? [14:23:05] Denny_WMDE1: any guide for using it? [14:23:06] adding "de: { value : language, language : en }" to the entityview for the dom to be available [14:23:23] liangent: i hoped DanielK_WMDE and aude can help with that [14:24:00] liangent: instead of registering hooks, api modules, resource loader stuff, etc in the main config/setup files, they can go in the config/Wikibase.experimental files [14:24:07] there also is a constant [14:24:15] New review: Daniel Kinzler; "(1 comment)" [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/73316 [14:24:24] Change merged: jenkins-bot; [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73962 [14:24:35] can be used to switch off certain bits of code, but it's better to put stuff in the experimental file if possible [14:24:40] easier to maintain and keep track of [14:25:03] in javascript, i have no idea how to do experimental except put resource loader modules in the experimental setup [14:25:48] that's for the php now. [14:26:16] the frontend doesnt seem to know about experimental [14:29:22] so it should inject the fallback labels in the php side, based on the experimental flag [14:29:33] and the front end should be tweaked to learn to deal with it until it does [14:29:40] and then we switch that feature on [14:29:47] and make the world a better place :) [14:30:18] New patchset: Daniel Kinzler; "Create Stores from settings via builder function." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72939 [14:30:38] liangent: ^^ [14:31:15] New review: Jeroen De Dauw; "(1 comment)" [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/73316 [14:31:17] Published patchset: Addshore; "Api errors now similar to core" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73966 [14:31:45] addshore: are you addressing DanielK_WMDE his comment here? https://gerrit.wikimedia.org/r/#/c/73316/ [14:31:47] Denny_WMDE1: got it [14:31:53] JeroenDeDauw1: just about to :0 [14:31:56] :) [14:32:13] not again ... [14:32:30] rebase, rebase, rebase, ... [14:32:47] :D [14:34:47] JeroenDeDauw1: you added comment to Patch Set 3 whereas the last one is 4: https://gerrit.wikimedia.org/r/#/c/73316/ [14:35:47] New patchset: Addshore; "Clear aliases when setting all aliases" [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/73968 [14:36:29] New patchset: Addshore; "Clear aliases when setting all aliases" [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/73968 [14:36:32] New patchset: Tobias Gritschacher; "Make use of Serializers in API results for sitelinks" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/69689 [14:36:38] lazowik: thanks for that :) I addressed them :) [14:36:51] New patchset: Jeroen De Dauw; "Work on store interface" [mediawiki/extensions/WikibaseQueryEngine] (master) - https://gerrit.wikimedia.org/r/73969 [14:36:59] I'm terrible with spaces :) [14:37:53] addshore: I'm terrible with times :) [14:38:52] lazowik: I know - I made the comment earlier but apparently did not submit it [14:39:02] ok [14:39:14] hoo: poke [14:39:37] addshore: it's not that bad: https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#Spaces [14:39:50] Denny_WMDE1: should I add another attrib, like de : { value : Vienna, language : en, fallbackmode : user } for eg based on user babel info [14:40:03] * hoo waves at aude :) [14:40:07] or de : { value : Vienna, language : en, fallbackmode : system } for system fallback chain only [14:40:24] hoo: at one point recently, the item move test was failing on jenkins [14:40:30] do you remember which patch fixed it? [14:40:41] * aude not sure if it fails on the deployment branch [14:41:03] oh wait, dumb [14:41:05] New patchset: Daniel Kinzler; "Create Stores from settings via builder function." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72939 [14:41:06] liangent: that would be a possibility. it could also say "transliterated" or something [14:41:16] aude: ^^ [14:41:16] or in an other attribt [14:41:17] i would be ok with that [14:41:20] * aude repeatedly gets confused about the item move stuff :) [14:41:32] Item move isn't mine :P [14:42:03] err, yes [14:42:09] New patchset: Jeroen De Dauw; "Rem verbose GPL headers" [mediawiki/extensions/WikibaseQueryEngine] (master) - https://gerrit.wikimedia.org/r/73970 [14:42:15] anyway, the update repo thing is not in the branch [14:42:27] New patchset: Aude; "Added site link group name to section heading id" [mediawiki/extensions/Wikibase] (mw1.22-wmf9) - https://gerrit.wikimedia.org/r/73971 [14:42:29] New patchset: Aude; "(bug 51376) Pass missing SerializationOptions" [mediawiki/extensions/Wikibase] (mw1.22-wmf9) - https://gerrit.wikimedia.org/r/73972 [14:43:21] addshore: can you look at https://gerrit.wikimedia.org/r/#/c/73970/ today? I'd like to wrap that up. [14:43:31] will do after I have done these tests :) [14:43:41] Denny_WMDE1: well in my design there should be one more zh-cn : { value : Vienna, language : zh-cn, source-language: zh-tw } meaning the label was originally taken from zh-tw [14:43:47] New patchset: Daniel Kinzler; "(bug 46352) Implement EntityHandler::getUndoContent" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73942 [14:44:27] New review: Jeroen De Dauw; "(1 comment)" [mediawiki/extensions/Wikibase] (master) C: -1; - https://gerrit.wikimedia.org/r/72939 [14:44:55] liangent: maybe make it explicit? transliteration-source instead of source-language? [14:45:00] but yeah, looks good in general [14:46:24] Denny_WMDE1: not really, en : { value : Vienna, language : en, source-language: en } for consistency, and avoid repeated if ( typeof xxx == 'undefined' ) [14:47:18] ?? [14:48:20] Denny_WMDE1: to avoid labels.en.source being undefined [14:48:42] New patchset: Daniel Kinzler; "Adding tests for claims to EntityTest." [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/72974 [14:49:51] liangent: hmm, i do not like that [14:50:05] New patchset: Daniel Kinzler; "(bug 51363) Add more tests to for bad diffs." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73772 [14:52:00] Denny_WMDE1: hmm your idea matches my function names in LanguageWithConversion [14:53:12] Krinkle: hashar help! [14:53:36] liangent: you probably inspired me [14:54:55] Change merged: Tobias Gritschacher; [mediawiki/extensions/Wikibase] (mw1.22-wmf9) - https://gerrit.wikimedia.org/r/73971 [14:55:15] Change merged: Tobias Gritschacher; [mediawiki/extensions/Wikibase] (mw1.22-wmf9) - https://gerrit.wikimedia.org/r/73972 [14:55:37] Denny_WMDE1: anyway the return value of LanguageWithConversion::extractPreferredValue() contains a key 'source', but it's mapped to getFetchLanguage() [14:55:49] maybe find a better name? [14:55:53] or just drop it? [14:56:01] hashar: Krinkle nevermind :) [14:56:04] or replace it with getSourceLanguage? [14:56:05] or what [14:58:35] i think source is fine [14:58:52] New patchset: Addshore; "Adding test for setAllAliases" [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/73974 [15:01:06] New patchset: Addshore; "Ask DeserializerFactory and Tests" [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/73786 [15:01:51] Reedy: if you are available, we'd like a couple backports deployed https://gerrit.wikimedia.org/r/#/c/73975/ [15:02:12] needed for wikidata only.... not in the clients [15:02:19] so wmf10 only [15:02:37] New patchset: Jeroen De Dauw; "Add docs to readme" [mediawiki/extensions/WikibaseQueryEngine] (master) - https://gerrit.wikimedia.org/r/73976 [15:03:44] [travis-ci] wikimedia/mediawiki-extensions-Wikibase#374 (mw1.22-wmf9 - ce8eede : Henning Snater): The build has errored. [15:03:44] [travis-ci] Change view : https://github.com/wikimedia/mediawiki-extensions-Wikibase/compare/92baf158a3f0...ce8eede5540b [15:03:44] [travis-ci] Build details : http://travis-ci.org/wikimedia/mediawiki-extensions-Wikibase/builds/9141125 [15:05:44] New patchset: Addshore; "Ask DeserializerFactory and Tests" [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/73786 [15:07:12] [travis-ci] wikimedia/mediawiki-extensions-Wikibase#375 (mw1.22-wmf9 - 984e5e4 : Tobias Gritschacher): The build has errored. [15:07:12] [travis-ci] Change view : https://github.com/wikimedia/mediawiki-extensions-Wikibase/compare/ce8eede5540b...984e5e42ed2f [15:07:13] [travis-ci] Build details : http://travis-ci.org/wikimedia/mediawiki-extensions-Wikibase/builds/9141142 [15:07:41] New patchset: Daniel Kinzler; "Introducing Entity::getAllSnaks" [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/72960 [15:10:05] New patchset: Daniel Kinzler; "Introducing Entity::getAllSnaks" [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/72960 [15:10:17] New review: Daniel Kinzler; "rebased" [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/72960 [15:10:18] Change merged: jenkins-bot; [mediawiki/extensions/WikibaseQueryEngine] (master) - https://gerrit.wikimedia.org/r/73970 [15:10:19] Change merged: jenkins-bot; [mediawiki/extensions/WikibaseQueryEngine] (master) - https://gerrit.wikimedia.org/r/73976 [15:10:19] Change merged: Denny Vrandecic; [mediawiki/extensions/WikibaseQueryEngine] (master) - https://gerrit.wikimedia.org/r/73969 [15:10:43] Change merged: Denny Vrandecic; [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73943 [15:13:56] Change merged: Jeroen De Dauw; [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/72960 [15:14:21] merge merge merge! [15:14:25] Denny_WMDE1: I guess I may have to change it somehow... or the serializer has no idea that whether to include a source-language or not [15:15:22] New patchset: Daniel Kinzler; "Adding tests for claims to EntityTest." [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/72974 [15:16:57] liangent: only if you need it? [15:20:31] what do you mean by "need" [15:20:53] is there really any need to wfProfileOut( __METHOD__ ); before using dieUsage? as dieUsage calls Profiler::instance()->close(); anyway...? [15:21:33] Denny_WMDE1: see https://gerrit.wikimedia.org/r/#/c/72225/11/lib/includes/serializers/MultilingualSerializer.php [15:22:57] Denny_WMDE1: together with https://gerrit.wikimedia.org/r/#/c/72225/11/lib/includes/serializers/EntitySerializer.php [15:23:26] Change on 12mediawiki a page Extension:WikibaseLib was modified, changed by 94.15.181.33 link https://www.mediawiki.org/w/index.php?diff=736560 edit summary: [+22] [15:23:37] liangent: yeah, I wouldn't add the source-language if it is the same as the languageCode? [15:23:42] any need for that? [15:24:15] addshore: jfdi [15:24:17] kthx [15:24:22] Reedy: :> [15:24:54] New patchset: Daniel Kinzler; "Adding tests for claims to EntityTest." [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/72974 [15:25:08] Reedy: *goes to add it to places where it is missing then* ;p [15:26:18] Denny_WMDE1: that doesn't look pretty I guess [15:27:07] liangent: hm.. well could it hurt? [15:27:29] if the source-language is identical to the language, there is *never* a transliteration or anything involved, correct? [15:28:08] Denny_WMDE1: the chain factory wouldn't create such a chain... but in theory there can be [15:28:31] LanguageWithConversion::factory('zh-cn','zh-cn') this is valid [15:29:04] and it does conversion when someone is putting zh-tw in zh-cn... [15:29:35] :( [15:31:41] wait, i didnt get that [15:32:02] if someone puts zh-tw into the zh-cn field, how would we know it is not zh-cn? [15:32:04] New patchset: Addshore; "Adding missing wfProfileOut() s to api modules" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73978 [15:33:24] Reedy, I hope that makes you happy ;p ^^ [15:34:03] alright, links like http://www.wikidata.org/wiki/Q60#sitelinks-wikipedia work again and the exceptions gone [15:34:11] Denny_WMDE1: the current transliterator doesn't care what language the source string is in [15:34:25] it only accept a translation target language code [15:34:31] and the string [15:34:44] because on wikipedia... strings are mixed [15:35:47] but is the result of that transliteration ever something else than what you put in? [15:36:24] i.e. is transliterate(x, lang1, lang1) == x ever false? [15:37:21] New review: Daniel Kinzler; "@Daniel: you give a CR-1 for a not-quite-needed-comment?..." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/68002 [15:37:50] Denny_WMDE1: transliterate only accepts one prarameter; not two [15:38:17] and of course it'll be false if we ignore one param [15:38:33] ah [15:39:09] wait - but doesnt it make a difference whether i transliterate something from greek than if i transliterate it from russian to latin? [15:40:21] Change merged: Daniel Werner; [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72499 [15:40:38] in current code it doesn't make a difference. greek and russian use different scripts [15:41:15] New patchset: Daniel Werner; "JavaScript event handler management optimization" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73398 [15:41:16] or, 'zh-cn' and 'zh-tw' use different subset of characters from one script [15:41:21] New patchset: Daniel Werner; "JavaScript event handler management optimization" [mediawiki/extensions/DataValues] (master) - https://gerrit.wikimedia.org/r/73397 [15:41:34] that sounds… fragile [15:42:01] New patchset: Daniel Kinzler; "(bug 51363) Add more tests to for bad diffs." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73772 [15:42:34] :/ [15:43:49] but the current LanguageWithConversion / LanguageFallbackChain and its factory has the extensibility to plug in another better translator [15:44:10] ah well, at least [15:44:40] so it can happen that if i plug in a string in zh-cn into a transliteration to zh-cn that the result is different than the input? [15:44:41] because it's aware of both source and destination languages [15:45:58] Denny_WMDE1: yes, in the case (and in theory only in the case) that 1) the original string is not really zh-cn, or 2) the translator is making some mistake [15:46:07] New patchset: Daniel Kinzler; "Make ReferencedEntityFinder use Entity::getAllSnaks." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72962 [15:46:29] Unrelated to what your talking about but *points liangent at http://www.wikidata.org/wiki/Wikidata:Project_chat#bot * :) [15:46:37] liangent: ok, thanks. i didn't know that [15:47:13] addshore: https://www.wikidata.org/wiki/User_talk:Snipre#Re:_Stop_to_use_.E5.AF.BC.E5.85.A5.E8.87.AA_.28P143.29 [15:47:22] addshore: "we (or I?) made a database about that administrative division info on zhwiki with templates; articles and templates are extracting data from it with (complicated) template and parser function syntax and I'm simply moving that database to Wikidata." [15:47:37] by the way, liangent - i really like the work you are doing with chinese geo data! yay! [15:48:08] Denny_WMDE1: are you observing that most of geo data on wikidata is from my bot :p [15:48:23] liangent: is there no article for each division? :( [15:48:35] addshore: "Specifically we don't really want to (bot-)create divisions in the lowest level unless one is very famous (eg. some tourist attraction), or ... there'll be too many articles without much info in them." [15:48:46] I see :) [15:48:57] I think the source is just confusing peopl :P [15:48:59] *people [15:49:37] liangent: aude pointed it out. I didn't know it is for all of Wikidata's geodata, i thought it is only in china [15:49:55] nice :) [15:50:56] hehe Denny_WMDE1, just found my old graph with a little peak (still updating from the dispatch page) http://grab.by/ovtm [15:51:05] * Reedy wonders how big the database is now [15:51:27] Reedy: which db? [15:51:31] wikidata one [15:51:34] what else? :p [15:51:52] Survey says.. [15:52:23] 106.488418579102 GB [15:52:39] http://p.defau.lt/?J_ze0yMqJiyhEdWSIpoTkA [15:52:51] those are a lot of decimals :D [15:53:04] lovely Reedy ! :D [15:53:38] 106 GB? [15:53:46] including all indexes? [15:55:37] Yup [15:56:14] enwiki is.. [15:56:31] 716.891GB [15:56:34] Got a way to go ;) [15:57:01] New review: Jeroen De Dauw; ":D guess this proves this stupid profiling approach is rather error prone" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73978 [15:58:25] New review: Reedy; "(1 comment)" [mediawiki/extensions/Wikibase] (master) C: -1; - https://gerrit.wikimedia.org/r/73978 [15:58:28] New review: Addshore; "I have always wanted to add 83 identical lines to 16 files before!!" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73978 [15:59:06] mhhm [15:59:45] *waits until tomorrow for that* [15:59:50] aude: https://gerrit.wikimedia.org/r/#/c/73942/ and https://gerrit.wikimedia.org/r/#/c/73772/ [16:01:02] Denny_WMDE1: so the original 'source' value? [16:02:44] liangent: sigh. i guess so :( [16:02:52] ok, i am heading off [16:02:57] will be online later from home [16:04:54] New review: Daniel Kinzler; "(1 comment)" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72940 [16:07:49] hashar: https://integration.wikimedia.org/ci/job/mwext-Wikibase-testextensions-master/3089/console this failure is quite odd. it kind of looks like it's using old code. the separate client- and repo tests pass. [16:08:13] same issue with https://integration.wikimedia.org/ci/job/mwext-Wikibase-testextensions-master/3093/console [16:09:14] hashar: the issue they seem to be failing on was fixed: https://gerrit.wikimedia.org/r/#/c/73763/ [16:09:18] so, why are they failing?... [16:11:25] DanielK_WMDE: https://integration.wikimedia.org/ci/job/mwext-Wikibase-testextensions-master/3093/console used the commit 94c418de19d0b759f98377fe3e0391b2b35287ce [16:11:44] maybe there is an issue in Diff? [16:12:31] hashar: i can't reproduce locally, and the repo-only tests are passing [16:13:35] JeroenDeDauw1: you said that sitelinks need normalzation before sending to Diff [16:13:37] hashar: err... error: no such commit 94c418de19d0b759f98377fe3e0391b2b35287ce [16:13:43] what normalization? [16:14:12] lazowik: structural [16:14:23] hashar: https://gerrit.wikimedia.org/r/#/c/73760/ [16:14:27] when comparing "old" to "new"? [16:14:38] or at all? [16:14:58] lazowik: I don't understand what you are talking about now [16:15:06] hashar: I tested it, works :) [16:16:11] JeroenDeDauw1: you mean normalizing data from before badges? [16:16:38] or you're saying that there is a way to make Diff work for this by itself? [16:16:53] Diff is quite magical for me still [16:23:28] lazowik: I'm saying that if you feed [ 'enwiki' => 'FooBar' ] and [ 'enwiki' => [ 'page' => 'FooBar' ] ] into a differ, you'll be getting back a difference [16:23:43] Since as far as Diff is concerned, those two are not equal [16:24:03] but that's not the problem I talked about [16:24:25] then it wouldn't appear for unitests [16:24:33] New review: Liangent; "in discussion with denny...." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72225 [16:25:24] JeroenDeDauw1: that just needs a call to the same function as in adding/deleting sitelinks [16:26:07] btw. Entity::getDiff returns EditEntity [16:26:20] wtf? [16:26:25] so I cannot overwrite it in Intem [16:26:30] *Item [16:26:49] *EntityDiff ofc [16:26:55] sorry :D [16:28:25] JeroenDeDauw1: what I'm saying is that there is no way to do anything in Item regarding getDiff [16:28:56] I can add sth. like prepareToGetDiff [16:29:19] or check entity type, but suppose that is not the right way... [16:31:13] (check in Entity::getDiff) [16:32:11] JeroenDeDauw1: stop checking whether Entity::getDiff returns EditEntity ^^ [16:33:12] * JeroenDeDauw1 is in total panic now [16:33:28] \me grabs his head [16:33:44] * lazowik grabs his head twice [16:34:31] JeroenDeDauw1: that was irony? please... [16:37:22] * lazowik is in panic that Jeroen is in total panic without reason [16:37:40] hashar: any clue what's going on there? i'm confused. where does that commit come from? is it a local merge commit? [16:39:33] DanielK_WMDE: omnom? [16:40:05] aude: are tests run twice with different EXPERIMENTAL status? [16:40:16] JeroenDeDauw1: naw, still full from the massive croatian lunch. but thanks [16:40:28] lazowik: i can't override getDiff in item why? [16:40:35] lazowik: I get you are talking about something related to the entity diffs, though it is unclear to me what problem you are actually having [16:41:18] firtsly: it's final [16:41:20] lazowik: if Entity::getDiff returns EntityDiff, it'S fine for Item::getDiff to return ItemDiff, because ItemDiff is a (subclass of) EntityDiff [16:41:27] oh. why the hell is it final? [16:41:45] I'd have to duplicate code [16:42:22] lazowik: what are you actually trying to achieve? [16:42:33] call a function before creating EntityDiff [16:42:37] but in Item [16:42:48] lazowik: to do what exactly? [16:43:11] DanielK_WMDE: I will have a look at the store construction in Wikibase repo/client after I'm done with my current item, no promises this will be before tomorrow noon though [16:43:36] DanielK_WMDE: make sure that $data['links'] structure is consistent [16:43:47] JeroenDeDauw1: well, plan b is to cut the dependency of the cache key stuff, and use the global settings array for that. [16:43:48] it will be changed with badges coming [16:44:04] lazowik: do that in entityToDiffArray [16:44:19] that'S the function responsible for providing a normalized representation to the differ [16:44:25] ahhh [16:44:27] ofc [16:44:37] phh, so much fuzz I did :) [16:45:00] :P [16:45:34] New review: Jeroen De Dauw; "(1 comment)" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72940 [16:46:34] New review: Daniel Kinzler; "(1 comment)" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72940 [16:48:25] New patchset: Daniel Kinzler; "Declare that ItemMoveTest uses the database." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72940 [16:53:11] JeroenDeDauw1: removing the dependency from the cache key stuff now. will use a lot of ugly singletons for now. [16:54:16] JeroenDeDauw1: that's what I was talking about from beginning: http://wklej.org/hash/761fa5a4464/ [16:59:07] off for some time [17:03:31] DanielK_WMDE: whatever works for now.... [17:03:37] it's a blocker [17:06:39] New patchset: Daniel Kinzler; "(bug 50303) improve cache key for shared cache." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/71595 [17:06:45] aude: --^ [17:06:51] k [17:13:10] New review: Daniel Kinzler; "removed dependency on I59e8423c" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/71595 [17:19:04] New patchset: Jeroen De Dauw; "Work on object constructrion in Wikibase Query" [mediawiki/extensions/WikibaseQuery] (master) - https://gerrit.wikimedia.org/r/73982 [17:19:04] New patchset: Jeroen De Dauw; "Work on ByPropertyValueEntityFinder" [mediawiki/extensions/WikibaseQuery] (master) - https://gerrit.wikimedia.org/r/73983 [17:19:48] Change merged: jenkins-bot; [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/73968 [17:24:26] Change merged: jenkins-bot; [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/69689 [17:25:21] New patchset: Daniel Kinzler; "Refactor ModifyItemBase to ModifyEntityTestBase" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72316 [17:25:39] New patchset: Addshore; "Adding test for setAllAliases" [mediawiki/extensions/WikibaseDataModel] (master) - https://gerrit.wikimedia.org/r/73974 [17:25:45] DanielK_WMDE: ^ [17:31:29] New review: Daniel Kinzler; "Missing tests for ItemByTitleHelper (it's tested in integration with the API calls, but not by a uni..." [mediawiki/extensions/Wikibase] (master) C: -1; - https://gerrit.wikimedia.org/r/71543 [17:38:52] New review: Daniel Kinzler; "(1 comment)" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/66271 [17:40:14] New review: Daniel Kinzler; "oh, never mind, just saw I57ffd0. i'll merge that first and then have jenkins check this one again." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/66271 [17:41:52] New patchset: Daniel Kinzler; "(bug 43238) Add very simple weighting for entity search" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73405 [17:42:25] Change merged: jenkins-bot; [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/66971 [17:52:42] New review: Daniel Kinzler; "code hygiene." [mediawiki/extensions/Wikibase] (master) C: -1; - https://gerrit.wikimedia.org/r/73405 [17:57:32] New review: Zfilipin; "I am crazy busy (again) this week with Selenium/Cucumber workshop[1], feel free to join us! :)" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/63857 [17:57:53] New review: Daniel Kinzler; "Some suggestions, -1 mainly so you see the flag :)" [mediawiki/extensions/Wikibase] (master) C: -1; - https://gerrit.wikimedia.org/r/73420 [18:01:35] New review: Daniel Kinzler; "Still not quite testing the reset." [mediawiki/extensions/WikibaseDataModel] (master) C: -1; - https://gerrit.wikimedia.org/r/73974 [18:02:56] New review: Daniel Kinzler; ">_< now it needs a rebase :P" [mediawiki/extensions/Wikibase] (master) C: -1; - https://gerrit.wikimedia.org/r/66271 [18:03:42] Danwe_WMDE: --^ [18:04:02] k [18:06:35] Change merged: jenkins-bot; [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72316 [18:07:14] Danwe_WMDE: could you also take a look at https://gerrit.wikimedia.org/r/#/c/72090/ ? [18:07:39] it has two +1, but needs final approval from the UI side [18:07:57] yeah [18:10:07] Change merged: jenkins-bot; [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73741 [18:10:23] New review: Daniel Kinzler; "(1 comment)" [mediawiki/extensions/Wikibase] (master) C: -1; - https://gerrit.wikimedia.org/r/73742 [18:11:21] New patchset: Daniel Werner; "Implemented EntityContent::getParserOutput" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/66271 [18:11:34] New review: Daniel Kinzler; "(1 comment)" [mediawiki/extensions/Wikibase] (master) C: -1; - https://gerrit.wikimedia.org/r/73743 [18:11:54] New review: Daniel Kinzler; "(1 comment)" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73742 [18:15:11] New review: Daniel Kinzler; "code style." [mediawiki/extensions/Wikibase] (master) C: -1; - https://gerrit.wikimedia.org/r/72532 [18:16:01] New review: Daniel Kinzler; "(1 comment)" [mediawiki/extensions/Wikibase] (master) C: -1; - https://gerrit.wikimedia.org/r/73759 [18:36:18] New patchset: Daniel Kinzler; "Make ReferencedEntityFinder use Entity::getAllSnaks." [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72962 [18:40:47] New review: Jeroen De Dauw; "(1 comment)" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72939 [18:41:13] New review: Daniel Kinzler; "Dear jenkins, you must be using the wrong version of WikibaseDataModel. " [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72962 [18:42:56] New patchset: Daniel Werner; "(bug 50798) Allow dynamic site link group section headings in item view" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72090 [18:43:00] New review: Jeroen De Dauw; "(1 comment)" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72532 [18:43:52] Change merged: Jeroen De Dauw; [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72940 [18:49:00] New patchset: Daniel Kinzler; "(bug 49306) introducing URL data type" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73993 [18:49:12] Danwe_WMDE: --^ [18:49:40] I'll have a look [18:53:37] New patchset: Daniel Werner; "Implemented EntityContent::getParserOutput" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/66271 [18:56:23] New patchset: Daniel Werner; "Implemented EntityContent::getParserOutput" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/66271 [18:58:26] New patchset: Daniel Werner; "Introduction of $.wikibase.claimgrouplabelscroll" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/69632 [19:01:50] Change merged: jenkins-bot; [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/66271 [19:04:23] New patchset: Daniel Werner; "(bug 51460) Introduction of $.wikibase.claimgrouplabelscroll" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/69632 [19:36:39] Denny_WMDE: hello [19:36:55] hi liangent [19:43:30] Denny_WMDE: 'source'? [19:43:41] yes, i think it's fine [19:43:56] sourcelanguage [19:44:18] Denny_WMDE: nope I mean the return value of extractPreferredValue [19:44:28] and implementation of serializers [19:45:19] huh? i am not sure i follow, i need context [19:48:18] Denny_WMDE: see LanguageWithConversion::extractPreferredValue [19:48:23] I guess it's already merged [19:48:48] serializers are blind to implementation details of fallback chains [19:49:03] they build serialized data only based on the output extractPreferredValue [19:50:34] where 'source' is actually where data was found aka fetched [19:54:30] Change merged: Jeroen De Dauw; [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/73786 [19:55:14] doesnt seem to be merged yet [19:55:59] where do i find it? [19:56:23] ah you meant the code snippet you showed me earlier? [19:56:25] that looked fine [19:57:28] Denny_WMDE: in lib/includes/LanguageFallbackChain.php [19:57:33] function extractPreferredValue [19:58:20] the previous snippet actually takes data from here [19:58:38] ok, so what is the question? [19:59:09] i would prefer to avoid source if it is = language [19:59:13] otherwise it looks good [19:59:19] JeroenDeDauw: again: http://wklej.org/hash/761fa5a4464/ [19:59:59] Denny_WMDE: ok so source = null? [20:00:03] lazowik: Can you please write an email or something in which you start explaining from the beginning what the problem is? I'm really fuzzy on the context here right now [20:00:21] bunch of isset() is annoying [20:00:21] ok [20:00:48] New patchset: Jeroen De Dauw; "Optimize imports" [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74001 [20:00:49] New patchset: Jeroen De Dauw; "Cleanup and added docs" [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74002 [20:01:12] Denny_WMDE: Well this is unfortunate: https://gerrit.wikimedia.org/r/#/q/status:open+project:mediawiki/extensions/WikibaseQuery,n,z [20:01:30] Now I'm basically forced to go create an SQLite implementation of the QueryInterface abstraction first [20:02:13] Denny_WMDE: some easy review instead then :p https://gerrit.wikimedia.org/r/#/q/status:open+project:mediawiki/extensions/Ask,n,z [20:03:30] JeroenDeDauw: sorry for that… I never understood why we used sqllite for testing and mysql for production... [20:03:51] liangent: but otherwise the source parameter is confusing [20:04:06] liangent: are we talking about what is going to be given out by the api? [20:04:11] or about internal usage? [20:04:21] Denny_WMDE: internal usage [20:04:32] oh, put a source there if it helps [20:04:43] that's fine [20:04:54] just don't hand it out through the API when it is not needed [20:05:14] fine [20:05:26] so the next, wbsearchentities? [20:05:31] New patchset: Jeroen De Dauw; "Update QueryRountrip integration test to use new factories" [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74031 [20:05:33] JeroenDeDauw: before I write: shortly Diff shows modification instead of addition on added sitelink siteId [20:05:44] and that key didn't exist before [20:05:51] huh? i thought first to deal with getting it displayed [20:05:51] it's worse there because its output doesn't have a similar structure [20:05:51] wbsearchentities for later [20:06:06] line 159 of the file [20:06:20] Denny_WMDE: well just design its interface now [20:07:04] JeroenDeDauw: i am a bit confused [20:07:20] do you serialize or deserialize ask language objects? [20:07:20] Denny_WMDE: about what? [20:07:31] Denny_WMDE: where? [20:07:35] so I can avoid changing code written a few days ago again [20:07:36] In the rountrip test? [20:08:19] JeroenDeDauw: https://gerrit.wikimedia.org/r/#/c/74002/1/src/Ask/SerializerFactory.php vs https://gerrit.wikimedia.org/r/#/c/74002/1/src/Ask/DeserializerFactory.php [20:08:43] Denny_WMDE: well, one is for serializers and one is for deserializers... [20:09:07] but it says it serializes ask language objects (to what?) [20:09:11] Denny_WMDE: we need to be able to go either direction right? [20:09:15] oh [20:09:19] and the other says it deserializes ask language objects (to what?) [20:09:46] well, from serialized form to deserialized form, or the other way around [20:09:59] they are ask language objects in some form at either end [20:10:11] Denny_WMDE: if you have a better way to put it, do make a commit :p [20:10:47] JeroenDeDauw: i am just confused. this looks like a comment that you would usually remove [20:11:49] Denny_WMDE: ... [20:13:04] liangent: ok, so how should wbsearchentities behave? [20:13:45] i ask for X in language a, but it finds nothing, so it looks at the fallback chain until it finds enough, right? [20:14:51] huh? i cannot merge? JeroenDeDauw ? [20:16:28] Denny_WMDE: right. the problem is not behavior; it's output format (again) [20:16:50] JeroenDeDauw: typo in filename, btw https://gerrit.wikimedia.org/r/#/c/74001/1/Tests/Phpunit/DeserilaizerFactoryTest.php [20:16:50] searchentities even doesn't have a similar structure to put a language code [20:17:31] liangent: that is true [20:17:52] i guess, we just act like it's the label? [20:17:56] as you did for the history [20:18:10] New review: Denny Vrandecic; "(1 comment)" [mediawiki/extensions/Ask] (master) C: 2; - https://gerrit.wikimedia.org/r/74001 [20:18:10] Change merged: jenkins-bot; [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74002 [20:18:11] Change merged: Denny Vrandecic; [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74001 [20:18:30] how is it similar to history? [20:18:45] didn't you use just the fallbacklabel there? [20:19:07] without any notice [20:20:32] yeah I didn't even indicate the language used to display the label [20:20:32] Change merged: Denny Vrandecic; [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74031 [20:20:36] and it's only used in [20:21:25] <Denny_WMDE> so why not here? [20:21:42] <Denny_WMDE> (then again, you could just add a (en) to it) [20:22:29] <JeroenDeDauw> Denny_WMDE: yeah, that is what Krinkle changed [20:22:38] <liangent> Denny_WMDE: afaik entities fetched from searchentities behave the same as wbUsedEntities [20:22:41] <liangent> is this correct? [20:23:24] <Denny_WMDE> JeroenDeDauw: he add a typo to the filename? (confused) [20:23:50] <JeroenDeDauw> "(22:14:51) Denny_WMDE: huh? i cannot merge? JeroenDeDauw ?" [20:23:53] <Denny_WMDE> liangent: i do not know [20:24:01] <Denny_WMDE> JeroenDeDauw: ah, that one [20:24:14] <Denny_WMDE> JeroenDeDauw: ok,, but it seems merged now [20:25:36] <Krinkle> Denny_WMDE: https://gerrit.wikimedia.org/r/#/c/74001 now shows that you merged it manually. You are familiar with gatte-and-submit? [20:25:53] <gerrit-wm> New patchset: Jeroen De Dauw; "Serialze comparators as strings" [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74046 [20:25:53] <gerrit-wm> New patchset: Jeroen De Dauw; "Fix typo in file name and updated @covers tags" [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74047 [20:26:11] <liangent> weird I can't really find the place where wbsearchentities is used, in javascript [20:26:21] <Denny_WMDE> Krinkle: no, sorry, what is gatte-and-submit ? [20:26:43] <aude> krinkle gets alerted with alarm bells when someones merges [20:26:46] <Denny_WMDE> Krinkle: also, I am confused. I only CR+2'ed it - why does it show I merged it manually? [20:26:59] <Krinkle> Denny_WMDE: It means the repository has a Jenkins pipeline configured that runs unit tests, and you shouldn't merge manually. [20:27:03] <aude> alarms and sirens [20:27:06] <Krinkle> Instead you just do "Code-Review: +1" [20:27:09] <Krinkle> Instead you just do "Code-Review: +2" [20:27:22] <Krinkle> and then Jenkins will do Verified: +2 and merge it [20:27:36] <Krinkle> Denny_WMDE: It shows you merged it because you clicked "Publish and Submit" [20:27:38] <gerrit-wm> New patchset: Jeroen De Dauw; "Remove obsolete TODOs" [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74048 [20:27:48] <Denny_WMDE> i never verified it [20:27:51] <Denny_WMDE> ah, that's the culprit [20:27:52] <Krinkle> Denny_WMDE: Jenkins already verified it [20:27:57] <Krinkle> Submit is Gerrit language for Merge [20:28:01] <Krinkle> you should press "Publish comments" [20:28:01] <Denny_WMDE> so i should be using only "publish" ? [20:28:07] <Krinkle> instead of "Publish and Submit" [20:28:07] <Denny_WMDE> ah ok, sorry [20:28:08] <Krinkle> yeah [20:28:21] <Denny_WMDE> didn't know. I have been told to use Publish and Submit [20:28:27] <Denny_WMDE> sorry, my fault, won't do it again [20:28:35] <aude> Denny_WMDE: it changed at some point [20:28:37] <Denny_WMDE> I guess I popped up on your alarm wall a few times [20:28:58] <Krinkle> This is exactly why I remove the Submit button from most repositories because people (accidentally or not) misuse it, and there's no justifiable case for using it (unless it is an utmost emergency that needs merging regardless of failing tests or Jenkins being down - at which point you can contact operations to override it - not me) [20:29:17] <Krinkle> Denny_WMDE: Yep, I have an alarm on "V: 2" and non-jenkins merges. [20:29:25] <JeroenDeDauw> Finals of the "N.O." competition: Denny vs Jenkins, tonight at 8 [20:29:27] <Denny_WMDE> nah, it's fine. I know now. Won't do it anymore :) thanks for letting me know Krinkle [20:29:33] <Krinkle> yw [20:29:50] <Denny_WMDE> JeroenDeDauw: :D [20:29:55] <Krinkle> Denny_WMDE: If you want I can easily 'upgrade' the settings of this repository to match others (e.g. don't show Verified and Submit) [20:30:04] <aude> Denny_WMDE: which by the way, we need to setup jenkins jobs for the deployment branch(es) and figure that out [20:30:26] <aude> they often will fail because they are testing older branch of wikibase together with master data values, data model, etc [20:30:30] <JeroenDeDauw> Denny_WMDE: looks like Ask is ready for initial release after https://gerrit.wikimedia.org/r/#/q/status:open+project:mediawiki/extensions/Ask,n,z [20:30:30] <Denny_WMDE> liangent: try the entity selector widget [20:30:54] <Denny_WMDE> Krinkle: no, not without asking the team first. This is not a decision I can make alone [20:31:21] <Krinkle> Sure, I'm just letting you know it is an option. We can't fix the confusing labels in Gerrit but we are able to hide them on request. [20:31:38] <Krinkle> (well, I suppose we could fix the labels if we really tried) [20:31:42] <aude> Krinkle: Denny_WMDE yes, the inability to merge would've been a probelm for our backports [20:31:58] <Krinkle> note this only applies to master [20:32:03] <aude> Krinkle: ok [20:32:09] <Krinkle> (the settings change) [20:32:20] * aude would've had to cherry pick two patches into the branch for the tests to pass [20:32:35] <Denny_WMDE> i can put it on the biweekly to discuss [20:32:42] <Denny_WMDE> thanks for the offer, krinkle [20:33:19] <Denny_WMDE> JeroenDeDauw: what is COMP_MEQ as a comparator? I understand GEQ, but not MEQ? [20:35:22] <gerrit-wm> New patchset: Jeroen De Dauw; "Update version, will be 1.0, not 0.1" [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74051 [20:35:22] <gerrit-wm> New patchset: Jeroen De Dauw; "Put release notes in README file" [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74052 [20:35:48] <JeroenDeDauw> Denny_WMDE: LEQ = less [20:35:55] <JeroenDeDauw> Denny_WMDE: having less and greater is odd [20:35:57] <JeroenDeDauw> less and more [20:36:06] <JeroenDeDauw> And more is nicer then grtr [20:36:08] <Denny_WMDE> hmm [20:36:21] <Denny_WMDE> actually that makes sense [20:36:38] <JeroenDeDauw> No! I'll have to revert in that case [20:36:48] <Denny_WMDE> ? [20:37:17] <JeroenDeDauw> Denny_WMDE: I'm just kidding, no worries [20:37:37] <Denny_WMDE> i am just used to LEQ and GEQ . if you google for it, you'll see they usually go together [20:37:38] <JeroenDeDauw> Denny_WMDE: if you could do a quick review of whole of Ask soonish, that'd be nice [20:38:00] <JeroenDeDauw> Denny_WMDE: I can change it back if you think taht is better [20:38:23] <Denny_WMDE> i think it is. same thing with the HTML entities gt lt [20:38:28] <Denny_WMDE> or in latex leq and geq [20:38:31] <Denny_WMDE> etc. [20:38:38] <Denny_WMDE> just less surprising to users [20:38:51] <JeroenDeDauw> Denny_WMDE: the only thing hindering release now is that one of Asks dependencies has not seen a single release yet (DVs), so specifying requirements is rather impossible now [20:38:51] <Denny_WMDE> shall i merge and then you change you amend and then i merge? [20:39:06] <Denny_WMDE> yah, true [20:39:36] <JeroenDeDauw> Denny_WMDE: just merge all of it, I'll make a commit on top of the chain changing this back - that is quickest [20:39:49] <Denny_WMDE> ok [20:40:47] <gerrit-wm> New review: Denny Vrandecic; "(1 comment)" [mediawiki/extensions/Ask] (master) C: 2; - https://gerrit.wikimedia.org/r/74046 [20:41:45] <liangent> Denny_WMDE: I realize extending wbsearchentities doesn't resolve everything [20:42:00] <gerrit-wm> New patchset: Jeroen De Dauw; "Use "geq" rather then "meq" for "greater then or equal" comparator" [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74055 [20:42:06] <Denny_WMDE> liangent: hardly anything does :) [20:42:53] <gerrit-wm> Change merged: jenkins-bot; [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74046 [20:43:01] <gerrit-wm> Change merged: jenkins-bot; [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74047 [20:43:15] <gerrit-wm> Change merged: jenkins-bot; [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74048 [20:43:52] <liangent> for example: my language is de and a fallback chain de|en; an entity has a de and an en label; I'm inputting an en search term and got that entity; so wbsearchentities is returning data in en (for what got matched) [20:44:23] <JeroenDeDauw> Danwe_WMDE: http://programmers.stackexchange.com/questions/204837/component-design-getting-cohesion-right [20:44:23] <liangent> however the system should show mw de label after saving [20:44:23] <Denny_WMDE> why update the since from 0.1 to 1.0 ? that sounds confusing. it has been there in 0.1…? [20:44:25] <Denny_WMDE> because 0.1 was no release? [20:44:32] <Denny_WMDE> JeroenDeDauw: ^^ [20:44:33] <liangent> that means an extra wbgetentities call is needed [20:44:51] <JeroenDeDauw> Denny_WMDE: There was never a 0.1 release yes [20:45:28] <Denny_WMDE> liangent: wait, why do you do saving? wbsearchentities is not about saving..? [20:45:54] <liangent> saving a claim [20:46:15] <liangent> it saves the claim and exit from edit mode, right? [20:46:27] <Denny_WMDE> for saving you use the ID [20:46:50] <Denny_WMDE> it does not matter what label you are showing, or if you are even showing any label [20:47:26] <liangent> after saving, the interface is updated to show the entity's label [20:48:16] <Denny_WMDE> where doesi thought we were talking about wbsearchentities? [20:48:37] <liangent> because the label is taken from wbsearchentities :/ [20:49:14] <liangent> the label to show on ui after saving a claim pointing to an entity fetched from wbsearchentities [20:49:56] <gerrit-wm> Change merged: jenkins-bot; [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74052 [20:49:56] <gerrit-wm> Change merged: jenkins-bot; [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74051 [20:50:26] <gerrit-wm> Change merged: jenkins-bot; [mediawiki/extensions/Ask] (master) - https://gerrit.wikimedia.org/r/74055 [20:52:18] <JeroenDeDauw> Denny_WMDE: I see our new url data type is currently using StringValue - why not IriValue? [20:53:28] <Denny_WMDE> liangent: well, that's not too terrible. I would start with just using the label then [20:53:34] <Denny_WMDE> we can later try to fix this [20:54:25] <Denny_WMDE> JeroenDeDauw: don't know. i thought you would have discussed this with daniel? [20:54:25] <gerrit-wm> New patchset: Hashar; "Make ReferencedEntityFinder use Entity::getAllSnaks" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72962 [20:54:33] <gerrit-wm> New review: Hashar; "retriggering for https://bugzilla.wikimedia.org/show_bug.cgi?id=51461" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/72962 [20:55:02] <JeroenDeDauw> Denny_WMDE: he did not ask me. Nor was I even added as reviewer [20:55:33] <liangent> Denny_WMDE: ok then will I be fixing it by making an extra call to wbgetentities, or will there be a better solution? [20:55:37] <Denny_WMDE> JeroenDeDauw: don't know. ask him tomorrow [20:55:38] <gerrit-wm> New review: Jeroen De Dauw; "(1 comment)" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73993 [20:56:52] <Denny_WMDE> liangent: i don't know. maybe changing wbsearchentities to include the language label. [20:57:04] <hashar> hey [20:57:27] <Denny_WMDE> liangent: a call to wbgetentities is possible, too. whatever is simpler. [20:57:28] <hashar> so there was an evil bug in the configuration of mwext-Wikibase-testextensions-master [20:57:36] <Denny_WMDE> hashar: hey [20:57:42] <hashar> I got it fixed by refreshing the configuration https://bugzilla.wikimedia.org/show_bug.cgi?id=51461 [20:57:52] <hashar> basically, it was not properly fetching the extension dependencies :( [20:57:57] <liangent> Denny_WMDE: ok [20:58:39] <Denny_WMDE> hashar: thanks! [20:58:50] <Denny_WMDE> i remember daniel being loud about this one today [20:59:13] <hashar> yeah I guess I owe your team a bunch of rounds of beers [20:59:38] <hashar> we really need to work on composer to resolve the dependencies :-] [21:00:00] <Denny_WMDE> i think that would be appreciated :) [21:01:41] <JeroenDeDauw> hashar: yeah, we should really get https://gerrit.wikimedia.org/r/#/c/73760/ merged :p [21:02:59] <hashar> :-] [21:03:01] <JeroenDeDauw> Denny_WMDE: do you have any thoughts on this? http://programmers.stackexchange.com/questions/204837/component-design-getting-cohesion-right [21:03:16] <JeroenDeDauw> I want to get on with this but first get some feedback... [21:03:22] <JeroenDeDauw> No one replying tho :/ [21:09:40] <JeroenDeDauw> hashar: y u no merge http://inglorioushipsters.com/comic/wp-content/uploads/2012/01/sad_kitten.jpg [21:10:04] <hashar> JeroenDeDauw: cause I need to look at the code ? :-D [21:10:23] <hashar> and probably actually try it hehe [21:10:27] <JeroenDeDauw> hashar: all 6 lines that I moved! [21:10:45] <Denny_WMDE> JeroenDeDauw: wait longer for input and work on the WikibaseQuery API instead? [21:10:50] <JeroenDeDauw> hashar: I geuss this counts as me rewriting our entire composer support? :D [21:11:21] <JeroenDeDauw> Denny_WMDE: my work on WikibaseQuery is not blocked by this, or much affected at this point at all [21:11:43] <Denny_WMDE> JeroenDeDauw: exactly. [21:11:51] <JeroenDeDauw> Denny_WMDE: I do however want this split to happen soonish, its really starting to be annoying [21:12:30] <JeroenDeDauw> Denny_WMDE: I can work on WikibaseQuery and rage about other things in parallel, so no need to worry [21:19:36] <JeroenDeDauw> Danwe_WMDE: [21:19:37] <JeroenDeDauw> https://github.com/wikimedia/mediawiki-extensions-DataTypes [21:19:42] <JeroenDeDauw> ALL of the relevant history [21:21:25] <Denny_WMDE> JeroenDeDauw: re component design [21:21:40] <Denny_WMDE> what you would have in the end is a set of abstract interfaces, that basically never change again [21:21:58] <JeroenDeDauw> Denny_WMDE: yeah [21:22:02] <Denny_WMDE> and a number of implementations, that are much less stable [21:23:53] <Denny_WMDE> putting the interfaces in one component sounds right [21:24:22] <Denny_WMDE> and then suddenly it does not matter where the implementations are [21:24:36] <Denny_WMDE> they could be in the program using the component [21:24:48] <Denny_WMDE> they could be in a component of its own for a particular hard implementation [21:25:13] <Denny_WMDE> they could be some already in the component containing the interfaces [21:25:27] <Denny_WMDE> think of lucene or almost any larger software package [21:26:29] <Denny_WMDE> just because it is in the same library, doesn't mean it depends on it [21:27:08] <Denny_WMDE> only if a specific implementation is pulled in, you also add the implementation as a dependency [21:28:14] <Denny_WMDE> this would allow not to have to reimplement the hierarchy in all different components and have them more or less be aware of each other [21:28:32] <Denny_WMDE> not explicitly, but spookily somehow [21:29:08] <Denny_WMDE> i think queryresultprinters in smw is a nice example [21:29:19] <Denny_WMDE> smw itself offers the interfaces [21:29:30] <Denny_WMDE> srf offers a few more implementations [21:29:37] <Denny_WMDE> but there can be also implementations in other places [21:29:43] <gerrit-wm> New patchset: Jeroen De Dauw; "Move out DataTypes to its own repo" [mediawiki/extensions/DataValues] (master) - https://gerrit.wikimedia.org/r/74065 [21:30:26] <gerrit-wm> New review: Jeroen De Dauw; "Awaiting preparations elsewhere" [mediawiki/extensions/DataValues] (master) C: -2; - https://gerrit.wikimedia.org/r/74065 [21:31:34] <Denny_WMDE> and if i wanted to implement something to deal with chemical formulas, i can do it in one place, and offer the implementation as a realizer of the one component [21:31:37] <hashar> JeroenDeDauw: make sure the new ext ends up in wmf branches and get included in the mediawiki-config :-] [21:31:49] <hashar> JeroenDeDauw: I guess beta will complain anyway [21:34:39] <hashar> sleep time [21:36:21] <gerrit-wm> New patchset: Jeroen De Dauw; "Update magical loading code so it keeps working after DataValues split" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/74066 [21:37:58] <gerrit-wm> New review: Daniel Werner; "Wondering why this is unsing the string DV type and not the iri one. Will you change this later?" [mediawiki/extensions/Wikibase] (master) - https://gerrit.wikimedia.org/r/73993 [21:38:29] <Denny_WMDE> JeroenDeDauw: in my opinion, a library should not get a 1.0 before it is used by two projects [21:38:33] <JeroenDeDauw> Denny_WMDE: Agree with the stuff you wrote, though it does not seem to reach a conclusion further then usage of interfaces and polymorphism being nice [21:38:58] <aude> JeroenDeDauw: can we please do the split after we branch stuff tomorrow? [21:39:10] <JeroenDeDauw> Denny_WMDE: except "just because it is in the same library, doesn't mean it depends on it" - though perhaps you mean something differently then I am reading [21:39:13] <aude> it will allow time for the dust to settle :) [21:39:33] <JeroenDeDauw> aude: yeah sure, this is ahy I -2 my current submitted change for DataTypes [21:39:41] <aude> k [21:40:03] <aude> we've got enough settings changes this time to add wikivoyage and other new features [21:41:54] <JeroenDeDauw> Denny_WMDE: re 1.0: mhh, that might work for some things, though does not seem very applicable here [21:42:03] <Denny_WMDE> JeroenDeDauw: what i meant with that sentence was that if an implementation in a library changes, but you are not using that implementation, then you do not care about that change [21:42:11] <Denny_WMDE> JeroenDeDauw: why? [21:42:43] <JeroenDeDauw> Denny_WMDE: I do not except huge changes to come about that warant bumping the primary version number. Bimping it just because wikibase started using it is odd, as this is not actually a change to the lib itself at all [21:43:23] <JeroenDeDauw> Denny_WMDE: do you mean the impelemntation of an interface? [21:43:52] <Denny_WMDE> so you are saying you got it right, the library is reusable as a library, and it is good and stable - but it is actually not used besides in a single project [21:43:58] <Denny_WMDE> how do you know that you got it right? [21:44:33] <Denny_WMDE> how do you know you are not merely reflecting the idiosyncrasies of the single project that uses the library? [21:44:51] <Denny_WMDE> or, for that matter, of a single dev or dev team? [21:45:06] <JeroenDeDauw> Denny_WMDE: Keep in mind this thing was not written from scratch [21:45:14] <JeroenDeDauw> The core of it has basically been around for years [21:45:41] <JeroenDeDauw> Denny_WMDE: And no, I'm not sure there will be no huge changes [21:45:57] <JeroenDeDauw> Denny_WMDE: I however think it is unlikely for those to happen [21:46:23] <Denny_WMDE> because...? [21:47:16] <JeroenDeDauw> Many factors, intuition [21:47:33] <JeroenDeDauw> Denny_WMDE: and if some huge change does come about, 2.0 works just fine [21:48:09] <JeroenDeDauw> Denny_WMDE: I anticipate changes will happen to this library [21:48:20] <JeroenDeDauw> Though it seems much mroe likely they will be iteratively [21:48:30] <JeroenDeDauw> And only warrant secondary version nr bumps [21:49:01] <JeroenDeDauw> If you where to not release for a year, and then consider all the changes, then sure, a primary bump might make more sense [21:50:22] <Denny_WMDE> a library that is only used by a single project is like code that is not tested [21:55:35] <JeroenDeDauw> Denny_WMDE: I do see what you are saying [21:55:44] <JeroenDeDauw> It is very hard to make truely reusable software [21:56:00] <Denny_WMDE> i definitively agree with that :) [21:56:03] <JeroenDeDauw> And the best way to avoid doing it wrong is designing it for multiple usages at the same time [21:56:17] <JeroenDeDauw> Denny_WMDE: this applies to the Ask code in SMW [21:56:22] <JeroenDeDauw> It is not reusable as is [21:56:32] <JeroenDeDauw> So we looked at how to change it so it would work for both SMW and Wikidata [21:56:48] <Denny_WMDE> and once it does actually work for both [21:57:10] <Denny_WMDE> that's the moment where i'd say, this seems to be reusable [21:57:20] <JeroenDeDauw> Denny_WMDE: do you anticipate we'll need serious changes to Ask to make it work for both? [21:57:37] <Denny_WMDE> no, i do not anticipate these [21:58:59] <JeroenDeDauw> "reusability" is also ofc not binary, so I find it odd to say "this needs to happen first before we can consider it as such" [21:59:17] <JeroenDeDauw> Denny_WMDE: and one also has to consider the difference in types of components [21:59:24] <JeroenDeDauw> Some are easier to make reusable then others [21:59:34] <JeroenDeDauw> For some it simply does not make sense to even attempt it [21:59:42] <Denny_WMDE> code quality is also not binary, nevertheless you would require tests in order to consider it as such — why is that odd? [22:00:25] <JeroenDeDauw> Denny_WMDE: in case of Ask, which pretty much just defines PHP respresentation of some language, it is sort of hard to mess up reusability if you pay attention to it [22:01:06] <JeroenDeDauw> Denny_WMDE: of course the language itself can turn out to not be reusable [22:01:20] <Denny_WMDE> for those where it makes no sense to attempt to make it reusable, i don't see the advantage of making it a library in the first place [22:01:22] <JeroenDeDauw> Though that'd mean not using Ask, rather then modifying it to be something else [22:02:01] <JeroenDeDauw> Denny_WMDE: yeah - I did not mean to imply one should. In fact I was saying one should not [22:04:22] <Denny_WMDE> well, coming back to the original question — i do not see the advantage of splitting the Data* into several different components unless we actually see concrete users for these components who would benefit from that split [22:05:21] <JeroenDeDauw> Denny_WMDE: right now every SMW install running master is loading ValueView and DataTypes [22:06:17] <Denny_WMDE> and are they supposed to use the validators in the mid term? [22:07:00] <JeroenDeDauw> Denny_WMDE: the ValueValidators where originally created for ParamProcessor, which is used by SMW [22:07:02] <Denny_WMDE> good point [22:07:11] <JeroenDeDauw> SMW itself could also use the, but that'd mean reworking the whole DV/DI system firsyt [22:07:29] <JeroenDeDauw> That is the big thing to do to increase interoperability [22:07:36] <JeroenDeDauw> With emphasis on "big" [22:08:04] <JeroenDeDauw> Denny_WMDE: though ATM as maintainer of SMW, I'm not willing to even start with this [22:08:11] <JeroenDeDauw> Since there is no release of DataValues [22:08:15] <JeroenDeDauw> Or the other components [22:08:25] <JeroenDeDauw> And they are all in one repo, like if it is one big component [22:08:34] <JeroenDeDauw> While it contains very different things [22:08:47] <JeroenDeDauw> Including things that are not, and are not going to be, relevant to SMW [22:09:05] <JeroenDeDauw> The same is true for anything else using ParamProcessor at this point [22:09:09] <JeroenDeDauw> ie Maps and SubPageList [22:09:14] <JeroenDeDauw> I'd like to make a new SPL release [22:09:18] <JeroenDeDauw> But there is no DV release [22:09:20] <JeroenDeDauw> ... [22:09:26] <Denny_WMDE> of most libraries that i use i do not use all available functions [22:09:42] <JeroenDeDauw> And if we regard this whole thing as one big component, there is not going to be a release any time soon, as there is much unfinished stuff in there [22:10:07] <JeroenDeDauw> Denny_WMDE: this is about releases mostly [22:10:40] <JeroenDeDauw> There also is the "needless affected by stuff I do not care about" part, though that is less of an issue [22:11:00] <Denny_WMDE> i do not understand that point [22:11:07] <JeroenDeDauw> Which point? [22:11:22] <Denny_WMDE> if the interfaces do not change, why would you be affected? [22:11:34] <JeroenDeDauw> Denny_WMDE: also, one cannot actually fully satisfy all component principles, they pull in different directions - see the triangle on the pillar in the office [22:11:37] <Denny_WMDE> "There also is the "needless affected by stuff I do not care about" part," [22:11:58] <JeroenDeDauw> Denny_WMDE: that is a reply to "of most libraries that i use i do not use all available functions" [22:12:16] <Denny_WMDE> right, i do not understand how this is a reply [22:12:19] <JeroenDeDauw> Which I presume to be a reply to "Including things that are not, and are not going to be, relevant to SMW" [22:12:30] <Denny_WMDE> which it was [22:13:06] <JeroenDeDauw> I'm saying this is not my main concern with current DataValues [22:13:31] <JeroenDeDauw> If there is some code in some component being loaded that is not needed, this is not an issue [22:13:49] <Denny_WMDE> why loaded? [22:13:55] <JeroenDeDauw> For instance, loading DataValues while only needing some of its basic values, and not stuff such as Geo or Multilang is fine [22:14:23] <JeroenDeDauw> I can even live with loading a component I don't actually need for now (such as ValueView) [22:14:51] <JeroenDeDauw> The blocking issue is lack of releases - if something does not have releases, it is not reusable [22:14:56] <Denny_WMDE> wait - [22:15:07] <JeroenDeDauw> The granule of reuse is the granule of release -- RCM [22:15:46] <Denny_WMDE> why would they be loaded? [22:16:28] <JeroenDeDauw> Denny_WMDE: remember all those things that assume you only have one extension per repo? [22:16:40] <JeroenDeDauw> root/DataValues.php [22:16:50] <JeroenDeDauw> That "entry point" will load all actual entry points [22:17:09] <Denny_WMDE> but only to register them for autoloading if required, no? [22:17:19] <Denny_WMDE> it's not like we load the whole tree? [22:17:22] <Denny_WMDE> or am i wrong? [22:18:02] <JeroenDeDauw> Denny_WMDE: by "loading component X" I mean that component X is registered. It means its autoloader is registered. It does not mean every class in it got loaded. [22:20:21] <Denny_WMDE> hmm, i fail to understand the badness of this, but let's get back to the issue [22:22:02] <JeroenDeDauw> Denny_WMDE: for instance, ValueParsers adds an API module. No reason for it to be available on SMW installs. And ValueView adds resource loader modules, which people can access as well [22:22:27] <JeroenDeDauw> Plus if any of those things breaks for some reason, my code that does not even care about it, also breaks [22:22:49] <JeroenDeDauw> Or rather, someones website, that has no use for the broken code, breaks [22:22:53] <Denny_WMDE> hmm, ok, those examples convince me [22:23:15] <lazowik> JeroenDeDauw: just sent you an email [22:23:37] <JeroenDeDauw> Denny_WMDE: also, I'd like to be able to install my SMW via composer [22:23:50] <JeroenDeDauw> By specifying stable versions of its dependencies [22:23:59] <JeroenDeDauw> That is not going to happen is stuff stays in the same repo [22:24:22] <JeroenDeDauw> Same thing for SubPageList or Maps [22:24:46] <JeroenDeDauw> Denny_WMDE: you where talking about how usage by multiple projects shows how reusable your code actually is [22:25:06] <JeroenDeDauw> Denny_WMDE: while this process of no releases and everything in one repo works for Wikidata.org, it clearly hinders reusability [22:25:21] <JeroenDeDauw> Or rather, pretty much prevents reuse [22:26:21] <JeroenDeDauw> Denny_WMDE: I anticipate pain for me as an extension maintainer reusing DataValues in its current state, even while I have a better overview then anyone else on what is going on there and how it affects things [22:26:50] <Denny_WMDE> ok, let's make it so. [22:26:56] <JeroenDeDauw> Denny_WMDE: if some dev from the php community stumbles accross it on packagist, and then looks at the source, they'll be "no, not using this stuff" [22:28:23] <JeroenDeDauw> lazowik: will look at it tomorrow, done with using my brain for today [22:28:29] <lazowik> :) [22:29:24] <Denny_WMDE> me too [22:29:27] <Denny_WMDE> i need to sleep [22:29:44] <Denny_WMDE> regarding your question on stackexchange [22:41:53] <JeroenDeDauw> Denny_WMDE: without the thing I'm speculating about in that question, these components will end up right/above the line here http://pdepend.org/screenshots/full/jdepend.html [22:46:08] <Denny_WMDE> and off. gn8 [23:47:48] <Sven_Manguard> anyone here speak Japanese? [23:53:58] <Guerillero> no [23:54:17] <Guerillero> but I did buy steam games last night