[00:00:00] * mooeypoo shoots her computer [00:01:53] James_F, RoanKattouw, will I be stoned to death if I suggest we should also get mediatype information on images from Parsoid, considering the fact they behave differently? [00:02:03] Not by us [00:02:05] Maybe by them [00:02:29] 3VisualEditor / 3Editing Tools: VisualEditor: Changing image from floated (right+basic) to thumb does not update size correctly - 10https://bugzilla.wikimedia.org/65886 (10James Forrester) 5PATC>3RESO/FIX [00:02:44] 3VisualEditor / 3Technical Debt: VisualEditor: ve.dm.MWImageModel#getUpdatedAttributes shouldn't need to modify Scalable - 10https://bugzilla.wikimedia.org/66149 (10James Forrester) 5NEW>3ASSI p:5Unprio>3High s:5normal>3enhanc [00:02:56] (03CR) 10Catrope: [C: 032] [BREAKING CHANGE] Use promises for confirmation dialog instead of done event [oojs/ui] - 10https://gerrit.wikimedia.org/r/136542 (owner: 10Alex Monk) [00:02:58] 3VisualEditor / 3Editing Tools: VisualEditor: Changing image from floated (right+basic) to thumb does not update size correctly - 10https://bugzilla.wikimedia.org/65886 (10James Forrester) [00:03:02] mooeypoo: You mean images rather than figures? [00:03:30] (03Merged) 10jenkins-bot: [BREAKING CHANGE] Use promises for confirmation dialog instead of done event [oojs/ui] - 10https://gerrit.wikimedia.org/r/136542 (owner: 10Alex Monk) [00:03:31] "BITMAP" vs "DRAWING" [00:04:11] The difference between how these two behave is fairly significant, especially size-wise [00:04:20] mooeypoo, there's a bug about providing original dimensions somewhere [00:04:26] moment.. [00:04:35] gwicke, aye, I posted it I believe [00:04:47] https://bugzilla.wikimedia.org/show_bug.cgi?id=62881 [00:05:03] gwicke, that's why I was worrying about suggesting yet another addition.. I know you were concerned about having to supply too much data [00:05:22] RoanKattouw: https://gerrit.wikimedia.org/r/#/c/133944/ [00:05:33] the current thinking is towards separating out data-mw as well [00:05:37] We're dealing with things now by requesting another api call, but mediatype seems to be an inherent attribute, I was thinking it makes sense to get it initially. [00:05:50] and letting VE retrieve it separately as a JSON blob [00:05:58] * mooeypoo nods [00:06:11] which should make the size issue moot for normal page views [00:06:30] RoanKattouw, thanks. So I think we need to pull the newer version of oojs-ui into core/ve [00:06:44] Krenair: James is already doing that [00:06:47] mooeypoo, can you just add that request to the bug? [00:06:49] okay [00:06:51] But he got pulled away from his desk [00:07:07] we have that info readily available at render time, so it's easy to add [00:07:12] gwicke, yeah the size is probably unnecessary for anything other than an editor. We need it for editing purposes. "mediatype" might be a different issue, though, I'm not sure. We definitely need it for editing, but it *might* be beneficial for other purposes, since it separates svg images from bitmap etc. [00:07:48] the only thing that might be a bit icky is that those attributes are really read-only [00:08:11] we are not going to resize the original or turn a bitmap into a vector image if you modify that info in VE ;) [00:08:39] but I think that's fine if well documented [00:09:58] * mooeypoo nods [00:10:21] gwicke, "mediatype" is read only anyways, you can't change it at all unless you change the image itself, which changes the entire property set anyways. [00:10:41] Most of these are read only on purpose, too. Default/Original size is also read only unless you change the entire image. [00:11:06] yes, it just differs from other info in data-mw, which is normally read-write [00:11:33] (03PS1) 10Jforrester: Update OOjs UI to v0.1.0-pre (cbc62ac803) [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/137502 [00:11:39] Ah, yeah, good point [00:11:57] we can put it into an imageinfo object and mark that as ro [00:12:21] TrevorParscal: https://gerrit.wikimedia.org/r/137503 and https://gerrit.wikimedia.org/r/137502 please. [00:13:30] that works. And it will save us a bunch of api calls. [00:13:44] (03CR) 10Trevor Parscal: [C: 032] Update OOjs UI to v0.1.0-pre (cbc62ac803) [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/137502 (owner: 10Jforrester) [00:13:49] and a whole bunch of calculations. [00:14:24] (03CR) 10Trevor Parscal: [C: 032] Use promises for confirmation dialog instead of done event [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/136543 (owner: 10Alex Monk) [00:15:33] (03Merged) 10jenkins-bot: Update OOjs UI to v0.1.0-pre (cbc62ac803) [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/137502 (owner: 10Jforrester) [00:16:22] (03Merged) 10jenkins-bot: Use promises for confirmation dialog instead of done event [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/136543 (owner: 10Alex Monk) [00:18:12] RoanKattouw, TrevorParscal you know what we need? a way to update the value of a checkbox WITHOUT setting off the event. Possible? [00:18:39] (03PS1) 10Jforrester: Update VE core submodule to master (7a4d039) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/137507 [00:18:45] This checkbox is driving me nuts. Most of the problem is that it's emiting the change event every time it's clicked, which creates loop-de-loops and massive annoyances. [00:19:02] mooeypoo: Can you debounce in your catcher? [00:19:19] There's gotta be a way to separate between intentional user-click and the code marking it as checked [00:20:02] James_F, I can probably find creative solutions,but it would be a whole lot easier if I can set checked/unchecked values without firing the event, like we have "chooseItem" vs "selectItem" in the select widget [00:21:57] mooeypoo: Is "chooseItem" vs "selectItem" the cause of https://bugzilla.wikimedia.org/show_bug.cgi?id=65916 ? [00:21:59] 3VisualEditor / 3MediaWiki integration: VisualEditor: The "Cite" toolbar item is not internationalised in the Media and Reference dialogs - 10https://bugzilla.wikimedia.org/66039#c7 (10James Forrester) 5PATC>3RESO/FIX Cherry-picks going out tomorrow. [00:22:34] James_F, no, it should be the checkbox event this time. The 'choose' vs 'select' was the cause of previous bugs, it *shouldn't* be a problem anymore (but I'm still checking) [00:22:51] it seems so far that the checkbox event itself is the culprit [00:22:56] mooeypoo: Ah. :-( [00:23:23] I'll find a creative solution to bind it to my will. [00:23:34] * mooeypoo takes out her code whip [00:25:15] 3VisualEditor / 3Editing Tools: VisualEditor: Small default sized SVG images behave differently than small default sized PNG images - 10https://bugzilla.wikimedia.org/62893 (10James Forrester) 5PATC>3RESO/FIX [00:25:15] 3VisualEditor / 3Editing Tools: VisualEditor: Issues with new Image model (tracking) - 10https://bugzilla.wikimedia.org/65829 (10James Forrester) [00:25:59] 3VisualEditor / 3Editing Tools: VisualEditor: The highlight boxes for templates/images/cite notes/math/references inside the caption of an image are appearing on hovering over the image inside VE - 10https://bugzilla.wikimedia.org/64563 (10James Forrester) [00:30:45] 3VisualEditor / 3Data Model: VisualEditor: Link can be applied on Cite Web/Book/Newspaper/Journal templates (but not reference nodes), which is confusing - 10https://bugzilla.wikimedia.org/63091 (10James Forrester) p:5High>3Low s:5major>3minor a:5Roan Kattouw>3None [00:31:44] mooeypoo: The typical workaround is this.ignoreChangeEvent = true; checkbox.setValue( ... ); this.ignoreChangeEvent = false; [00:33:11] (03CR) 10Catrope: [C: 04-1] "Very minor stuff" (032 comments) [extensions/TemplateData] - 10https://gerrit.wikimedia.org/r/133944 (https://bugzilla.wikimedia.org/60089) (owner: 10Mooeypoo) [00:33:19] mooeypoo: Fix those minor things ---^^ and I'll mergre it [00:33:30] 3VisualEditor / 3Editing Tools: VisualEditor: Template editor is missing accessibility features - 10https://bugzilla.wikimedia.org/65474 (10James Forrester) 5PATC>3RESO/FIX [00:35:07] (03CR) 10Catrope: Block object descriptions from edit (031 comment) [extensions/TemplateData] - 10https://gerrit.wikimedia.org/r/133944 (https://bugzilla.wikimedia.org/60089) (owner: 10Mooeypoo) [00:35:24] mooeypoo: Don't worry, I'll do it. [00:35:30] mooeypoo: You work on checkboxen. :-) [00:37:11] (03PS13) 10Jforrester: Block object descriptions from edit [extensions/TemplateData] - 10https://gerrit.wikimedia.org/r/133944 (https://bugzilla.wikimedia.org/60089) (owner: 10Mooeypoo) [00:37:27] (03CR) 10Jforrester: Block object descriptions from edit (032 comments) [extensions/TemplateData] - 10https://gerrit.wikimedia.org/r/133944 (https://bugzilla.wikimedia.org/60089) (owner: 10Mooeypoo) [00:38:00] (03CR) 10Catrope: [C: 032] Block object descriptions from edit [extensions/TemplateData] - 10https://gerrit.wikimedia.org/r/133944 (https://bugzilla.wikimedia.org/60089) (owner: 10Mooeypoo) [00:38:15] 3VisualEditor / 3Editing Tools: VisualEditor: [Regression wmf6] For all Image Types after changing the alignment to left, it automatically selects the alignment as right when it is positioned at the left of the page, but it doesn't change position in CE surface until save - 10https://bugzilla.wikimedia.org/6556... [00:38:22] (03Merged) 10jenkins-bot: Block object descriptions from edit [extensions/TemplateData] - 10https://gerrit.wikimedia.org/r/133944 (https://bugzilla.wikimedia.org/60089) (owner: 10Mooeypoo) [00:38:59] 3MediaWiki extensions / 3TemplateData: TemplateData: TemplateDataGenerator should roundtrip unexpected JSON values - 10https://bugzilla.wikimedia.org/60089#c4 (10James Forrester) 5PATC>3ASSI Now fixed for descriptions, but not (I think?) in general. [00:40:08] (03CR) 10Catrope: [C: 032] Update VE core submodule to master (7a4d039) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/137507 (owner: 10Jforrester) [00:41:32] ooh [00:41:44] (03Merged) 10jenkins-bot: Update VE core submodule to master (7a4d039) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/137507 (owner: 10Jforrester) [00:42:07] mooeypoo: ? [00:43:23] the ignoreChangeEvent workaround is awesome [00:43:58] :-) [00:44:16] RoanKattouw, quick question though -- change events are asynchronous though, aren't they? That is, if i do something like this.ignoreEvent=true; checkbox.setValue(blah); this.ignoreEvent=false; --> I might end up making the ignore event false before it was fired. No? [00:44:44] 3VisualEditor / 3MediaWiki integration: VisualEditor: Direct link to a non-extant local file ([[:File:Foo]]) is red even if there is an extant file in a remote repo - 10https://bugzilla.wikimedia.org/63355 (10James Forrester) [00:44:46] No, oojs events are synchronous [00:44:53] I have to go, srry [00:44:55] oh, okay [00:44:57] awesome, thanks! [01:18:36] Keegan! hi [01:22:43] er [01:34:32] Hi mooeypoo [01:34:44] are you back home? [01:46:52] mooeypoo: I am for a few days [01:47:08] ah yes, i sent you a pm, but none of this is urgent [01:47:10] i know you're busy [02:32:20] (03PS1) 10Mooeypoo: [wip] Fixing issues in the alignment select in Media Edit dialog [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/137524 (https://bugzilla.wikimedia.org/65916) [02:40:47] (03PS16) 10Jagori79: WIP: [Browser test] Visual Editor adding long Target Links [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/122400 (https://bugzilla.wikimedia.org/63104) [02:50:44] (03PS17) 10Jagori79: WIP: [Browser test] Visual Editor adding long Target Links [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/122400 (https://bugzilla.wikimedia.org/63104) [02:53:28] (03PS18) 10Jagori79: WIP: [Browser test] Adding step definition and page object for external link scenario [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/122400 (https://bugzilla.wikimedia.org/63104) [07:01:33] (03CR) 10Esanders: Grunt: Create a single file stand-alone distribution for demos etc. (031 comment) [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/137367 (https://bugzilla.wikimedia.org/66117) (owner: 10Jforrester) [08:38:31] 3VisualEditor: VisualEditor: When saving, cursor (caret) stays in the editing area instead of focusing on the edit summary dialog - 10https://bugzilla.wikimedia.org/66168 (10Amir E. Aharoni) 3NEW p:3Unprio s:3normal a:3None Note: This happens in mediawiki.org (1.24wmf7 (941d0e1)), but not in en.wikiped... [08:42:45] 3OOjs UI: OOjs UI: Dialogs are not accessible - 10https://bugzilla.wikimedia.org/65473#c3 (10Derk-Jan Hartman) With main document I mean every document parts but the dialog. If the dialog is a direct sibling of the body, then it means that all siblings of the dialog should theoretically be 'aria-hidden' and sh... [08:43:29] 3OOjs UI: OOjs UI: Dialogs are not accessible - 10https://bugzilla.wikimedia.org/65473#c4 (10Derk-Jan Hartman) 'direct sibling' -> 'direct child' [09:59:54] is there a mailing list for VE ? [15:02:07] indaba: There isn't one, no; would you find it useful? [15:21:17] (03PS15) 10Vikassy: [BrowserTest] Adding Browser test for Headings and its screenshot elements for Language Screenshot [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/135616 [15:55:01] (03CR) 10Jforrester: Grunt: Create a single file stand-alone distribution for demos etc. (031 comment) [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/137367 (https://bugzilla.wikimedia.org/66117) (owner: 10Jforrester) [16:01:05] edsanders: Re. https://bugzilla.wikimedia.org/show_bug.cgi?id=65924 – do you have a response re. fixUpInsertion (does it "just work")? [16:02:16] 3VisualEditor / 3Editing Tools: VisualEditor: Media settings dialog shows two selected values of alignment if you unchecking then checking the wrap option - 10https://bugzilla.wikimedia.org/65916 (10James Forrester) [16:02:16] 3VisualEditor / 3Editing Tools: VisualEditor: Inline images don't display correctly if converted to floating images and then back - 10https://bugzilla.wikimedia.org/65924 (10James Forrester) [16:02:16] 3VisualEditor / 3Editing Tools: VisualEditor: "Use an existing reference" in the reference dialog button should be disabled once user enters content in the text field and re-enabled upon deleting it - 10https://bugzilla.wikimedia.org/65689 (10James Forrester) [16:12:30] James_F, should work, need to test to prove it [16:12:51] edsanders: Kk. Do you want to do that or should mooeypoo? [16:14:46] I'll let her [16:15:26] So gallant. :-) [16:38:27] Morning Krinkle. [16:44:53] Hi [16:55:01] (03CR) 10Cmcmahon: [C: 032] [BrowserTest] new test for page options [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/137355 (owner: 10Cmcmahon) [16:56:03] Test? [16:56:47] (03Merged) 10jenkins-bot: [BrowserTest] new test for page options [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/137355 (owner: 10Cmcmahon) [17:01:52] (03PS1) 10Cmcmahon: [BrowserTest] Update gems in support of WMF Jenkins [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/137703 [17:02:59] (03CR) 10Cmcmahon: [C: 032] "maintenance" [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/137703 (owner: 10Cmcmahon) [17:04:24] (03PS5) 10Esanders: Grunt: Create a single file stand-alone distribution for demos etc. [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/137367 (https://bugzilla.wikimedia.org/66117) (owner: 10Jforrester) [17:04:26] (03PS1) 10Esanders: Only show debug bar when ve.debug is set [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/137704 [17:04:32] (03Merged) 10jenkins-bot: [BrowserTest] Update gems in support of WMF Jenkins [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/137703 (owner: 10Cmcmahon) [17:43:01] edsanders: mr language widget, if I wanted to have the ve.ce.LanguageAnnotation be able to describe itself in the language name, like "English" instead of "en", how might I obtain such information? [17:43:24] ha, challenge. [17:43:45] TrevorParscal, can i bug you about the oojs bug? [17:43:56] yes [17:44:01] you mean ooui right? [17:45:49] yep, sorry, ooui -- look at this if you got a minute https://gerrit.wikimedia.org/r/#/c/137524/ [17:46:23] this is my fix to the checkbox issue in the media edit dialog, but the widget is still stuck with 2 selections [17:47:25] so to reproduce: review that change; insert an image, then edit the image in the media edit dialog. Remove floating (uncheck the position checkbox) switch type or something, like to 'basic' and click the checkbox again. "Right" will be the default (which is good) but now click "Left" -- both right and left are selected. [17:47:49] TrevorParscal, but code-wise, only the latest-clicked actually counts, so it seems that the widget knows which was actually chosen, it just shows both [17:50:04] TrevorParscal, I tried to look at the ooui code, but the difference between the three selection types was a bit confusing to me [17:50:06] Well, i can't seem to get this problem to occur in the OOUI demo (by disabling/enabling) [17:50:12] looking further [17:51:51] ok, got it [17:51:58] it's caused by using chooseItem() while disabled [17:52:06] I can reproduce in the ooui demo [17:52:30] you disable, choose and item, enable, both will be depressed [17:52:32] let me fix [17:54:09] ahh [17:54:12] hmm [17:54:17] (03CR) 10Catrope: [C: 032] Only show debug bar when ve.debug is set [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/137704 (owner: 10Esanders) [17:54:30] 3OOjs UI: VisualEditor Mobile: Link inspector - after selection, search field is buggy on iOS - 10https://bugzilla.wikimedia.org/64575#c7 (10Jon) a:3None This appears to be a bug in OOJS-UI It seems selecting an item does something weird with the focus of the input on an iPad. [17:54:32] damn; I changed the order because otherwise the checkbox event ruins stuff [17:54:44] 3MediaWiki extensions / 3TemplateData: TemplateData: TemplateDataGenerator should roundtrip unexpected JSON values - 10https://bugzilla.wikimedia.org/60089#c5 (10Krinkle) (In reply to James Forrester from comment #4) > Now fixed for descriptions, but not (I think?) in general. (In reply to Gerrit Notificati... [17:54:46] TrevorParscal, okay, I guess I'll have to use roan's ignoreEvent tweak [17:55:01] what is really strange is that selectItem works, but chooseItem does not, and chooseItem really only calls selectItem and then emits 'choose' [17:55:26] (03Merged) 10jenkins-bot: Only show debug bar when ve.debug is set [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/137704 (owner: 10Esanders) [17:56:59] 3MediaWiki extensions / 3TemplateData: TemplateData: TemplateDataGenerator should roundtrip unexpected JSON values - 10https://bugzilla.wikimedia.org/60089#c6 (10James Forrester) 5ASSI>3RESO/FIX OK, in that case I'm marking this bug closed (but we should follow-up with the wider tech debt, indeed). [17:57:46] TrevorParscal, are you changing this through oojs, or should I not allow my code to select an item when it's disabled? [17:57:57] i'm fixing in OOUI [17:58:21] well, if it's disabled, it would seem that we should ignore choose and select and stuff [17:58:41] TrevorParscal, well, the idea was that I select so that when it's not disabled it displays whatever the previous selection was [17:58:45] is that not good strategy? [17:58:57] instead of having it come back from being disabled as empty [17:59:04] well, it's sort of evil [17:59:17] because disabled means "user can't change it" [17:59:25] no, but code can? [17:59:31] we don't want to get into a situation where the program has to enable, change and disable [17:59:40] the select widget reflects the value of the code, that's why I thought it was logical [17:59:44] or wait for the control to be enabled to set the value [18:00:24] TrevorParscal, yeah, that's why I thought the system can choose the item regardless of the select widget being disabled for the user [18:00:29] but if that doesn't make sense, I'll change it [18:02:30] TrevorParscal: I'm trying to debug an issue with the link inspector search - which function is called when a search result is clicked? [18:03:13] TrevorParscal, this whole trickses-business started because unlike most oojs setters, checkbox 'set' values *always* emit the set event, and if I hit that event before the widget has value in it, that produces an event loop-de-loop. However, I can solve this in other ways. [18:04:41] hmm, now I can't reporoduce [18:04:51] jdlrobson: MWLinkTargetInputWidget#onLookupMenuItemChoose [18:05:02] thanks RoanKattouw ! [18:05:42] mooeypoo: we need to filter the event on actual change, like the others [18:06:04] CheckboxInputWidget appears to have filtering [18:06:45] TrevorParscal, oh, it actually changes. [18:06:52] I just don't want it to fire the full event. [18:07:19] TrevorParscal, similar to 'choose' vs 'select' there's a difference between the user actually clicking this checkbox and the system enabling/selecting this checkbox due to data changing [18:07:37] one should emit change, the other should behave differently -- and it's hard to know which is which when both emit the same event. [18:07:39] mooeypoo: ah, right [18:08:06] TrevorParscal, I can use Roan's trick, he suggested I do this.ignoreCheckboxEvent =true; checkbox.val(..); this.ignoreCheckboxEvent=false; [18:08:18] well, in the response to the checkbox changing, it should only act if the new value is not already in sync with the model [18:08:21] this is normal [18:08:31] value change filtering [18:08:36] hmm. [18:08:42] his trick is evil [18:09:41] what you need it so write the checkbox's "set" event handler to only carry out action if the checkbox is introducing a new value to the model, if the model is already in the same state as the checkbox now is, then we are all set [18:09:59] Syncing with the model is a good point. I tried a bunch of things and ran into a couple of issues, but I am not sure if that's something I tried. [18:10:03] * mooeypoo nods [18:10:38] the reason we have select and choose with menus isn't to do with these event loops, it's because we want to visually provide feedback for highlighting (hovering) selecting (mousedown and drag) and choosing (mouseup) [18:12:04] keeping a model and view in sync will tempt you into having 2 paths to update the UI, one that the user takes and another that the model takes, but you will hit the wall quickly - you need to check if the model has indeed changed (or let the model do that internally, as we do inside input widget setValue() methods) before carrying out any action [18:12:12] (03CR) 10Krinkle: "I was wondering where i saw this before. Maybe mention it was copied from oojs-ui build process (moduleUtils.js etc.)." [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/137367 (https://bugzilla.wikimedia.org/66117) (owner: 10Jforrester) [18:14:56] TrevorParscal, aye, but it also makes sense in terms of behavior, I thought. As in, "User changed value" vs "System changed value" which should suggest different behavior [18:15:28] It was a bit annoying that checkboxes don't allow for that distinction. I get why, but when you get used to a good thaaang... [18:16:04] TrevorParscal: Thanks for sanitizing my suggestion there [18:19:27] RoanKattouw: having troubles with debugging https://bugzilla.wikimedia.org/show_bug.cgi?id=64575 - there is a nasty iOS bug that seems to mess with the focus on the input which puts it in a state where the soft keyboard is open but you can't type unless you unfocus. Would be good to sit down with you later and brainstorm some ideas on what's going on [18:20:30] mooeypoo: so, I'm not able to reproduce on the demo, looking at your actual patches in a sec [18:22:04] TrevorParscal, ok, I'll be editing it to make the code not update the disabled widget anyways, though... or do you want me to wait? [18:22:34] let me sort this out, i'm seeing it doing this in your patch, there's gotta be a way to fix it [18:23:12] TrevorParscal, okay, though your point about checking the model first is good idea, i'll have to change the code a bit later. I'm waiting for you to finish first, though. [18:23:51] ok, so what I am seeing is that it's not actually selecting the "right" option, but the button element inside the option is "active" [18:24:25] if you look at the DOM, initially the "right" option doesn't have .oo-ui-optionWidget-selected set as you might expect it to [18:27:18] ok, I can reproduce in the ooui demo now, because I know what is going on [18:27:30] hmmm [18:27:55] if you choose/select an item, while there is no current item and it's disabled it will get into a strange state [18:27:57] working on that [18:28:05] * mooeypoo nods [18:28:11] okay, so it's due to selecting while it's disabled [18:28:16] okay, that makes sense [18:29:00] it's because OO.ui.ButtonOptionWidget doesn't prevent setting active when it's disabled, but OO.ui.OptionWidget does prevent setting selected when it's disabled [18:29:09] which isn't needed, and is causing this chaos [18:29:25] * mooeypoo nods [18:29:45] so are you going to prevent for disabled for all, or for none? [18:30:02] I should still go by the model sync strategy that you suggested regardless. [18:31:07] i'm going to fix it so you can change it while it's disabled (just not by clicking) and it works properly [18:32:03] 3VisualEditor / 3Technical Debt: VisualEditor: Replace uses of push.apply with something safe - 10https://bugzilla.wikimedia.org/66206 (10Roan Kattouw) 3NEW p:3Unprio s:3normal a:3None Similar to how we have ve.batchSplice for splice.apply [18:33:35] TrevorParscal, awesomeness [18:33:36] thanks! [18:36:20] (03PS1) 10Trevor Parscal: Allow programatic selection of options while disabled [oojs/ui] - 10https://gerrit.wikimedia.org/r/137729 [18:36:49] (03PS2) 10Trevor Parscal: Allow programatic selection of options while disabled [oojs/ui] - 10https://gerrit.wikimedia.org/r/137729 [18:36:59] there you go, https://gerrit.wikimedia.org/r/#/c/137729/ [18:37:18] i am going to mozy on over to metrics for a bit, see what I can see [18:37:47] TrevorParscal: It's very full up here. [18:41:50] So I've managed to get LanguageSearchWidget#addResults (on initial load) down from 14056ms to 1750ms [18:41:52] So that's good [18:42:00] But still not really fast [18:42:46] 3VisualEditor / 3Editing Tools: Fields are case sensitive in citation dialog, allowing duplicates of the same field - 10https://bugzilla.wikimedia.org/66207 (10marielle.volz) 3UNCO p:3Unprio s:3trivia a:3None Created attachment 15572 --> https://bugzilla.wikimedia.org/attachment.cgi?id=15572&action... [18:42:53] The addItems() component of that went down from 13030ms to 63ms :O [18:43:20] Now I just have to deal with the fact that updateLabel() takes 1662ms [18:45:15] 3VisualEditor / 3Editing Tools: VisualEditor: Citation tool should not add empty citation templates - 10https://bugzilla.wikimedia.org/64715#c3 (10marielle.volz) Created attachment 15573 --> https://bugzilla.wikimedia.org/attachment.cgi?id=15573&action=edit More than one field error [18:46:01] 3VisualEditor / 3Editing Tools: VisualEditor: Citation tool should not add empty citation templates - 10https://bugzilla.wikimedia.org/64715#c4 (10marielle.volz) Whoops, sorry, wrong bug report :( [18:47:29] 3VisualEditor / 3Editing Tools: Fields are case sensitive in citation dialog, allowing duplicates of the same field - 10https://bugzilla.wikimedia.org/66207#c1 (10marielle.volz) Created attachment 15574 --> https://bugzilla.wikimedia.org/attachment.cgi?id=15574&action=edit Two fields error [18:47:49] Hah [18:47:59] Apparently node adoption is really expensive in Chrome [18:48:15] Using this.$() instead of $() appears to turn that 1662ms into 243ms [18:50:17] It looks like jQuery's efforts to clean up the mess made by mixing $() and this.$() causes a ~10x overhead [18:50:44] 3MediaWiki extensions / 3TemplateData: TemplateData: Message templatedata-model-table-param-type-file missing - 10https://bugzilla.wikimedia.org/65545 (10Krinkle) [18:50:44] 3MediaWiki extensions / 3TemplateData: TemplateData: Stable version of the GUI editor (tracking) - 10https://bugzilla.wikimedia.org/65543 (10Krinkle) [18:51:28] RoanKattouw: so this.$ is faster? [18:51:35] Well [18:51:42] Using the correct document consistently is faster [18:52:14] appending things made with $() to things made with this.$ (assuming this.$()'s document is not the global document) is what appears to be slow [18:52:39] Specifically, the place where I'm fixing this is ve.ui.LanguageResultWidget#highlightQuery [18:53:07] If you look at its only caller (in the same file), you'll see that for an unfiltered language list, that kind of mismatch happens a couple hundred times [18:53:28] I'm trying to figure out where jQuery does this slow recovery [18:53:40] Youre saying it will import/adopt the nde? [18:53:41] node* [18:53:45] domManip calling buildFragment apparently [18:53:58] yeah, that's where I ended up as well. [18:54:43] Sizzle.setDocument appears to only be present in the bad trace, and appears to take a lot of time [18:54:56] To test this, do the following [18:55:17] Change LanguageResultWidget#highlightQuery to an instance method rather than a static method (which I'm doing in an upcoming patch) [18:55:27] Then profile the code with $() vs this.$() in that function [18:55:43] (right now it obviously uses $(), since this.$() doesn't exist in static methods) [18:55:53] When I say "profile the code", I mean: [18:56:12] Open VE, open language inspector, start profile, click Change language, wait for dialog to appear, stop profile [18:56:21] You need my GroupElement fixes for this to not take 14 seconds [18:56:51] But the function where you can see the this.$() vs $() performance difference is LanguageResultWidget#updateLabell [18:56:53] -l [19:00:48] RoanKattouw: what do you mean by "Change language" [19:00:54] I see Find language [19:01:15] Is that the one? [19:01:31] this is the first time I've seen this version of the inspector [19:03:47] Krinkle: It changed ~ two months ago I think. Ed went bonkers. [19:06:12] Yeah that one [19:09:23] (03PS1) 10Catrope: Use this.$() in LanguageResultWidget#highlightQuery [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/137736 (https://bugzilla.wikimedia.org/65512) [19:09:39] James_F: Surprising performance result ---^^ [19:10:05] Gosh, numbers. [19:10:09] JamesF: we decided the field mappings should be in a MediaWiki:mappings.json file correct? and not service side? [19:10:12] * James_F approves as a ve-performance bug. [19:10:30] mvolz: Yes, because they'll alter from wiki to wiki. [19:10:38] hola [19:10:41] mvolz: But we could theoretically do it a different way. [19:10:43] nah [19:10:46] works for me [19:10:49] James_F: did you notice https://bugzilla.wikimedia.org/show_bug.cgi?id=66168 ? [19:11:06] mvolz: Maybe in TemplateData with locked-in (Dublin Core? Etc.) tags? [19:11:27] aharoni: I'll get to triage it in the next 2–3 days. [19:11:35] aharoni: But I'm pretty sure it's a duplicate. [19:11:39] ok :) [19:12:02] as long as it stays on mediawiki.org and doesn't go to Wikipedias [19:12:18] (03PS2) 10Mooeypoo: [wip] Fixing issues in the alignment select in Media Edit dialog [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/137524 (https://bugzilla.wikimedia.org/65916) [19:12:30] hi mooeypoo [19:12:35] heya [19:12:37] Hmmm. I worry about unnessecarily dropping types if it's in each separate template [19:12:38] how are you aharoni ? [19:12:43] life is good. [19:12:48] did you see the new reports on my he.wikipedia user page? [19:12:57] very curious stuff for you [19:13:01] oh, no? I saw your message, didn't have time to check. Going now [19:13:23] mooeypoo: more examples and another weird thing with spurious s [19:13:36] ooh [19:14:52] but you're right we need to match field for field in some cases... [19:14:59] hence template data... [19:22:15] 3VisualEditor / 3Editing Tools: VisualEditor: Inspectors and context menu should close when blurring the document and/or when opening the save dialog - 10https://bugzilla.wikimedia.org/51439#c2 (10James Forrester) *** Bug 63050 has been marked as a duplicate of this bug. *** [19:22:15] 3VisualEditor / 3Editing Tools: VisualEditor: Close inspectors when the user clicks on the toolbar (e.g. on "Save Page") so it's clear that it has applied to the document - 10https://bugzilla.wikimedia.org/63050#c2 (10James Forrester) 5ASSI>3RESO/DUP *** This bug has been marked as a duplicate of bug 5... [19:22:42] aharoni, mooeypoo: I added filter to catch edits https://he.wikipedia.org/w/index.php?title=%D7%9E%D7%99%D7%95%D7%97%D7%93:%D7%99%D7%95%D7%9E%D7%9F_%D7%94%D7%94%D7%A9%D7%97%D7%AA%D7%95%D7%AA&wpSearchFilter=45 [19:22:45] 3VisualEditor / 3Editing Tools: VisualEditor: Inspectors and context menu should close when blurring the document and/or when opening the save dialog - 10https://bugzilla.wikimedia.org/51439 (10James Forrester) p:5Low>3High [19:23:01] thanks eranroz [19:23:06] eranroz, oh, great! [19:23:07] thanks [19:23:14] 3VisualEditor / 3MediaWiki integration: VisualEditor: Diff styling in save dialog is broken - 10https://bugzilla.wikimedia.org/60497 (10James Forrester) 5NEW>3ASSI p:5Unprio>3Normal [19:23:36] RoanKattouw: Ah, found it. [19:23:47] RoanKattouw: I couldn't find why it goes into setDocument from looking a the code [19:23:56] it's not because it's wanting to import or adtop [19:23:58] adopt* [19:24:01] it's because of the contains() check [19:24:28] wikibugs, use "window" not "dialog". ve doesn't load properly with "dialog" :) [19:24:58] eranroz: What? [19:25:09] RoanKattouw: So it executes all its assert tests and stuff again. Basically it's initial startup footprint. [19:25:31] to see what the document and window support [19:25:51] and its not even doing an import/adopt [19:25:55] so it'll probably still fail [19:26:15] or work because appenChild or something is doing it implicitly [19:26:16] James_F, this is a joke, but I had a script that used dialog factory and the name changed to window factory [19:26:31] and then ve.addPlugin caused ve to not load anymore [19:26:33] RoanKattouw: setDocument is just slow, it doesnt' set the document of the node, it sets the document related variarbles of the Sizzle engin [19:26:43] bascially re-instantiate the Sizzle singleton for that document [19:26:44] (there is no timeout for "bad code") [19:27:22] I like the new inspector a lot [19:27:25] ULS can learn from that [19:27:28] A lot [19:27:39] eranroz: Ah, whoops. Sorry about that. [19:27:58] eranroz: Breaking changes happen quite a lot right now; lots of technical debt being paid down. [19:28:29] 3VisualEditor / 3ContentEditable: VisualEditor: Edit summary typed into the article instead of the Save dialog in Firefox - 10https://bugzilla.wikimedia.org/64521#c1 (10James Forrester) 5ASSI>3RESO/DUP On reflection, I'm going to assume that this was caused by bug 65222 which is now resolved and so up-m... [19:28:30] 3VisualEditor / 3ContentEditable: VisualEditor: Automatically place cursor in edit summary field - 10https://bugzilla.wikimedia.org/65222#c3 (10James Forrester) *** Bug 64521 has been marked as a duplicate of this bug. *** [19:28:32] James_F, yea it is OK. better now than later :) [19:30:22] eranroz, I'm a bit confused, sorry if this is a silly question, but I'm looking at the articles in the filter [19:30:32] https://he.wikipedia.org/w/index.php?title=%D7%94%D7%A4%D7%A8%D7%93%D7%AA_%D7%94%D7%93%D7%AA_%D7%9E%D7%94%D7%9E%D7%93%D7%99%D7%A0%D7%94&diff=prev&oldid=15545338 <-- there's no there? [19:31:00] However, it fits the idea of nowiki tags being due to internal links. So i'm confused.. why was this caught in the filter? am I missing something? [19:31:28] mooeypoo, it doesn't look in the diff text but in the new article text (e.g - it may be nowiki that was in the previous version) [19:31:38] gotcha [19:31:50] okay, from this, it seems it's pretty clearly something with internal links [19:33:58] * mooeypoo waits for wikibugs to-- [19:34:01] 3VisualEditor: tags appear when editing on the Hebrew Wiki - 10https://bugzilla.wikimedia.org/66210 (10Moriel Schottlender) 3NEW p:3Unprio s:3normal a:3None tags appear when editing on the Hebrew Wikipedia: Examples: https://he.wikipedia.org/w/index.php?title=%D7%99%D7%A8%D7%95%D7%9F... [19:34:05] \o/ [19:45:12] mooeypoo: :-( [19:46:47] (03PS1) 10Catrope: Fix GroupElement performance [oojs/ui] - 10https://gerrit.wikimedia.org/r/137741 (https://bugzilla.wikimedia.org/65512) [19:48:16] 3VisualEditor / 3ContentEditable: VisualEditor: [Regression wmf7] Cursor is no longer getting automatically placed in the edit summary field; document isn't unfocussed in Firefox - 10https://bugzilla.wikimedia.org/66168#c1 (10James Forrester) 5NEW>3ASSI p:5Unprio>3Highes s:5normal>3major a:3Ed S... [19:48:23] edsanders|away: ^^^ Not good. :-( [19:48:50] James_F: With that --^^ and the other commit, opening the language selector dialog is down to ~300ms, and the lag in search results appearing after you delete the last character in the search field is about ~200ms [19:49:12] RoanKattouw_away: Nice. Thank you. :-) [19:49:15] The latter is still noticeably laggy and I want to improve it, but it was about 12-14 seconds before, so... [19:49:22] RoanKattouw_away: Also, your _away is showing. ;-) [19:49:27] Yeah [19:49:30] I'm about to get lunch [19:51:59] 3VisualEditor / 3MediaWiki integration: VisualEditor: If making a null change, the "Your edit was saved" message appears, even if there were no changes and so it wasn't - 10https://bugzilla.wikimedia.org/51243#c5 (10James Forrester) Confirmed that this is still broken for VisualEditor (and not for wikitext e... [20:00:10] (03PS1) 10Jforrester: Block object descriptions from edit [extensions/TemplateData] (wmf/1.24wmf7) - 10https://gerrit.wikimedia.org/r/137742 [20:00:28] Krinkle: Could you +2 https://gerrit.wikimedia.org/r/#/c/137742/ so I can create the cherry-pick? [20:00:44] (03CR) 10jenkins-bot: [V: 04-1] Block object descriptions from edit [extensions/TemplateData] (wmf/1.24wmf7) - 10https://gerrit.wikimedia.org/r/137742 (owner: 10Jforrester) [20:00:51] Eurgh. Or not. [20:00:56] James_F: That is the cherry pick [20:01:10] Krinkle: The cherry-pick-pull-through in mw-core. [20:01:26] Doesn't SWAT do that for us? [20:01:28] Krinkle: That's the code cherry pick, not the extension cherry pick that SWAT now wants. [20:01:36] We've been asked to do it ourselves. [20:01:54] Hi. So, I am running Mediawiki on a WAMP server on a windows 8.1 machine. I have parsoid running on my local machine. When I run the echo test, it seems to work fine. I installed VisualEditor using the steps I saw, however, with it up and running, when I click on "Edit" nothing seems to happen. No error message, nothing. Thoughts? [20:01:56] Hmm. That V-1 is perplexing. [20:02:26] Jwoods1: Hey. Do you have anything in your browser console log? What browser are you using? [20:02:37] Chrome, let me check the console. [20:02:39] James_F: not really [20:02:47] James_F: grunt was added there very recently, by you. [20:03:03] after wmf7 was cut [20:03:08] (03PS1) 10Krinkle: Add a grunt checker for jshint, jscs, csslint, and banana and pass them [extensions/TemplateData] (wmf/1.24wmf7) - 10https://gerrit.wikimedia.org/r/137744 [20:03:09] Krinkle: Ah, of course. [20:03:13] * James_F is a fool. :-) [20:03:14] (03CR) 10Krinkle: [C: 032] Add a grunt checker for jshint, jscs, csslint, and banana and pass them [extensions/TemplateData] (wmf/1.24wmf7) - 10https://gerrit.wikimedia.org/r/137744 (owner: 10Krinkle) [20:03:29] The console is literally empty [20:03:33] No error messages, nothing. [20:03:37] (03Merged) 10jenkins-bot: Add a grunt checker for jshint, jscs, csslint, and banana and pass them [extensions/TemplateData] (wmf/1.24wmf7) - 10https://gerrit.wikimedia.org/r/137744 (owner: 10Krinkle) [20:04:17] Jwoods1: You have both edit tabs? Special:Version lists VisualEditor? [20:04:42] (03PS2) 10Jforrester: Block object descriptions from edit [extensions/TemplateData] (wmf/1.24wmf7) - 10https://gerrit.wikimedia.org/r/137742 [20:04:49] ok, I refreshed, then clicked, now i get "Failed to load resource: the server responded with a status of 404 (Not Found) " referencing a file "wiki.png" [20:05:02] (03CR) 10Krinkle: [C: 032] Block object descriptions from edit [extensions/TemplateData] (wmf/1.24wmf7) - 10https://gerrit.wikimedia.org/r/137742 (owner: 10Jforrester) [20:05:04] Jwoods1: That won't affect VE. [20:05:06] yes, I also see "Edit:Source" and that allows me to edit as per normal [20:05:12] Jwoods1: Right, OK. [20:05:22] (03Merged) 10jenkins-bot: Block object descriptions from edit [extensions/TemplateData] (wmf/1.24wmf7) - 10https://gerrit.wikimedia.org/r/137742 (owner: 10Jforrester) [20:05:25] Jwoods1: What browser are you using? [20:05:51] And special:versions lists "VisualEditor0.1.0(4c36d6e)" [20:05:55] Chrome [20:06:08] Chrome Version 35.0.1916.114 m [20:06:59] What version of MediaWiki are you running? [20:07:03] 1.23 [20:08:15] Jwoods1: Ah, that would be the issue. 4c36d6e requires MediaWiki 1.24. [20:08:41] Jwoods1: If you look at your MW error logs you should see a notice that VE requires MW 1.24 which isn't loaded. [20:08:52] hmm [20:09:16] honestly, didn't even realize there was a 1.24. 1.23 was just realeased today... Thought I was up to the latest. ha [20:09:36] Jwoods1: You are; 1.24 alpha is what we run and build against. [20:09:44] Jwoods1: 9182fc1958a4436038c2900a2b2d0ec9fc9e41ab should work with 1.23. [20:10:15] I see [20:10:17] Jwoods1: That requires the Parsoid extension's CSS styling, which was moved to MW after 1.23 (hence the need for MW 1.24). [20:13:32] Forgive my ignorance... but what would be the best way to attain 9182fc1958a4436038c2900a2b2d0ec9fc9e41ab? I'm still not incredibly familiar with git [20:14:56] Jwoods1: Ah, sorry; have you got VisualEditor through git or otherwise? [20:15:21] I think the version I have I used git bash for windows and did "git checkout master" [20:15:28] Aha, right. [20:15:42] Jwoods1: In that case you just want to change version, so do `git checkout 9182fc1958a4436038c2900a2b2d0ec9fc9e41ab` and you'll be done. [20:15:49] ok, cool [20:15:55] Really appreciate all the help! [20:16:03] Jwoods1: That plus `git submodule update`. [20:16:15] Jwoods1: No problem. If you have any further problems just shout. :-) [20:16:43] well, one more... [20:16:46] "git checkout 9182fc1958a4436038c2900a2b2d0ec9fc9e41ab" [20:16:48] no quotes [20:16:56] returns "fatal: reference is not a tree [20:16:57] " [20:18:21] Well, isn't that fun? [20:18:38] Do "git remote update" first? [20:19:29] 3VisualEditor / 3Technical Debt: VisualEditor: Replace uses of push.apply with something safe - 10https://bugzilla.wikimedia.org/66206 (10James Forrester) 5NEW>3ASSI p:5Unprio>3Normal s:5normal>3enhanc [20:19:45] aha! that seems to have allowed it [20:21:20] Even with a hard refresh of the page, still nothing when I click edit. (server was restarted afterwards) [20:24:17] Something you dont' want to see next to a bunch of regexes: [20:24:19] // have no idea what this doing [20:24:26] https://gerrit.wikimedia.org/r/#/c/135546/2/includes/page/PageContentBuilder.php [20:26:48] Krinkle: Gosh. Yeah. [20:27:26] Jwoods1: Hmm. [20:27:39] Jwoods1: Anything in the server logs? [20:27:58] "Error: constructor must be a function, cannot be a undefined Error load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20140605T1…:145 [20:27:58] " [20:28:16] RoanKattouw_away: Not sure if you found it before, but I finally found some documentation about javascript engine's arguments list limit [20:28:16] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply [20:28:16] thats in the console now [20:28:25] "But beware: in using apply this way, you run the risk of exceeding the JavaScript engine's argument length limit." [20:30:34] Jwoods1: What happens if you go to /wiki/Main_Page?veaction=edit&debug=true [20:31:22] ... That seems to have worked. [20:32:15] 3VisualEditor / 3ContentEditable: VisualEditor: [Regression wmf7] Cursor is no longer getting automatically placed in the edit summary field; document isn't unfocussed in Firefox - 10https://bugzilla.wikimedia.org/66168#c2 (10Amir E. Aharoni) I can still reproduce it in Firefox and Chrome on mediawiki.org.... [20:32:28] Yeah, it let me make a change, save the page, and on refresh, it is still there [20:32:32] the change is [20:32:58] James_F: That focus problem happens to me now in enwiki and mw.org [20:33:01] but simply clicking on the "Edit" does nothing. [20:33:59] 3VisualEditor / 3ContentEditable: VisualEditor: [Regression wmf7] Cursor is no longer getting automatically placed in the edit summary field; document isn't unfocussed in Firefox - 10https://bugzilla.wikimedia.org/66168#c3 (10James Forrester) Sorry, that comment was half-written about a different bug. Bah Bu... [20:34:17] aharoni: Yes, because Bugzilla helpfully copied half my comment from a different bug. Sorry. :-( [20:34:25] :) [20:34:40] Jwoods1: So it's probably a caching issue that should sort itself out after a few minutes. [20:34:54] Jwoods1: Congratulations for making the first VE edit on that wiki. ;-) [20:35:24] Jwoods1: After a few minutes it shouldn't be necessary to use ?debug=true to kick VE into working (by now even, hopefully). [20:36:12] (03PS3) 10Mooeypoo: Fixing issues in the alignment select in Media Edit dialog [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/137524 (https://bugzilla.wikimedia.org/65916) [20:37:22] TrevorP|Away, ^^ changed, and it works now, though I tested it without your patch to make sure I succeed on strategy rather than on relying on your patch to mask my luck. [20:38:32] Still nothing. How long should I wait before getting concerned its stilll not working [20:39:02] Jwoods1: It entirely depends on your setup (especially with regard to caching). [20:42:46] TrevorParscal, I awesomodelified my fix code. Thanks for the help :) [20:44:04] Jwoods1: But the normal configuration would be around 5–10 minutes. [20:44:18] Jwoods1: It could also be caught by your browser cache. [20:44:50] when i insert things into a page in VE, am I inserting html always? does wikitext ever get sent back to parsoid ajaxilly, or is that only on saving the page> [20:45:51] I did a ctrl+R refresh, so I don't know if thats it [20:46:49] (03PS3) 10Catrope: Allow programmatic selection of options while disabled [oojs/ui] - 10https://gerrit.wikimedia.org/r/137729 (https://bugzilla.wikimedia.org/65916) (owner: 10Trevor Parscal) [20:48:45] * mvolz is confused :( [20:49:11] (03CR) 10Catrope: "Actually, after talking with James, I've become convinced that this is actually the *right* way to do it and changing attributes would act" [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/136599 (https://bugzilla.wikimedia.org/65689) (owner: 10Alex Monk) [20:55:15] yeah, ctrl f5 and its still giving me the error after ~20min [20:57:29] mvolz, VE is an HTML editor [20:58:11] the only wikitext hold-out is currently template parameters [20:58:15] ok. yes [20:58:23] that's what I was wondering. [20:58:24] but that'll go away very soon as well [20:58:38] we have the support for HTML params already in Parsoid [20:58:45] it's still switched off in production [20:58:54] (the production part) [20:59:12] we might or might not already support HTML params produced by VE [20:59:23] so then, for example, a citation template would be html with the params annotated? [20:59:24] depends on whether the option switches that off or not [20:59:40] transclusions are always HTML [20:59:59] the only bit of wikitext is currently inside the data-mw JSON attribute [21:00:23] very helpful, thank you [21:01:21] although it makes the shortcut I was thinking of taking impossible :) [21:01:26] but cleaner in the end [21:02:45] 3VisualEditor / 3ContentEditable: VisualEditor: Clicking on Edit link beside a section heading does not take user to that specific heading rather takes to the beginning of the article - 10https://bugzilla.wikimedia.org/65928 (10Roan Kattouw) a:3Ed Sanders [21:05:57] still doesn't do anything unless i add the &debug=true at the end of the URL... Thoughts? [21:06:45] 3VisualEditor / 3Editing Tools: VisualEditor: Link inspector should not send external link urls to the API for suggestions (because it won't be valuable) - 10https://bugzilla.wikimedia.org/66135 (10Roan Kattouw) a:3Alex Monk [21:07:00] 3VisualEditor / 3Editing Tools: VisualEditor: Link inspector should catch 400 errors from sending overly-long queries to the API - 10https://bugzilla.wikimedia.org/66139 (10Roan Kattouw) a:3Alex Monk [21:10:16] 3VisualEditor / 3Language: VisualEditor: Category autocompletion is broken in RTL wikis - 10https://bugzilla.wikimedia.org/65483 (10Roan Kattouw) 5NEW>3ASSI p:5Unprio>3High a:3Moriel Schottlender [21:12:59] 3VisualEditor / 3ContentEditable: VisualEditor: Clicking on Edit link beside a section heading does not take user to that specific heading rather takes to the beginning of the article - 10https://bugzilla.wikimedia.org/65928#c1 (10Roan Kattouw) It seems like the dm.Surface's selection is getting set to the b... [21:17:04] Error: constructor must be a function, cannot be a undefined Error {stack: (...), message: "constructor must be a function, cannot be a undefined"} load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20140605T1…:145logload.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20140605T1…:145runScriptload.php?debug=false&lang=en&modules=jquery%2Cmedi [21:17:59] 3VisualEditor / 3Editing Tools: VisualEditor: New references added after existing re-used references () replacing rather than proceeding them - 10https://bugzilla.wikimedia.org/54944#c4 (10Roan Kattouw) 5ASSI>3RESO/WOR Closing unless and until this is shown to still be a problem. [21:22:30] 3VisualEditor / 3ContentEditable: VisualEditor: Select-all and typing makes document significantly out-of-sync - 10https://bugzilla.wikimedia.org/52171#c3 (10Roan Kattouw) 5ASSI>3RESO/FIX a:5David Chan>3Ed Sanders Was fixed by something Ed did a while ago. [21:27:47] mvolz, here's the DOM spec btw: https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Transclusion_content [21:55:10] (03PS3) 10Trevor Parscal: Use ContextWidget instead of toolbar inside context menu [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/137191 [21:55:13] gwicke: tnx [21:56:52] (03PS2) 10Trevor Parscal: Update VE core to include ContextWidget changes [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/137194 [21:57:24] (03CR) 10jenkins-bot: [V: 04-1] Update VE core to include ContextWidget changes [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/137194 (owner: 10Trevor Parscal) [21:58:15] mvolz: Also, when you're inserting/changing things in VE, you're not actually dealing with the HTML directly, you're dealing with our data model [21:58:17] Which is different still [21:58:18] (03PS4) 10Trevor Parscal: Use ContextWidget instead of toolbar inside context menu [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/137191 [22:00:02] 3MediaWiki extensions / 3TemplateData: TemplateData: Stable version of the GUI editor (tracking) - 10https://bugzilla.wikimedia.org/65543#c1 (10James Forrester) 5ASSI>3RESO/FIX Deeming this "fixed" (but lots of improvements to come to be tracked in bug 65544). [22:00:22] mvolz: At some point I should give you a 4-hour introduction to all things VE, but for now if you could tell me what you're trying to do I can give more targeted advice [22:01:02] i.e. in ve.dm.MWReferenceModel.js ? [22:01:58] well in short I have JSON that I need to make into a reference :) [22:02:02] OK [22:02:13] A reference, or a citation template? [22:02:39] Like, will the resulting wikitext be Text here or will it be {{cite book|author=Aldous Huxley|title=Brave New World}} ? [22:03:02] uh, both. but let's do citation for now [22:03:06] L( [22:03:07] :) [22:03:20] although I guess ref is the simpler case [22:04:12] It is, yeah [22:04:15] A bit [22:04:19] They're very different [22:04:31] Ahm, OK so for the citation case you want TransclusionModel [22:04:58] I don't know exactly how to work with it offhand, but with reading code+docs and some help from Trevor you should be able to figure it out [22:05:38] Unfortunately, 1) the existing usage of TransclusionModel in TransclusionDialog is pretty complicated and not really conducive to learning from, and 2) Trevor and I are in a meeting for the next hour [22:06:08] Yeah I've been basically doing 1) for the last few days. there are a lot of layers of abstraction :) [22:07:21] mvolz: Shall we schedule a chat between you and (me and/or Trevor) to walk through this? [22:07:27] Like, tomorrow after the standup or something? [22:07:38] (Or whatever time works for you) [22:07:43] RoanKattouw: that would be great [22:07:44] (And when I say chat I mean Google Hangout) [22:08:18] Yeah that would probably work [22:08:43] Thanks! [22:08:50] We can do pretty much any time after 10:30 PDT (18:30 BST) [22:09:17] let's tentatively say after hangout? [22:09:20] OK cool [22:20:38] (03PS2) 10Catrope: Fix GroupElement performance [oojs/ui] - 10https://gerrit.wikimedia.org/r/137741 (https://bugzilla.wikimedia.org/65512) [22:23:17] 3VisualEditor / 3Editing Tools: VisualEditor: TypeError:this.documentView is null appearing after saving an edit and reopening the VE again - 10https://bugzilla.wikimedia.org/66222 (10ryasmeen) 3NEW p:3Unprio s:3normal a:3None Created attachment 15576 --> https://bugzilla.wikimedia.org/attachment.c... [22:23:29] 3VisualEditor / 3Editing Tools: VisualEditor: TypeError:this.documentView is null appearing after saving an edit and reopening the VE again, also cannot switch to edit source mode after that - 10https://bugzilla.wikimedia.org/66222 (10ryasmeen) [22:23:48] RoanKattouw: https://bugzilla.wikimedia.org/show_bug.cgi?id=66222 [22:24:04] Thanks ryasmeen [22:25:30] 3VisualEditor / 3Editing Tools: VisualEditor: TypeError:this.documentView is null appearing after saving an edit and then reopening the VE again, also cannot switch to edit source mode after that - 10https://bugzilla.wikimedia.org/66222 (10ryasmeen) [22:26:31] 3VisualEditor / 3Editing Tools: VisualEditor: TypeError:this.documentView is null appearing after saving an edit and reopening the VE again, also cannot switch to edit source mode after that - 10https://bugzilla.wikimedia.org/66222#c1 (10Roan Kattouw) 5NEW>3ASSI p:5Unprio>3High a:3Ed Sanders This s... [22:26:59] 3VisualEditor / 3Editing Tools: VisualEditor: TypeError:this.documentView is null appearing after saving an edit and then reopening the VE again, also cannot switch to edit source mode after that - 10https://bugzilla.wikimedia.org/66222 (10Roan Kattouw) [22:27:59] (03CR) 10Esanders: Grunt: Create a single file stand-alone distribution for demos etc. (031 comment) [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/137367 (https://bugzilla.wikimedia.org/66117) (owner: 10Jforrester) [22:29:00] (03CR) 10Jforrester: Grunt: Create a single file stand-alone distribution for demos etc. (031 comment) [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/137367 (https://bugzilla.wikimedia.org/66117) (owner: 10Jforrester) [22:29:50] (03PS3) 10Catrope: Fix GroupElement performance [oojs/ui] - 10https://gerrit.wikimedia.org/r/137741 (https://bugzilla.wikimedia.org/65512) [22:43:44] 3VisualEditor / 3Editing Tools: VisualEditor: Language selector from Language inspector takes long time (~15 secs) to load - 10https://bugzilla.wikimedia.org/65512#c6 (10Roan Kattouw) These two patches get it down to 780ms on my computer. This breaks down in about 520ms for opening the dialog (including cons... [22:44:00] 3VisualEditor / 3Editing Tools: VisualEditor: Language selector from Language inspector takes long time (~15 secs) to load - 10https://bugzilla.wikimedia.org/65512 (10Roan Kattouw) a:5Ed Sanders>3Roan Kattouw [23:12:29] 3VisualEditor / 3Editing Tools: VisualEditor: Deleting the parameter of any template or the template itself, scrolls the focus up to the top of the transclusion dialog - 10https://bugzilla.wikimedia.org/62420 (10WhatamIdoing) [23:12:29] 3VisualEditor / 3ContentEditable: VisualEditor: Viewport scrolls to top after drag-and-dropping image - 10https://bugzilla.wikimedia.org/65882 (10WhatamIdoing) [23:16:30] 3VisualEditor / 3Editing Tools: VisualEditor: TypeError:this.documentView is null appearing after saving an edit and then reopening the VE again, also cannot switch to edit source mode after that - 10https://bugzilla.wikimedia.org/66222#c2 (10ryasmeen) Also getting this error now: Error: Range error: Range... [23:20:29] 3VisualEditor / 3Editing Tools: VisualEditor: Language selector from Language inspector takes long time (~15 secs) to load - 10https://bugzilla.wikimedia.org/65512 (10James Forrester) [23:22:59] 3VisualEditor / 3Editing Tools: VisualEditor: [Regression wmf8] TypeError:this.documentView is null appearing after saving an edit and then reopening the VE again, also cannot switch to edit source mode after that in Firefox - 10https://bugzilla.wikimedia.org/66222 (10James Forrester) s:5normal>3critic [23:28:31] 3VisualEditor: VisualEditor: Some images not displayed in the correct place - 10https://bugzilla.wikimedia.org/66228 (10WhatamIdoing) 3NEW p:3Unprio s:3normal a:3None Created attachment 15578 --> https://bugzilla.wikimedia.org/attachment.cgi?id=15578&action=edit Where the image was displayed before... [23:29:14] 3VisualEditor: VisualEditor: Some images not displayed in the correct place - 10https://bugzilla.wikimedia.org/66228#c1 (10WhatamIdoing) Created attachment 15579 --> https://bugzilla.wikimedia.org/attachment.cgi?id=15579&action=edit Where the image was (correctly) displayed after saving [23:30:29] 3VisualEditor: VisualEditor: Some images not displayed in the correct place - 10https://bugzilla.wikimedia.org/66228 (10WhatamIdoing) [23:30:43] 3VisualEditor / 3Editing Tools: VisualEditor: Support media (tracking) - 10https://bugzilla.wikimedia.org/37870 (10WhatamIdoing) [23:34:18] James_F, https://bugzilla.wikimedia.org/show_bug.cgi?id=66135 seems to work for me... [23:35:07] Krenair: Did we change something? It was fatal-ing for me yesterday. [23:35:40] As in, I can make a link with that given URL as the target [23:37:14] James_F, can you still replicate that isuse? [23:37:21] Krenair: Yes. Where are you testing? [23:37:33] my local dev wiki [23:38:05] Krenair: Ah. It's fatal-ing on MW.org and en.wikipedia.beta.wmflabs.org for me. [23:38:30] Krenair: Hmm. But not on enwiki for some reason? [23:38:42] James_F, are we checking the same thing? [23:39:07] Krenair: Creating a link to the example link in https://bugzilla.wikimedia.org/show_bug.cgi?id=66135#c0 and watching it fatal? [23:39:25] I'm checking that I can add that given graphite URL link as the target of a link [23:39:29] Yes. [23:39:31] And it appears to be fine [23:39:40] Have you tried on MW.org? [23:39:42] latest master [23:40:20] I can replicate the issue on mediawiki.org [23:41:02] Krenair: Can you also not replicate it on enwiki like me? [23:41:30] Krenair: Very odd; must be a config issue or something? (It was a problem yesterday on MW.org when that was running wmf7, which is now what enwiki is running). [23:41:48] James_F, confirmed enwiki seems fine [23:41:57] * James_F blames pixies. [23:43:14] Would enwiki have https://gerrit.wikimedia.org/r/#/c/134632/4 ? [23:43:26] Krenair: Yes. [23:43:42] * James_F hard-reloads just to check. [23:44:06] Nope, still works. [23:45:59] 3VisualEditor / 3Editing Tools: VisualEditor: Link inspector should not send external link urls to the API for suggestions (because it won't be valuable) - 10https://bugzilla.wikimedia.org/66135#c4 (10Alex Monk) I can replicate this on mediawiki.org but not en.wikipedia.org or my local dev wiki. [23:47:59] 3MediaWiki extensions / 3TemplateData: TemplateData: TemplateData is not available to VisualEditor if the template is a redirect - 10https://bugzilla.wikimedia.org/50964#c13 (10Erik Moeller) Confirmed fixed in 1.24wmf7, yay :-) [23:49:00] 3VisualEditor / 3ContentEditable: VisualEditor: Would be nice if copying/pasting kept working after a fatal - 10https://bugzilla.wikimedia.org/66229 (10James Forrester) p:5Unprio>3High [23:49:01] 3VisualEditor / 3ContentEditable: VisualEditor: Would be nice if copying/pasting kept working after a fatal - 10https://bugzilla.wikimedia.org/66229 (10James Forrester) 3ASSI p:3Unprio s:3enhanc a:3None Obviously it'd also be nice if fatals didn't happen, but I have less faith that that is possible i...