[05:05] lifeless: ping [05:06] mwhudson: ping [05:06] https://code.edge.launchpad.net/~thumper/launchpad/better-errors-for-translate-path/+merge/38178 [05:06] jtv: ping? [05:06] thumper: pong! [05:07] need a review? [05:07] please [05:07] it is very simple [05:07] I know, I've done it before thanks [05:07] * thumper pokes jtv [05:07] * jtv does not like that [05:07] * thumper pokes jtv [05:07] * thumper sniggers [05:07] Good thing I just cleaned out the pigsty in the kitchen and got the coffee brewing. I'm in a good mood. [05:08] good [05:09] Yes, good. [05:09] Wow, that's a long opening sentence in the MP description. [05:17] thumper: in test_translatePath_branch_alias_no_linked_sourcepackage_branch, isn't the path you're constructing a sourcepackage path? The comment says it's a distroseriessourcepackage. [05:17] Sorry, I got the terminology all wrong there. [05:17] technically [05:17] I mean: aren't you constructing a distribution source package path? [05:17] yes [05:17] I am [05:17] thumper: I've rc'd it for you [05:17] A distroseries source package is actually a source package, isn't it? [05:18] lifeless: ta [05:18] thumper: but please let edwin know directly. [05:18] hi lifeless [05:18] hi jtv [05:18] jtv: not really [05:18] jtv: but the linking is at the source package leve [05:18] l [05:18] a branch linked for a distribution source package is the source package linked to the active distro series [05:20] I see [05:20] thumper: another thing… I can't make head or tails of the comment in test_translatePath_branch_alias_invalid_product_name [05:21] * thumper hangs head [05:21] sorry [05:21] forgot about finishing that [05:22] Ha! Got you. [05:23] finished off and pushed === jtv is now known as jtv-afk === jtv-afk is now known as jtv === jtv is now known as jtv-eat === jtv-eat is now known as jtv === StevenK changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [StevenK*3] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [10:03] hi jtv, would you have time for a translations review? [10:04] bac: I would [10:04] fork it over [10:04] jtv: thanks! https://code.edge.launchpad.net/~bac/launchpad/bug-652280-pg-trans/+merge/38195 [10:04] bac: how's the heat? [10:04] jtv: 84F ... nothing to complain about [10:04] jtv: the smoke and smog -- those i'll complain about [10:08] only 29°C? wow, nice & cool [10:08] or as they would say here, collllddd! [10:08] It's also about 302 Kelvin [10:08] apparently [10:10] bac: with all the unexplained parameters to create_initialized_view that are just passed on to create_view, I'm beginning to wonder if it wouldn't make more sense to accept and pass on **kwargs. [10:10] (Had somebody done that before, you wouldn't have needed to touch it now) [10:11] jtv: actually i had to do it in another branch too that is stalled... [10:11] bac: so what say you? [10:12] jtv: sure, i'll do that [10:12] Excellent. [10:13] jtv: if you have any insight into my other problem i'd like to chat about it. it is resolved with a fine work-around but i'm bugged that getting and rendering a view doesn't work [10:14] bac: I haven't gotten to that bit yet, but I've been revisiting my modest recollections of how others did this. [10:14] Something else again: in project.py, has_translatables: [10:15] don't use "query_result.count() > 0" to establish existence. Use "not query_result.is_empty()". [10:15] jtv: yes, of course [10:15] (Storm's implementation of that is still not optimal, but at least this way you don't stop it from becoming optimal) [10:17] bac: has the requirement of dromedaryCase in method names finally been abolished? [10:17] jtv: no, i just probably munged something. where? [10:18] The helper methods in TestRobotsMixin. [10:20] And the rest of the test. [10:24] jtv: yeah, i was just on crack [10:24] oh that's alright then (!) [10:30] bac: just pulled your branch so I can play along [10:33] jtv: wrt has_translatables on the view, i just saw there is the same method on the context so i can just delete it and the view tests. yay. [10:34] bac: but you deliberately replaced references to the context object in the TAL with references to this new view property, and I thought that was actually a good thing. [10:35] jtv: no i didn't [10:35] i replaced context/translatables, which is the resultset [10:35] i should've used context/has_translatable [10:35] ahhh [10:36] jtv: of course the has_translatable on the model needs to be changed to use is_empty, so i don't escape completely! [10:36] :) [10:36] bac: what surprises me is that if I replace the body of get_rendered_contents with just "return self.get_view()()" I only see one test fail. [10:37] yes [10:37] jtv:and that is for distroseries, yes? [10:37] and it fails on 'templates', no? [10:37] bac: no, it's TestRobotsProductSeries.test_LAUNCHPAD_does_not_block_robots [10:38] KeyError: 'imports' [10:40] jtv: you would see another failure except i inadvertantly included an extra get_rendered_contents in the test for distroseries [10:40] jtv: delete it and you'll see another failure [10:40] jtv: but i'm glad you just pointed out the redundancy [10:41] well, "stumbled into it without even realizing it afterwards" would be more appropriate [10:42] So now test_LAUNCHPAD_does_not_block_robots fails for both ProductSeries and DistroSeries, though not for ProjectGroup. [10:42] (Is there one for ProjectGroup?) [10:43] jtv: a failure? no. likely the page template doesn't use a menu for PG === gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: StevenK || queue: [StevenK*2] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [10:46] bac: I wonder if it's this line… [10:46] lib/lp/translations/templates/person-navlinks.pt: [10:46] yes. yes that is it [10:46] for distroseries it is the one for 'templates' [10:49] bac: that makes me wonder… why is that menu even being referenced for an anonymous access? —this is anonymous access, isn't it? [10:49] yes, but i don't think it is relevant [10:50] in the web UI those links are visible to the anon user [10:50] again, i think the problem is that the view is registered in the zcml on a layer but not the facet [10:50] and it could be the redirection view stuff y'all do [10:51] ah [10:55] jtv: hey, would you mind looking at sqlobject.py's is_empty()? [10:55] i mean in storm [10:55] bac: not at all, hang on [10:57] bac: that looks a bit like a bug doesn't it [10:57] yeah, it it really messes up my tests [10:57] def is_empty(self): result_set = foo() ; return not result_set.is_empty() [10:57] bugger with bells on [10:58] that's pretty serious [10:58] so, are we not using it anywhere? i guess all the call sites using is_empty are pure storm [10:58] I guess. We've been using workarounds in Storm, and cast-to-bool in SQLObject. [10:59] * jtv strides off towards #storm [11:01] bac: I'd file a storm bug for this if I were you. [11:01] i would if i could get to LP.net [11:01] !? [11:02] same problem as spiv? [11:02] dunno. is spiv having a problem? [11:02] it worked moments ago so i expect it is transient [11:02] He was having problems with SSL connections. [11:02] hmm, dns lookup error [11:03] and we're back [11:04] …except I'm not getting a whois record for code.launchpad.net === gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: StevenK || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [11:19] gmb: Fancy another one on the stack? Also, can you do UI reviews? [11:21] jtv:bug 659078 [11:21] <_mup_> Bug #659078: sqlobject is_empty and __nonzero__ are incorrect === gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: allenap || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [11:21] allenap: in order: Yes and No === allenap changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: allenap || queue: [allenap] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [11:21] allenap: Er... [11:22] jtv: in light of this bug, i'll put an XXX in the spot i was going to use is_empty until it is resolved. [11:22] gmb: Oops === allenap changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: allenap || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [11:22] :) [11:22] allenap: I'm assuming its the one on +activereviews already [11:22] bug 656823 [11:22] gmb: Yip. [11:22] <_mup_> Bug #656823: Subscribing to a search lacks a UI [11:22] Cool [11:22] jtv: yes, makes sense [11:34] jtv: in create_initialized_view, some of the named parameters are actually used in the method (form and method) so they can't really be grouped in with kwargs. unfortunately they are in the middle of the argument list. [11:36] bac: would it be too nasty to read them as kwargs.get(parameter, default)? [11:36] jtv: also create_view already takes a kwargs [11:38] jtv: my inquisitiveness into how that would work is trumped by my need to go get dinner. let's talk about it tomorrow. [11:38] bac: ok [11:39] I'll just add my comments to the MP. [11:43] thanks jtv [11:43] allenap: Code looks good to me. [11:43] It'll be interesting to see if and how we eventually integrate that with +subscriptions... === gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [11:44] gmb: Cheers. Is there a plan somewhere for what +subscriptions will evolve into? [11:44] gmb: I've commented on https://code.edge.launchpad.net/~stevenk/launchpad/db-add-derivedistroseries-api/+merge/38189 ; I'm happy with everything else you pointed out. [11:49] allenap: There's a mockup. Not sure that constitutes a plan. [11:49] StevenK: Looking now, thanks. [11:53] StevenK: Okay, I've replied. I suggest that you just expand the loop to a series of `if not : raise DerivationError("Useful message")` statements. [12:31] * gmb -> lunch and errands === gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: lunch || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews === leonardr changed the topic of #launchpad-reviews to: On call: gmb, leonardr || Reviewing: lunch || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews === jcsackett changed the topic of #launchpad-reviews to: On call: gmb, leonardr || Reviewing: lunch || queue: [jcsackett] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [14:07] MP for my review is here: https://code.edge.launchpad.net/~jcsackett/launchpad/code-configuration-652142/+merge/38015 [14:07] no huge rush, just making sure it's in the queue this morning. :-) [14:07] jcsackett, i'll take a look [14:07] leonardr, thanks. === leonardr changed the topic of #launchpad-reviews to: On call: gmb, leonardr || Reviewing: lunch, jcsackett || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [14:16] jcsackett, r=me === leonardr changed the topic of #launchpad-reviews to: On call: gmb, leonardr || Reviewing: lunch, - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [14:16] leonardr: thanks. === gmb changed the topic of #launchpad-reviews to: On call: gmb, leonardr || Reviewing: -, - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [15:53] Ooops. === deryck is now known as deryck[lunch] === gmb changed the topic of #launchpad-reviews to: On call: leonardr || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews [16:46] leonardr: care to eyeball this to make sure I haven't done something stupid somehow in what should be the dumbest commit ever? https://code.edge.launchpad.net/~gary/launchpad/production-devel-test/+merge/38239 [16:46] sure [16:46] thanks [16:50] gary, r=me [16:50] cool thanks [16:54] leonardr: could you actually approve it in the MP? That will make it easier to land [16:54] gary: sorry! [16:54] np [16:55] done === deryck[lunch] is now known as deryck [17:05] thanks [17:08] leonardr: two more, with low priority because I won't land them till after the release. [17:08] (1) https://code.edge.launchpad.net/~gary/launchpad/bug656213/+merge/38242 stub has already approved this one outside of the MP. [17:08] (2) https://code.edge.launchpad.net/~gary/launchpad/bug650343-2/+merge/38224 is big but stupid--a few moved files and making lint happy, in response to a review of an earlier branch. [17:08] ok, taking a look [17:08] thanks === benji is now known as benji-lunch [17:42] gary, line 284-ish of your second branch [17:43] you erase the distinction between doctests with logging and doctests without. that's your intention? [17:43] leonardr: yes, because we don't have anymore in that class [17:43] ok [17:44] gary: line 562: "no signature is treated" is ambiguous, how about "a message with no signature" [17:45] line 675, "message message" [17:45] er, 576 [17:45] leonardr agree, good catch, for both. [17:47] gary, can you explain your change to the security policy around line 611? are you running the tests in a different layer to save time? [17:49] (ie. the LaunchpadZopelessLayer) [17:50] leonardr: I'm duplicating the way this test was run before, when it was a part of that "doctests_with_logging" code. It seemed that this was reasonable before, and I didn't think about it much beyond that TBH. [17:50] Using the real Launchpad security policy rather than the permissive one that the zopeless layer usually uses is a Good Thing generally, but that doesn't really explain what is going on here. [17:52] gary: maybe you copied that code from test_system_documentation.py? [17:53] that sounds right; verifying [17:54] leonardr: yes, see testSetUp and testTearDown in ProcessMailLayer in est_system_documentation.py [17:54] test_system_documentation.py [17:57] gary: is it worth refactoring that code? [18:00] leonardr: you mean to not dupe between canonical/launchpad and lp/services? I briefly considered it. I rejected it because (1) the canonical/launchpad code is supposed to be all moved eventually, I assume, and I don't know how things will resolve then; and (2) it was so little code that it didn't seem worth it to me. If you disagree, happy to put it in. [18:00] If you want me to put it in and have any ideas other than two teeny tiny functions for set up and tear down that are used by the two respective bits of code, lemme know. [18:01] your #1 reason convinces me [18:02] second branch approved === benji-lunch is now known as benji [18:04] thank you [18:04] trying to wrap my head around the other one [18:13] gary: ok, the thing i don't understand about the other branch is why you don't set LPCONFIG when the instance name is 'development' [18:14] leonardr: because it is already considered the default in lincanonical/config/__init__.py ``DEFAULT_CONFIG = 'development'``) [18:16] gary: ok, so avoiding that case is how you avoid setting LPCONFIG all the time [18:16] well--I'd say, leveraging that behavior is how I avoid setting LPCONFIG all the time, but maybe that's the same thing [18:20] gary: ok, r=me on that one [18:20] cool, thanks again leonardr === gary_poster is now known as gary-lunch === fjlacoste is now known as flacoste === gary-lunch is now known as gary_poster [20:21] leonardr: would you mind reviewing https://code.edge.launchpad.net/~brian-murray/launchpad/person-subscription-story/+merge/37920 [20:23] bdmurray, sure === Ursinha is now known as Ursinha-afk [20:31] bdmurray, you talk about 'webster' before that user exists. you should mention that you're creating that user [20:31] can you explain where the 243656 comes from on line 69? [20:32] you're also mentioning bug 16 in the text, though it looks like you removed it from the code [20:32] <_mup_> Bug #16: "Swedish" and "Swedish (Sweden)" should be the same language [20:38] leonardr: okay re: creating webster. 243656 is the subscriber id. and got it re # 16. [20:42] bdmurray, that subscriber id seems like the kind of thing we're trying to remove from tests? [20:43] leonardr: yeah, I'm working on that now [20:43] ok [20:47] bdmurray: review sent === leonardr changed the topic of #launchpad-reviews to: On call: - || Reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews