/srv/irclogs.ubuntu.com/2013/01/30/#launchpad-dev.txt

=== almaisan-away is now known as al-maisan
wallyworldStevenK: any luck?00:04
=== al-maisan is now known as almaisan-away
StevenKFighting with Chromium00:05
StevenKBecause Firebug hates our test pages00:06
wallyworld:-(00:06
StevenKwallyworld: form_node.one('#tag-input:focus');00:10
StevenKSigh00:11
StevenKwallyworld: form_node.one('#tag-input:focus'); == null00:11
wallyworldStevenK: so perhaps something else is being assigned focus00:11
StevenKOr the test is braindead00:11
wallyworldStevenK: you could attach an onblur event handler to the tag-input node and log something so that you can see if focus is being lost00:11
wallyworldor the test ia dead, yes00:12
wallyworldat least activeElement and :focus are behaving consistently00:12
wallyworldStevenK: i haven't the code handy, but perhaps autocomplete render is messing with the focus00:13
StevenKIt could have focus rather than the text box00:13
StevenKI guess00:13
StevenKIf :focus works, I just have to Y.Assert.isNotNull();  -- I hope that, or something like it exists00:14
wallyworldyes, it exists, can't recall the exact syntax00:15
wallyworldmy brain is rotten00:15
StevenKY.one('.bug-tag-complete:focus') is also null00:21
StevenKY.one(':focus'); is also null00:22
=== slank is now known as slank_away
StevenKwallyworld: So I'm not sure if :focus works either00:29
wallyworldhmmm00:30
wallyworldcan you fire up an instance, and click on an input field and then in firebug type a css expression to see if it selects the field you just clicked?00:31
wallyworldah won't work00:32
wallyworldsince clicking out of the input takes away focus00:32
StevenKHmmm, I think the <form> is activeElement now00:43
StevenKWith a id of 'tag-input'00:43
StevenKThat might even be success00:43
StevenKExpected: [object HTMLInputElement] (object)00:44
StevenKActual: INPUT#tag-input yui_3_5_1_1_1359506644965_424 (object)00:44
StevenKBut from my reading in the debugger, the _yuid's are the same00:45
wallyworldActual aboce is correct00:45
StevenKwallyworld: Expected is document.activeElement, tag_input is the actual00:46
wallyworldi think the assert is comparing the DOM node wityh a YUI node perhaps00:46
StevenKRight00:46
wallyworldso you need to "convert" the document,activeElement to the YUI node00:46
wallyworldthere's a YUI.DOM method for that00:46
wallyworldfrom memory00:47
StevenK% bzr grep YUI.DOM | wc -l00:48
StevenK000:48
StevenK-i helps not00:49
wallyworldlet me check00:49
wgrantDon't you just give it to the YUI.Node constructor?00:49
wgrantIIRC00:49
wallyworldStevenK: Y.one() accepts a DOM element from memory00:50
wallyworldand returns the YUI node00:50
StevenKLet's see00:50
StevenKNo failures!00:51
wallyworld\o/00:52
StevenKNoCanonicalUrl: No url for u'http://blueprints.launchpad.dev/product-name-100004' because u'http://blueprints.launchpad.dev/product-name-100004' broke the chain.00:52
StevenKcanonical_url, I hate you00:53
wgrantThat's a string00:53
wgrantYou can't take the URL of a string00:53
StevenKurl = canonical_url(product, rootsite='blueprints')00:53
wgrantproduct is the URL00:53
wgrantNot a product00:53
StevenKproduct = self.factory.makeProduct()00:53
wgrantI suspect00:53
wgrantYou sure it's failing on that line?00:53
StevenKOh, god damn it, getViewBrowser00:54
StevenKI hate you, please die in a fire00:54
wgrantStevenK: Looking01:19
wgrantStevenK: Why'd you remove the first assert?01:20
wgrantAnd why do you get form_node, rather than going straight to #tag-input?01:20
StevenKwgrant: Compare line 19 and 2201:21
wgrantAh, true01:21
StevenKI can go straight to #tag-input, but I wanted to be sure it was the unhidden form's node01:21
wgrantIf there's a duplicate ID that has focus then there are probably bigger problems01:22
wgrant'cause both of those requirements are problems01:22
StevenKwgrant: http://pastebin.ubuntu.com/1587567/01:23
wgrantStevenK: You can probably inline that now01:23
StevenKwgrant: http://pastebin.ubuntu.com/1587573/01:25
wgrantMuch better.01:25
StevenKThe line is too long with Y.one(document.activeElement), so that can stay outside as the var01:25
StevenKwgrant: The MP has updated01:29
wgrantStevenK: r=me, thanks01:30
* StevenK stabs himsefl01:35
StevenK*himself01:36
wgrantWhat did you do?01:36
StevenKNo wonder my query count is tiny, I'm not invalidating the cache01:36
StevenKHmmm, that doesn't help01:39
StevenKAnd I switch to c_i_v() and the query count drops to 17. WTF.03:14
wgrantStevenK: Did you actually render the view?03:15
StevenKview() should do that, no?03:25
wgrantYes03:25
StevenKOh, HAH03:31
StevenKofficial_blueprints03:31
StevenKSTAB03:31
wgrantHeh03:31
StevenKsudo dpkg -P hayfever03:34
StevenKHm, blueprints.l.d/product is only showing 503:37
wgrantRight, batch size on launchpad.dev is 5 by default03:37
StevenKI think my test is slighly broken03:41
StevenKThe query list shows an INSERT INTO specification03:42
* StevenK peers at the oops attached to 110826103:43
StevenKThe sreg_info we got back was None?03:44
wgrantOr not present at all, more likely03:44
wgrantWhich possibly means that the user tried to authenticate with an SSO account that had no LP account, or somehow convince SSO not to send the info03:44
StevenKwgrant: http://pastebin.ubuntu.com/1587769/ the rest of the changes (ISpecification.linked_branches cachedproperty and preloading are shelved)03:46
wgrantStevenK: You need to check that the query count is constant, because a query count of 35 for 5 specs could easily include 3 queries for each spec.06:26
wgrantso eg. create one, check query count, create another 4, check query count is still the same06:27
* StevenK peers at this test06:29
StevenKI think getViewBrowser screws with the interaction06:29
StevenKwgrant: http://pastebin.ubuntu.com/1588354/06:34
wgrantStevenK: That looks more test-like, though I'm not sure about having that query count hardcoded in a generically-named method :)06:37
StevenKwgrant: http://pastebin.ubuntu.com/1588558/07:13
wgrantStevenK: Have you considered BrowsesWithQueryLimit?07:19
wgrantThat might even handle invalidation for you07:19
StevenKDoesn't look like it handles invalidation07:23
=== almaisan-away is now known as al-maisan
adeuringgood morning08:55
=== yofel_ is now known as yofel
=== matsubara-afk is now known as matsubara
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
=== dpm is now known as dpm-laptop
=== slank_away is now known as slank
=== slank is now known as slank_away
czajkowskimgz: may want to add your details to https://wiki.ubuntu.com/Fosdem/2013  and poke Jelmer :)15:35
mgzah, hadn't realised there was a wiki.ubuntu.com page, I put 'em on the canonical one15:36
czajkowskinods15:36
czajkowskicommunity one is public :)15:36
czajkowskinow to poke the canonical folks to add their details there15:36
mgzglobal poke'd15:38
czajkowskicheers15:39
czajkowskimgz: http://www.drugopera.be/15:39
czajkowskivery close to delierium  then for friday night beers15:39
mgzthat is the stupidest name...15:41
czajkowskiindeed15:41
czajkowskibut is within the perdiem also15:41
czajkowskieasily15:41
czajkowskimgz: oh this also means I finally get to meet jelmer15:45
mgzwait, you've never met 'im?15:45
czajkowskiNO!15:45
czajkowskiI joined the month  after the sprint15:45
czajkowski:(15:45
mgzhe's coming to london immediately after and settling in :)15:48
czajkowskiaye15:49
czajkowskihas he found a place to live?15:49
mgzhas a place arranged for the first month or so and will start looking for something longer term15:49
czajkowskicool15:50
czajkowskia weekend of beer waffles chocolate and geeks :D15:50
czajkowskicannot wait15:50
mgzdon't eat the geeks!15:55
cjwatsonwgrant,StevenK: any chance of a review of https://code.launchpad.net/~cjwatson/launchpad/bpph-phase/+merge/144154 ?16:05
=== matsubara is now known as matsubara-lunch
=== dpm-laptop is now known as dpm
=== matsubara is now known as matsubara-afk
StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/precache-specification-linked-branches/+merge/145544 has updated23:37
wgrantStevenK: You still need the explicit invalidate?23:39
wgrantAlso, the "specs" list is not useful at all23:39
wgrantYou only read from it to get the store to invalidate, and you can get that from product just as easily23:39
StevenKwgrant: The test passes without the invalidate23:42
StevenKBut I'm still not convinced it invalidates the store23:42
wgrantLooks like you're right23:43
StevenKI could make it do so, but that may have far reaching implications23:44
wgrantAnyway, I guess that means you should eliminate the specs var and I will be happy :)23:46
StevenKI've already done so: http://pastebin.ubuntu.com/1591256/23:47
wgrantMuch better :)23:47
StevenKwgrant: I'm happy to make BrowsesWithQueryLimit invalidate the store in a seperate branch and toss it at ec223:49
wgrantStevenK: That might be worth a try23:52
StevenKwgrant: The MP is updated23:54
wgrantStevenK: r=me23:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!