/srv/irclogs.ubuntu.com/2010/06/14/#launchpad-reviews.txt

=== flacoste is now known as flacoste_afk
=== mup is now known as _mup_
thumperhttps://code.edge.launchpad.net/~thumper/launchpad/linked-bug-visibility/+merge/27466 any one?03:49
thumperstub: can you do a pretty trivial review for me?04:36
thumperstub: ^^^04:36
* stub looks04:43
stubwtf happened to lp? All my controls are hidden under the subscribers portlet.04:46
thumperstub: a "fix" to the template04:48
thumpera fix for the fix has landed already04:48
stubapproved04:49
thumperta04:49
thumperstub: https://code.edge.launchpad.net/~thumper/launchpad/diff-tales/+merge/27469 fixes the diff formatter where sql comments are removed :)05:41
thumperif you feel like another review05:41
stubthumper: I find it worrying we are munging HTML rather than munging strings before we generate the HTML (break_long_words), and that the method name doesn't indicate it accepts HTML input rather than plain text.05:50
stubBut that is old code moved05:50
stubAnd TestDiffFormatter would be much more readable as a doctest, but that is old too.05:52
thumperI'd argue that last point :)05:54
stubAt the very least, tripple quoted strings in the asserts using dedent("""\05:56
stubOr better, expected=dedent("""\   then 'assertEquals(expected, formatterapimagic)'05:56
stubOh... I see. Linebreaks.05:57
stubr=stub05:58
=== henninge changed the topic of #launchpad-reviews to: On Call: henninge || reviewing: - || queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
noodles775Morning henninge !09:35
noodles775I've got an MP ready if you've time: https://code.edge.launchpad.net/~michael.nelson/launchpad/536700-present-packagebuilds-in-ppa-context/+merge/2747709:35
=== noodles775 changed the topic of #launchpad-reviews to: On Call: henninge || reviewing: - || queue: [sinzui, noodles775] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
noodles775(it's just part one, a second branch will follow it).09:35
henningenoodles775: Hi! Sure, I will look at it ;)09:36
noodles775Thanks henninge.09:37
=== henninge changed the topic of #launchpad-reviews to: On Call: henninge || reviewing: noodles775 || queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
=== mrevell is now known as mrevell-lunch
=== mrevell-lunch is now known as mrevell
=== flacoste_afk is now known as flacoste
abentleyhenninge_, sinzui's branch has already been reviewed.14:16
abentleyOn Call: henninge, abentley || reviewing: noodles775 || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews14:17
sinzuiyes, rockstar reviewed it yesterday14:17
=== abentley changed the topic of #launchpad-reviews to: On Call: henninge, abentley || reviewing: noodles775 || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
=== henninge_ is now known as henninge
leonardrhenninge, abentley: i'd like to add https://code.edge.launchpad.net/~leonardr/lazr.restful/cache-unauthorized/+merge/27523 to the queue16:59
abentleyleonardr, I can have a look at it.17:00
leonardrgreat17:00
=== abentley changed the topic of #launchpad-reviews to: On Call: henninge, abentley || reviewing: noodles775, leonardr || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
=== matsubara is now known as matsubara-lunch
=== bac` is now known as bac
=== matsubara-lunch is now known as matsubara
leonardrrockstar, can i get you to look at https://code.edge.launchpad.net/~leonardr/launchpad/toggle-representation-cache one more time? i've made a few more changes to get the tests to pass19:37
abentleyleonardr, rockstar is away for a week.19:41
leonardrok...19:41
=== abentley changed the topic of #launchpad-reviews to: On Call: abentley || reviewing: || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
leonardrabentley: i've assembled two incremental diffs, maybe you can review them?19:41
leonardrhttps://code.edge.launchpad.net/~leonardr/launchpad/toggle-representation-cache/+merge/2672519:42
abentleyleonardr, rather than catching Exception, can you name the exceptions you want to handle?19:46
leonardrabentley: let me check. maybe there's just one storm exception19:47
leonardri won't know for sure until i run the ec2 test though19:47
abentleyleonardr, on line 126 of the real patch you have "ocument" rather than "document".19:52
leonardrwill fix19:52
leonardrabentley: catching storm.exceptions.ClassInfoError seems to be as good as catching Exception20:26
abentleyleonardr, excellent.20:28
leonardrabentley, any other comments?20:28
abentleyleonardr, in get_by_key, why not use self.client.get(key, default)?20:29
leonardrabentley: i think that should be fine20:29
abentleyleonardr, the get(key, default) it handles the case where get returns a value that evaluates to False better.20:31
abentleyleonardr, is it always storm.info.get_obj_info that raises storm.exceptions.ClassInfoError?20:32
leonardrabentley: probably, but i'm not sure. now that the except clause returns, i can move the other code outside the try block and see if ec2 takes it20:33
abentleyleonardr, sounds good.20:34
abentleyleonardr, aside from that, it looks fine to me.20:35
leonardrok, cool20:35
leonardrabentley, the reason for .get(key) or None is that memcached 'get' doesn't take a default20:36
leonardrhow about this:20:36
leonardr        value = self.client.get(key)20:36
leonardr        if value is None:20:36
leonardr            value = default20:36
leonardr        return value20:36
abentleyleonardr, that's fine, then.20:37
abentleyleonardr, btw, even if the except clause didn't return, you could still narrow the scope using try/except/else.20:44
leonardrabentley: true, thanks20:45
=== matsubara is now known as matsubara-afk

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