[00:06:56] (03PS1) 10Jforrester: Add tagName to ve.dm.MWGalleryNode [extensions/VisualEditor] (wmf/1.23wmf11) - 10https://gerrit.wikimedia.org/r/110826 [00:08:33] (03PS3) 10Krinkle: unicodejs: Make tool executable, fix path [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/110287 [00:09:15] (03CR) 10Jforrester: [C: 032] unicodejs: Make tool executable, fix path [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/110287 (owner: 10Krinkle) [00:10:08] (03CR) 10Jforrester: [C: 032] Update oojs to v1.0.7 [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/108888 (owner: 10Jforrester) [00:10:22] (03Merged) 10jenkins-bot: unicodejs: Make tool executable, fix path [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/110287 (owner: 10Krinkle) [00:11:16] (03Merged) 10jenkins-bot: Update oojs to v1.0.7 [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/108888 (owner: 10Jforrester) [00:31:37] James_F, hey, you around? [01:03:00] Krenair: Yes. [01:03:03] Krenair: How are you? [01:05:02] James_F, feeling much better thanks [01:06:05] James_F, I was wondering if you had any bugs in mind that you think I could handle [01:06:07] Good. [01:06:11] * James_F looks. [01:06:17] I went through some that Roan sent me already [01:06:24] Nice. :-) [01:07:24] Krenair: https://bugzilla.wikimedia.org/show_bug.cgi?id=52848 might be worth working on. There's also https://gerrit.wikimedia.org/r/#/c/32700/ that needs some love. [01:10:02] Krenair: Also https://bugzilla.wikimedia.org/show_bug.cgi?id=50206 and actually making https://gerrit.wikimedia.org/r/#/c/72108/ work (will need to be re-ported). [01:10:52] Krenair: And https://bugzilla.wikimedia.org/show_bug.cgi?id=49502 ? [01:10:53] ;-) [01:10:58] * James_F cackles. [01:11:13] Krenair: No urgency or screaming rush, and don't feel like you have to do all/any of them. :-) [01:15:16] James_F, how is Nischay's feedback stuff related to VE? [01:17:09] Krenair: We (well, rmoen and Krinkle|detached) were working on it to make it more useful for VE feedback. [01:17:30] Krenair: Specifically, the problem that many bug reports are useless without UA information. [01:18:33] Krenair: I'd note BTW that that patch really needs a RELEASE_NOTES entry (thankfully it doesn't yet have one, otherwise it'd be off MW1.20 ;-)). [01:20:20] James_F, 49502 - sounds like something that's handled by my existing patch for disambig/redirects...? [01:20:51] Krenair: Yeah – worth checking that the behaviour is as described? [01:20:56] ok [01:21:22] Krenair: Also, does your patch only apply to the link suggestion box, or also for transclusion and category suggestion? [01:21:28] amazon silk blacklisting - what needs to be done here? [01:21:38] (And if so, are there special cases that need to be considered?) [01:21:39] James_F, only for link suggestion... [01:21:44] Ah. Boo. [01:22:24] Amazon Silk uses a funny UA string that jQuery.client doesn't have the ability to match on; someone needs to sit down and re-work the regex so that it can. Right now my WIP is simply some failing tests. [01:22:49] I see [01:23:05] alright, over the next few days I'll look into these [01:23:09] Now the code it's calling is in a different repo, which makes for fun times. [01:23:13] Cool. Thank you! :-) [01:26:27] (03CR) 10Jforrester: [C: 032] Localisation updates from https://translatewiki.net. [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/110808 (owner: 10L10n-bot) [01:27:29] (03Merged) 10jenkins-bot: Localisation updates from https://translatewiki.net. [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/110808 (owner: 10L10n-bot) [01:31:34] (03PS3) 10Jforrester: Use new jscs options, disable deprecated JSHint checkstyle options [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/110305 (owner: 10Krinkle) [01:32:33] (03CR) 10Jforrester: [C: 031] "PS3 is a rebase onto master (with re-generated …properties.js files)." [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/110305 (owner: 10Krinkle) [01:32:38] (03CR) 10jenkins-bot: [V: 04-1] Use new jscs options, disable deprecated JSHint checkstyle options [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/110305 (owner: 10Krinkle) [01:47:38] James_F, I actually can't reproduce https://bugzilla.wikimedia.org/show_bug.cgi?id=49502 on the latest master... [01:51:57] (03PS4) 10Jforrester: Use new jscs options, disable deprecated JSHint checkstyle options [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/110305 (owner: 10Krinkle) [01:56:38] James_F, is https://bugzilla.wikimedia.org/show_bug.cgi?id=57462 a dupe of https://bugzilla.wikimedia.org/show_bug.cgi?id=47779 ? [01:59:37] Krenair: Hmm. Yeah, I think 49502 got fixed haphazardly. [02:00:21] Krenair: And no; 57462 is making the one-way switch available on clicking the edit source tab. [02:01:02] Krenair: Whereas 47779 is a much bigger thing about magically avoiding re-serialising bugs when switching back and forth between VE and WT. [02:02:37] Krenair: In 57462, currently if you're in VE and have made some changes and click "edit source", you get an OK/cancel alert – in Chrome, "Are you sure you want to go back to view mode without saving first? \n \n Are you sure that you want to leave this page?". [02:03:35] Krenair: The idea is to change that alert into one that says "Do you wish to switch to wikitext mode with changes, or discard them?" and get [Switch], [Switch discarding changes] and [Cancel] or something. [02:03:40] Krenair: If that makes sense? [02:03:52] James_F, ah, yes, I think so [02:03:56] Kk. [02:24:41] (03CR) 10Jforrester: [C: 032] Implement generateDocs.sh script [oojs/core] - 10https://gerrit.wikimedia.org/r/110506 (owner: 10Krinkle) [02:24:53] (03CR) 10Jforrester: [C: 032] package.json: Update devDependencies [oojs/core] - 10https://gerrit.wikimedia.org/r/110144 (owner: 10Krinkle) [02:25:18] (03CR) 10Jforrester: [C: 032] Localisation updates from https://translatewiki.net. [oojs/ui] - 10https://gerrit.wikimedia.org/r/110761 (owner: 10L10n-bot) [02:25:32] (03CR) 10Jforrester: [C: 032] package.json: Update devDependencies [oojs/ui] - 10https://gerrit.wikimedia.org/r/110273 (owner: 10Krinkle) [02:26:01] (03Merged) 10jenkins-bot: Localisation updates from https://translatewiki.net. [oojs/ui] - 10https://gerrit.wikimedia.org/r/110761 (owner: 10L10n-bot) [02:26:32] (03Merged) 10jenkins-bot: package.json: Update devDependencies [oojs/ui] - 10https://gerrit.wikimedia.org/r/110273 (owner: 10Krinkle) [02:26:43] (03CR) 10jenkins-bot: [V: 04-1] Implement generateDocs.sh script [oojs/core] - 10https://gerrit.wikimedia.org/r/110506 (owner: 10Krinkle) [02:27:17] (03Merged) 10jenkins-bot: package.json: Update devDependencies [oojs/core] - 10https://gerrit.wikimedia.org/r/110144 (owner: 10Krinkle) [02:28:22] (03CR) 10Jforrester: [C: 032] "C'mon npm, don't die on me here." [oojs/core] - 10https://gerrit.wikimedia.org/r/110506 (owner: 10Krinkle) [02:28:56] (03Merged) 10jenkins-bot: Implement generateDocs.sh script [oojs/core] - 10https://gerrit.wikimedia.org/r/110506 (owner: 10Krinkle) [02:39:37] (03PS1) 10Jforrester: Update VE core submodule to master [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/110828 [02:40:31] (03PS2) 10Jforrester: Update VE core submodule to master (4792b08) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/110828 [02:59:19] (03PS6) 10Jforrester: Add updateSubmodule.sh script [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/108180 (owner: 10Catrope) [02:59:27] (03CR) 10jenkins-bot: [V: 04-1] Add updateSubmodule.sh script [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/108180 (owner: 10Catrope) [03:04:01] (03PS7) 10Jforrester: Add updateSubmodule.sh script [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/108180 (owner: 10Catrope) [03:06:02] (03CR) 10Jforrester: "PS6 adds the short hash of the submodule to the title of the commit if it's master." [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/108180 (owner: 10Catrope) [03:08:41] (03CR) 10Krinkle: [C: 031] Use new jscs options, disable deprecated JSHint checkstyle options [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/110305 (owner: 10Krinkle) [03:13:02] (03CR) 10Krinkle: [C: 032] Add updateSubmodule.sh script (031 comment) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/108180 (owner: 10Catrope) [03:14:09] (03Merged) 10jenkins-bot: Add updateSubmodule.sh script [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/108180 (owner: 10Catrope) [03:15:42] (03CR) 10Jforrester: [C: 032] Use new jscs options, disable deprecated JSHint checkstyle options [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/110305 (owner: 10Krinkle) [03:16:51] (03Merged) 10jenkins-bot: Use new jscs options, disable deprecated JSHint checkstyle options [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/110305 (owner: 10Krinkle) [03:35:28] (03PS3) 10Jforrester: Update VE core submodule to master (5092503) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/110828 [03:36:56] James_F, ^ worksforme? [03:37:07] woops... that's https://bugzilla.wikimedia.org/49502 [03:37:19] (03CR) 10Krinkle: [C: 032] Update VE core submodule to master (5092503) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/110828 (owner: 10Jforrester) [03:37:19] Krenair: Sounds good. Want me to fiddle or you? [03:37:33] Krenair: Also, it's 03:37. :-) [03:38:06] yes... have been waiting until I get tired but am about to give up and try to sleep anyway [03:38:12] Ha. [03:38:29] (03Merged) 10jenkins-bot: Update VE core submodule to master (5092503) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/110828 (owner: 10Jforrester) [04:54:50] mooeypoo: ve.instances[0].model.documentModel.completeHistory IIRC [05:39:09] mooeypoo: [05:54] RoanKattouw mooeypoo: ve.instances[0].model.documentModel.completeHistory IIRC [05:39:26] heya RoanKattouw [05:39:45] * RoanKattouw waves from early morning in Brussels [05:39:54] thanks :) I need to keep it around. Also, I *think* I found a bug in ve.dm.Document method [05:39:55] I've been awake since 3:50, up since 4:30 [05:40:00] Ooh! [05:40:01] eek [05:40:15] that's early.. jetlag? [05:40:16] I suppose it's past 6:30 now so I can go get breakfast [05:40:19] Yeah, well [05:40:23] I could have stayed up last night [05:40:29] But I chose to just go to sleep at 20:30 again [05:40:38] well you're only there for a couple of days [05:40:45] might as well not get used to the jetlag completely [05:40:46] Like the night before, only that time I slept till the alarm at 9 due to jetlag [05:41:03] I would have actually made the Friday standup if I had had 3G on the train from Brussels Airport to Brussels Central [05:41:24] Which is funny because I also attended the Thursday standup from a train (from SF to Palo Alto), and I hadn't slept in between the two [05:41:46] And yeah, I'm going home tomorrow [05:41:50] hehe [05:41:52] Not too much of a point adjusting to the timezone [05:41:56] yeah that's quick [05:42:02] but did you have time to have some fun ? [05:42:30] Wait... Brussels!!! ... SPECULOOS. [05:42:36] .... mmmmmmmm. [05:42:44] Right? I think that's its origin. [05:44:03] Yeah speculoos is Belgian I think [05:44:06] oh, your country seems to be sharing it with belgium. [05:44:07] I looked this up on Wikipedia [05:44:12] Speculaas is the Dutch cookie [05:44:13] Wikipedia is never wrong. [05:44:20] Speculoos is the adaptation of it to cookie butter, IIRC [05:44:31] or whatever it is, speculoos is a Belgian adaptation of speculaas [05:44:32] They brought Speculoos to "Le Pain Quotidient" here in NYC [05:44:41] Trader Joe's has it too [05:44:58] I thought at first it was whachamacall it.. the halloween fruit.. pumpkin [05:44:59] They sell speculoos cookie butter [05:45:02] right [05:45:07] No, it most definitely is not [05:45:18] and then my mouth was attacked with cinammony cookie bliss [05:45:28] You know, it's funny [05:45:39] Until this winter I had never tasted an actual gingerbread cookie [05:45:45] Ha really? [05:45:47] I ate one in London and was surprised it tasted of ginger [05:45:59] Then I realized that gingerbread and speculaas are different [05:46:11] And my country has substituted speculaas at every opportunity [05:46:32] I support this notion. [05:46:33] I ate my first one in the USA too, we don't really have those in Israel. But a couple of months ago I bought Gingersnap cookies... they were *spicy*. [05:46:45] Spicy cookies are so confusing. [05:46:48] Either way, there is a chocolate store next to the hotel so I'm definitely hitting that place up before I go home [05:46:56] I've promised Belgian chocolate to several people [05:47:09] They're tasty, but... spicy... you want more, but your mouth is confused. You expect sweet, but then you get spice. Very disorienting. [05:47:27] oh, nice, yes, Belgian Chocolate. [05:49:21] RoanKattouw, btw, if you have a moment -- is "writeElement()" method in ve.dm.Document being called every time we add an element or just inline ones? [05:49:50] because it fails, and it fails in a justified manner ("data is undefined" -- and it actually isn't defined as far as I saw) but it only fails for me on adding inline images, not on blocks. [05:50:36] (03Abandoned) 10Jforrester: [WIP] Do not allow to resize thumb image to be bigger than original file [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/71285 (owner: 10Inez) [05:51:52] Hmmm [05:52:10] writeElement() is an internal function somewhere, right [05:52:25] Yeah, in fixupInsertion [05:52:58] hm. [05:53:05] mooeypoo: I don't recall the details, I wrote that code a long time ago. Is your code in Gerrit where I can reproduce this on my own machine and see a call trace? [05:53:07] ok,I'll keep tracing it [05:53:50] I also don't see a data variable [05:54:18] yeah but my code is ugly and most probably has more problems (like I am pretty sure I'm not defining my mwInlineImage properly, etC) --- but in any case, it's here: https://gerrit.wikimedia.org/r/#/c/110234/ [05:54:28] RoanKattouw, but towards the end of that method, there's a for loop that uses data [05:54:36] isn't that weird? :\ [05:54:56] data is undefined as far as I can see... but then, it only fails on inline. So either I"m not defining things properly and there's actually something missing [05:55:08] or it's only called on the inline element, and data is undefined is a bug [05:56:10] Do you mean in fixupInsertion rather than in writeElement? [05:56:22] hang on i'm loading the vm again [05:56:31] Is the data parameter to fixupInsertion undefined? Because THAT would be weird [05:56:43] line 849 in ve.dm.Document [05:56:44] for ( i = 0; i < data.length; i++ ) { [05:57:12] and you're right, it's in fixupInsertion [05:57:14] OK yeah then it's being called wrong [05:57:15] ahh [05:57:20] data is a parameter documented as being an array [05:57:21] I just noticed [05:57:21] whoops [05:57:26] So it definitely shouldn't be undefined [05:57:39] well, it seems that I am not sending the right data, then [05:57:46] but Iam not entirely sure what I'm missing [05:57:55] Are you passing the correct data to newFromInsertion? Note that it takes an array, not a single {type:'foobar'} object [05:58:05] * mooeypoo nods [05:58:07] I.. thought so [05:58:17] And that data is the 3rd parameter [05:58:30] ignore the mess, look at line #382 https://gerrit.wikimedia.org/r/#/c/110234/2/modules/ve-mw/ui/dialogs/ve.ui.MWMediaEditDialog.js [05:58:49] I either make an array for mwInlineImage or for mwBlockImage [05:59:06] Ahm [05:59:07] Or not [05:59:15] what? no? [05:59:20] It's if ( ... ) { newNode = something; } else if ( ... ) { newNode = something; } [05:59:26] What if neither of those two conditions is tre? [05:59:29] *true [05:59:34] Then newNode will be undefined [05:59:37] yeah, you're right [05:59:39] and there's nothing protecting against that case that I can see [05:59:43] ... ha [05:59:57] it shouldn't happen btw, one of those MUST be right [06:00:04] look at the higher-up condition [06:00:11] but you are right, I should make an "else" instead [06:00:12] I mean maybe it's written so that conceptually that shouldn't happen, but yeah [06:00:21] From the condition at the top it seems like this shouldn't be possible [06:00:31] it shouldn't theoretically, but I'll change it anyways [06:00:34] Oh! [06:00:38] attr and attrs.type , can they differ? [06:01:03] Yes they can! [06:01:06] yes [06:01:08] ha [06:01:11] they're completely different [06:01:25] If you'd reordered the code above to process the type attribute last, they would be the same [06:01:29] But in any case, that's confusing [06:01:39] yeah no I need to rearrange the entire method anyways [06:01:41] *would have been the same [06:01:50] right now it was mostly "let's see if that works" sort of thing [06:02:06] I plan to refactor the .teardown method anyways [06:02:12] You ideally shouldn't be relying on attr having the same value as attrs.type , that makes the code unclear and prone to breakage precisely by someone adding another attribute below type [06:02:22] Anyways [06:02:34] oh, attr is just there to be a cache for the test [06:02:36] With that mystery solved, it's now 7am and I'm hungry [06:02:42] So I'm gonna go grab breakfast [06:03:12] instead of going "if (X.val()) { something=X.val() } that calls .val() or .data() or whatever multiple times [06:03:18] but ywah, I'm going to fix it up anyways. [06:03:29] RoanKattouw_away, Thanks and enjoy your food .. and your chocolate! [07:32:04] (03PS3) 10Mooeypoo: [WIP] Image type inline to block and vise versa [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/110234 [07:32:18] (03CR) 10jenkins-bot: [V: 04-1] [WIP] Image type inline to block and vise versa [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/110234 (owner: 10Mooeypoo) [07:40:55] hmm. [07:43:24] hm. RoanKattouw would it be horrible if instead of going for Transaction, I "cheat" and use the fragment's insertContent() method? since the fragment is my current node, and I don't collapse the selection, it replaces that node. But I am not sure if that's smart in context of block-to-inline and vise versa. [07:43:47] insertContent() performs a transaction as well, but will it "know" to set inline into the paragraph and block out, etc? [07:44:42] That would be fine [07:46:26] insertContent() does a removal followed by an insertion, pretty much the same thing you're doing [07:47:16] If instead of using insertContent() you'd be doing a removal followed by an insertion yourself, using insertContent() would be OK and actually a bit better because it's clearer what's going on and there's less code duplication [07:49:49] Yeah, it seemed better also for consistency.. otherwise I have to keep track of the offset or range.start [07:50:15] Also, I need to replace this.mediaNode with the new node, and if it is the new selection, it should be easy to do. [07:55:12] (Heading to the conference, back in ~2h) [07:55:24] Enjoy! [07:55:31] and thanks :) [12:45:20] (03CR) 10Siebrand: [C: 031] "i18n/L10n reviewed." [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/110234 (owner: 10Mooeypoo) [13:22:49] (03CR) 10Siebrand: [C: 031] "i18n/L10n reviewed." [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/105247 (owner: 10Mooeypoo) [14:17:21] (03CR) 10Siebrand: [C: 04-1] "i18n/L10n reviewed." [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/109670 (owner: 10Esanders)