[13:26] bac benji danilos: call RSN [13:27] bac benji, should I bother trying to run lp2kanban? [13:27] no [13:27] gary_poster, ack [13:27] ok [13:36] gary_poster, btw, can I take gmb's slot for the call perhaps? [13:36] danilos, of course [13:36] gary_poster, cool, and when is that? :) [13:36] in 24mins? [13:36] :-) in 54 min [13:36] ah, ok, sounds good, thanks again [13:37] np [13:39] gary_poster, btw, I wonder if you remember this: how does one create a view with a logged in user (meaning self.user is set) for testing? all the stuff I tried ("with person_logged_in()", "LaunchpadTestRequest().setPrincipal()" and even "login(email)" have failed for me) [13:42] danilos: a combo of login() and create_initialized_view(..., principal=) should work [13:44] that sounds good to me, danilos. [13:45] bac, thanks, I was hoping to use the view class instead of the view name, but I am fine with this (I don't want to reinvent create_view) [13:50] * gary_poster needs to take kids to school today. will step away RSN, back about 10 or 15 min later [14:14] * gary_poster had to make funny faces at baby also [14:16] heh [14:17] :) [14:18] still no luck getting self.user to be set in my view :/ not sure what am I doing wrong, but I can't see what am I doing different from some other view tests :/ === Ursula is now known as Ursinha [14:27] danilos, can your force it somehow, by manipulating the request or the bag or something? [14:28] I know that's ugly, and it ought to work, but if you can't figure it out soon, maybe that's reaonable (or maybe doingthat would help you iunderstand what's going wrong?) [14:28] (it ought to work == what you are doing now ought to work) [14:28] gary_poster, I tried that as well, didn't get far, so I am probably missing something obvious [14:28] gotcha [14:29] dunno :-/ I could look at it with you if you wanted, but I don't have super high confidence that I'd see something you didn't [14:30] danilos, I'm ready when you are. call me; no rush. [14:32] gary_poster, calling [14:41] bac, hi, I am still kind of stuck, do you think you could spare a few minutes to look and maybe figure out something obvious that I am doing wrong? [14:41] danilos: sure, paste it? [14:42] bac, https://pastebin.canonical.com/48350/ [14:42] bac, that's a test, and when it hits view.subscriber_data_js, self.user is not defined [14:43] benji, so you know, flacoste has given you a full 45 min for your coffeescript presentation, No pressure. ;-) https://wiki.canonical.com/Launchpad/Sprints/Thunderdome2011/Agenda#Call%20for%20presentations [14:43] bac, full branch at lp:~danilo/launchpad/bug-772754-other-subscribers-loading [14:43] I also said we might want to talk about lp2kanban [14:43] heh [14:43] danilos: did you try passing the principal to c_i_v? [14:43] bac, yeah, nothing changes [14:46] bac, well, not entirely nothing, self.request.principal is then defined, but self.user is still None [14:48] gary_poster: how much of the thunderdome will be spent with the platform team? will we go to their plenaries? or will we just be in the same hotel? [14:49] bac, that's a great question. My assumption was that we simply were sharing hotels, but that seems unlikely now that you've asked. Care to ask flacoste and report back to us? [14:50] i would if he were around... [14:50] i will next time i see him [14:51] ok [14:59] bac, any ideas of what else I could try? [14:59] danilos: i'm looking [15:00] is self.user one of those launchbag things? [15:06] gary_poster, I don't know, haven't really dug that much [15:06] k [15:07] and I just created a minimal view and test using exactly the same logic, and it has self.user set :( [15:09] danilos: yeah, look at test_data_person_subscription_user_excluded ... it works and is pretty darned minimal [15:10] bac, that's a test I am creating, but it doesn't work for me [15:10] bac, does it work for you? [15:11] danilos: sorry, paste error. i meant test_unsubscribe_link_appears_for_user [15:16] danilos: i think the problem is the assert is outside of the 'with person_logged_in' context [15:17] so at that point no one is logged in. even though the view was created with a logged in users there isn't one when you evaluate the property [15:17] bac, yeah, so it seems to me as well, though I am pretty sure I've tried that as well [15:17] your test still fails but for a different reason i think [15:19] bac, yeah, because I haven't implemented the action yet, thanks, that is it, with all the confusion I wasn't even sure what I tried and when [15:19] np [15:22] bac, very, very much thankful! really appreciate the time you took to look into it [15:23] danilos: sorry i didn't spot it right away. those subtle things are hard [15:37] gary_poster, fwiw, my "full" branch is up at https://code.launchpad.net/~danilo/launchpad/bug-772754-other-subscribers-remove-cruft; still not ready [15:37] and I've got to run now, talk to you tomorrow all [15:37] danilos, cool. I'll keep on with other bugs then [15:37] :-) [15:37] bye [15:48] * benji watches his laptop go down in flames as Unity segfaults. [15:48] :-/ [15:52] gary_poster: just so you'll know, i'm spending considerable time this morning trying to QA bug 789383 [15:52] <_mup_> Bug #789383: Oops calling findSimilarBugs api anonymously < https://launchpad.net/bugs/789383 > [15:52] bac, ok, thanks for heads up [15:53] it works locally but on qastaging it looks like it is redirectly to +login and responding with 503s [15:53] s/redirectly/redirecting [15:53] :-/ [16:02] chr... [16:06] ok, I have to reboot again [16:07] * benji hopes Unity feels better now. === Ursinha is now known as Ursinha-lunch [18:43] gary_poster: i'm seeing bunches of timeouts on qastaging for bug queries, e.g. https://lp-oops.canonical.com/oops.py/?oopsid=OOPS-1986QASTAGING120 [18:44] bac, could it be the critical bug summary thing lifeless talked about on the list? [18:45] gary_poster: i've just read the incident report and it is unclear [18:45] bac, bug 794802 [18:45] <_mup_> Bug #794802: many bug activities timing out due to contention on bugsummary < https://launchpad.net/bugs/794802 > [18:45] * gary_poster looks an oops [18:45] at [18:47] bac, agreed that it is unclear, but that 9 second query in the OOPS you gave looks pretty innocuous. contention makes a lot of sense. [18:47] gary_poster: so what's one to do? [18:48] gary_poster: qa-ok even though i can't prove it? qa-bad even though i don't think it is my branch? [18:48] oh [18:48] lie and mark it qa-untestable? [18:48] qa-punt [18:48] heh [18:51] bac, if you think it will block release of stub's fix for that bug, I say mark it qa-ok and add a comment about the status (you believe it to be fine, and are clearing it so that the critical fix can be deployed). Alternatively in that situation, wait and ask lifeless what he wants. If you don't think it will block, then just comment about the status and leave the qa tag as is. [18:51] gary_poster: by definition it is going to block unless i do a rollback, no? [18:52] bac, if it is on devel then yes [18:52] (db-devel no) [18:52] gary_poster: i will mark it qa-ok and be ready for the consequences [18:52] ok [18:52] yes, we're on devel [18:52] k [19:02] * bac returns to kanban [19:06] bac, I am writing a reusable test fixture to help me temporarily replace one view with another, within the component registry. I'm doing this so I can override a particular method on the view, in this case so that I can force an exception to be raised. An alternative approach would have been to make a monkey patch, but I was trying not to do that. Am I reinventing a wheel--do we have a pattern for this that you [19:07] i've never seen such a thing [19:07] gary_poster: sounds cool [19:07] ok cool thanks [19:07] but you know sinzui has the encyclopedic recall of all things [19:30] bac, in five minutes OK? [19:30] perfect [19:30] * bac tea [19:31] cool [19:35] * gary_poster calls without warning [19:36] bac, oops? [19:37] gary_poster: dunno, skype was reporting my network speed is poor [19:37] it lies [19:37] :-) === Ursinha-lunch is now known as Ursinha [20:43] apparently unit any chromium don't mix; I'll be right back [20:45] * benji gives up on Unity and tries to figure out how to turn it off. === benji is now known as Guest88900 [20:49] :-/ [20:49] aaand we're back [20:49] this is not giving me inspiration to run and try installing Ubuntu on metal again. :-/ === benji___ is now known as benji [20:51] It's a shame too, because I kind of like Unity; I definately like the type-an-app-name launcher thing, not so much the list of icons on the right, I never use that [20:51] I also like the merging of the title bar and menu. [20:51] yeah, I like app-name launchers too [20:52] * benji tries to remember what the heck he was doing. [20:52] getting ready for call in 8 min! :-) [20:52] heh [20:56] * gary_poster goes for glass of water [20:59] hi benji -- very quick question of urllib2 vs httplib2 for lp2kanban [21:00] i don't see an easy way to turn on debugging for urllib2 like httplib2.debuglevel=1 [21:01] bac: I /think/ there is a way, but I don't think it's documented; I wouldn't object to using httplib2 though, urllib2 is evil incarnate [21:01] heh [21:01] benji: ok. [21:02] * benji runs to get a Dr Pepper [21:25] gary_poster: http://blog.ssokolow.com/archives/2011/05/07/a-python-programmers-first-impression-of-coffeescript/ [21:26] eldest = 24 > 21 ? "Liz" : "Ike"; [21:26] http://jashkenas.github.com/coffee-script/#operators [21:28] gary_poster: zip = lottery.drawWinner?().address?.zipcode [21:40] gary_poster: https://gist.github.com/870838 [21:54] if (typeof elvis !== "undefined" && elvis !== null) { [21:54] alert("I knew it!"); [21:54] } [21:55] alert "I knew it!" if elvis? [21:57] kids = [21:57] brother: [21:57] name: "Max" [21:57] age: 11 [21:57] sister: [21:57] name: "Ida" [21:57] age: 9 [22:00] futurists = [22:00] sculptor: "Umberto Boccioni" [22:00] painter: "Vladimir Burliuk" [22:00] poet: [22:00] name: "F.T. Marinetti" [22:00] address: [ [22:00] "Via Roma 42R" [22:00] "Bellagio, Italy 22021" [22:00] ] [22:07] fixture = ZopeViewReplacementFixture('+login', ILaunchpadApplication) [22:07] class OpenIDLoginThatFailsDiscovery(fixture.original): [22:07] def _getConsumer(self): [22:07] return OpenIDConsumerThatFailsDiscovery() [22:07] fixture.replacement = OpenIDLoginThatFailsDiscovery [22:07] self.useFixture(fixture) [22:22] http://cappuccino.org/learn/demos/ [22:22] http://280slides.com/Editor/ [22:36] benji, reply from leankitkanban: [22:36] We currently do not have any throttling setup but we are developing a policy and will be implementing some safeguards against abuse of our API. We are currently working with a customer that, most likely inadvertently, was causing us a lot of issues the past two days with a huge number of expensive API calls per second. [22:36] As for your issue, we haven't heard about this problem from the customers that are using our API but that doesn't necessarily mean they didn't experience the problem. If you like, you can let us know when you are testing something and we can monitor our logs to see if we see anything suspicious. [22:36] bac ^^ [22:37] benji, gary_poster: i have converted to use httplib2 and i am not getting errors from leankit any more [22:37] i am not claiming that is causal [22:37] but it is good [22:38] bac, cool either way though :-) [22:38] i'm putting a little bow on it and about to push [22:38] awesome [22:47] gary_poster: it may be overkill but was easy so i did it -- output from running the script: https://pastebin.canonical.com/48377/ [22:47] and usage [22:49] it shows we need to be more discriminating in the bugs we pull from LP, perhaps. === Ursinha is now known as Ursula [23:09] bac, heh [23:09] yeah [23:09] night [23:09] bye === Ursula is now known as Ursinha