/srv/irclogs.ubuntu.com/2010/10/19/#launchpad-reviews.txt

=== Ursinha is now known as Ursinha-afk
thumperanyone feel like reviewing some branches?01:49
mwhudsonthumper: maybe01:51
thumperhttps://code.edge.launchpad.net/~thumper/launchpad/rename-created-job/+merge/3868101:51
thumperhttps://code.edge.launchpad.net/~thumper/launchpad/needs-review-event/+merge/3868601:52
thumperhttps://code.edge.launchpad.net/~thumper/launchpad/defer-wip-email/+merge/3879101:52
thumpera pipeline to defer the initial review email until it needs review01:52
mwhudsonthumper: why do you reset the root message id in the last one?01:59
thumpermwhudson: because it will start a new threaded conversation01:59
thumperif someone had commented on a work in progress01:59
thumperthat sets the root message id02:00
mwhudsoni guess that makes sense02:00
thumperby resetting to send out the main message, we get a new thread02:00
mwhudsonalso if you flip between needs review -> wip -> needs review again, i guess a new thread is appropriate02:00
thumperyeah, that's my thought too02:00
thumpermwhudson: were you going to comment on the third one above?04:11
mwhudsonthumper: oh right, yeah, one sec04:11
mwhudsonotp04:11
thumperack04:11
thumperanother simple one for someone: https://code.edge.launchpad.net/~thumper/launchpad/kill-bad-form-preloads/+merge/3880004:17
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
bachi lifeless07:48
bacjtv, could i trouble you for a review?07:48
lifelesshi bac08:08
bachi lifeless, you'd pinged me earlier.  so i have been unavailable until now08:08
lifelessI did?08:08
bacyeah, during the middle of my night.08:09
baclifeless: so i was just replying08:09
lifelessI don't see a ping from me08:09
lifelessare you thinking of the email one ?08:09
jtvhi bac, still need that review?08:10
baclifeless: no, but i am in the wrong channel.  at 19:15Z in #launchpad-dev there was "lifeless: bac: hi"08:11
baclifeless: i'm not making it up, but if you don't need to chat that's a-ok too.  :)08:12
lifelesshmm, oh right it was re that mail I think08:16
baclifeless: i'm replying to your email now, so i guess we are covered.08:18
lifelesscoolio08:18
bacjtv: https://code.edge.launchpad.net/~bac/launchpad/bug-652149/+merge/3870508:23
jtvgotcha08:23
bacjtv: henninge grabbed it yesterday but i don't think he actually did anything08:24
jtvbac: he won't be back for another few hours08:24
jtvbac: is it okay to inherit both from LaunchpadFormView and LaunchpadView?08:29
bacjtv: probably not.  i didn't realize that was happening.08:30
jtvBranchVisibilityPolicyView inherits from LaunchpadView.08:30
bacjtv: thanks for catching that.  i think it was a late change.  i'll investigate.08:33
jtvbac: it looks as if for your use you really want BVPV to be a mixin.08:33
bacjtv: yeah, i may have to go that route.  it pre-existed and i thought i could get lucky and re-use it as is08:34
jtvIt might work just fine, it just scares me a bit.08:34
bacyes, i think it should08:34
jtvbac: wasn't it possible for TestProjectGroupBranchesPage to render the view directly, without creating a browser?08:44
bacjtv: i was burned so badly by trying to get a rendered translations view last week that i went with what i knew would work08:45
jtvbac: IIRC it should (knock on wood) be a matter of soup = BeautifulSoup(view())08:46
jtvSeems worth trying despite the trouble with our views!08:46
bacjtv: good point.  i will try.08:47
jtvthanks08:47
jtvbac: on a sidenote, there's something in the docstring for that test that confuses me: "This is the default page shown _for a person_ on the code subdomain."  Should that be "to" a person (who by implication I guess must be logged in)?08:55
bacjtv: fixed08:57
jtvcool08:57
jtvbac: also in your test, since you're using the whitespace-ignoring assertion helper, can you get away with multi-line strings for the text you expect in the privacy portlet?10:03
bacjtv: what do you mean?10:04
bacand why would i want to?10:04
jtvbac: the indentation is a bit ugly and uses up a lot of horizontal space that you could use for meaningful content.10:04
jtv75+        expected = ("By default, new branches you create for projects in .* "76+                    "are Public initially. Individual "77+                    "projects may override this setting.")78+        self.assertTextMatchesExpressionIgnoreWhitespace(79+            expected, text)10:05
jtvHmmm... I bet I can do better:10:05
jtv75+        expected = ("By default, new branches you create for projects in .* "10:05
jtv76+                    "are Public initially. Individual "10:05
jtv77+                    "projects may override this setting.")10:05
jtv78+        self.assertTextMatchesExpressionIgnoreWhitespace(10:05
jtv79+            expected, text)10:05
jtvHow about:10:05
jtvexpected = """10:06
jtv    By default, new branches you create for projects in .*10:06
jtv    are Public initially.  Individual projects may override this setting.10:06
jtv"""10:06
jtvI don't know if moving the line breaks is a problem…?10:06
jtvbac: ^^10:08
jtvis what I meant10:08
bacjtv: it is not a problem10:09
jtvThen I think the multi-line string is slightly more natural.10:10
jtvAlso, if the BeautifulSoup tests you did are a problem, might it be worth putting more of the portlet's logic in the view and unit-testing the view directly?10:10
jtvFWIW I got an order-of-magnitude speedup on one of our slowest pages that way.10:11
jtvI don't know if those tests are still a major time sink for the test though; just a thought.10:12
bacthey are not10:12
bacthe portlet isn't really doing much10:13
jtvok nm10:15
=== bac` is now known as bac
henningebac: sorry, I totally forgot your review ...11:03
bachenninge: np11:03
bacyou were busy11:03
=== 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
bachenninge: could i get you to do a UI review of the branch from yesterday?  https://code.edge.launchpad.net/~bac/launchpad/bug-652149/+merge/3870511:37
bachenninge: i'll provide some screenshots in just a moment11:37
henningebac: I already saw it.11:43
bachenninge: actually hold off a bit on a UI review.  i need to tweak something11:44
henningebac: I remember that the link in the portlet looked odd.11:44
henningei.e. the icon was not properly aligned with the text11:44
=== 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
jtvgmb: I've got a large MP with a sadistic title… interested?  https://code.launchpad.net/~jtv/launchpad/recife-pofile-owner-privs/+merge/3882713:34
gmbjtv: Sure; I'm always willing to have pain brighten my afternoon.13:36
=== gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: jtv || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
* jtv laughs13:36
henningejtv: there are text conflicts in your mp. Did you merge the latest stable into recife and push that?13:41
jtvhenninge: ah, not yet—thanks13:41
jtvI merged db-stable into recife earlier today.13:42
jtv…so recife got lots of changes.13:42
* jtv merges & twiddles13:43
jtvgmb: just pushed an update to resolve two very minor conflicts.13:56
gmbjtv: Okay, thanks.13:56
jtvMy diff has updated.14:01
jcsackettgmb: have time for another review today?14:16
gmbjtv: r=me14:24
gmbjcsackett: Sure.14:24
jtvgmb: great, thanks!14:24
=== gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: jcsackett || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jcsackettgmb: great, thanks. mp is here: https://code.edge.launchpad.net/~jcsackett/launchpad/new-releases-636060/+merge/3877314:24
* gmb looks14:24
gmbjcsackett: A couple of nitpicks w.r.t styling but otherwise r=me.14:30
gmbhttps://code.edge.launchpad.net/~jcsackett/launchpad/new-releases-636060/+merge/3877314:30
jcsackettgmb: cool, thanks. I'll make those changes.14:31
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
=== 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
=== Ursinha-afk is now known as Ursinha
leonardrmars, i need to go to a doctor's appointment, but i'd like to put https://code.edge.launchpad.net/~leonardr/launchpad/temporary-integration/+merge/38836 on the queue, with the understanding that if it turns out you need any input from me to do the review, you can just put it on hold until i come back15:25
gmbleonardr: Can I assume that that message applies to me as well?15:27
leonardrgmb, yes indeed15:27
gmbleonardr: Okay, thanks.15:28
=== leonardr_ is now known as leonardr
EdwinGrubbsgmb: can I get a code review? I've already gotten ui reviews on this branch: https://code.edge.launchpad.net/~edwin-grubbs/launchpad/bug-652232-person-code-action-links/+merge/3857415:33
=== leonardr is now known as leonardr-afk
gmbEdwinGrubbs: Sure. I'll put it in the queue after leonardr-afk's branch15:34
=== gmb changed the topic of #launchpad-reviews to: On call: gmb || Reviewing: - || queue: [leonardr, EdwinGrubbs] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
* gmb -> getting a drink. bbi10m.15:34
marsmorning gmb15:37
marsgmb, I'll take leonardr-afk's branch15:38
=== mars changed the topic of #launchpad-reviews to: On call: gmb, mars || Reviewing: -,leonardr || queue: [EdwinGrubbs] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
gmbmars: Cool.15:42
=== gmb changed the topic of #launchpad-reviews to: On call: gmb, mars || Reviewing: EdwinGrubbs, leonardr || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
* gmb hates at the '+junk' moniker for the umpteenth time.15:45
=== salgado is now known as salgado-lunch
gmbEdwinGrubbs:  r=me with a tiny little nitpick15:49
=== gmb changed the topic of #launchpad-reviews to: On call: gmb, mars || Reviewing: -, leonardr || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
EdwinGrubbsgmb: thanks15:50
=== mars changed the topic of #launchpad-reviews to: On call: gmb, mars || Reviewing: -, leonardr || queue: [matsubara(mars)] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
matsubarathanks mars15:54
=== matsubara is now known as matsubara-afk
=== matsubara-afk is now known as matsubara-lunch
bdmurraycould I get https://code.edge.launchpad.net/~brian-murray/launchpad/bug-supervisor-modify-distro-official-tags/+merge/38743 added to the review queue?16:05
=== deryck is now known as deryck[lunch]
marsbdmurray, sure16:22
=== mars changed the topic of #launchpad-reviews to: On call: gmb, mars || Reviewing: -,afk || queue: [bdmurray,matsubara(mars)] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== gmb changed the topic of #launchpad-reviews to: On call: mars || Reviewing: afk || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== benji is now known as benji-lunch
=== deryck[lunch] is now known as deryck
=== matsubara-lunch is now known as matsubara
bdmurraygmb: did my branch get reviewed or dropped from the queue?17:09
gmbbdmurray: Whoops, I stomped on it. Sorry.17:13
=== gmb changed the topic of #launchpad-reviews to: On call: mars || Reviewing: afk || queue: [bdmurray, matsubara] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
gmbbdmurray: By way of making it up to you I'll take a look now :)17:13
bdmurraygmb: it should be an easy one17:13
gmbbdmurray: Indeed. r=me17:14
bdmurraythanks!17:15
jmlneed a review on a very simple CP: https://code.edge.launchpad.net/~jml/launchpad/codebrowse-config-cp/+merge/3885817:23
=== salgado-lunch is now known as salgado
=== benji-lunch is now known as benji
=== leonardr-afk is now known as leonardr
=== mars changed the topic of #launchpad-reviews to: On call: mars || Reviewing: afk || queue: [matsubara] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== mars changed the topic of #launchpad-reviews to: On call: mars || Reviewing: - || queue: [matsubara] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== mars changed the topic of #launchpad-reviews to: On call: mars || Reviewing: matsubara || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== Ursinha is now known as Ursinha-lunch
leonardrmars, any advice on where to put the screenshot for the ui review? and who might be around to do it right now?18:25
marsleonardr, sinzui is the head reviewer, he may punt to mrevell.  people.c.c or devpad are good for screenshots, edit the description to add the link.18:29
sinzuiI am a head reviewer?18:30
* sinzui wonders what super powers that conveys18:30
* mars anoints sinzui as one of the head UI reviewers18:30
sinzuileonardr, screenshots are often linked in the review comments. the images/movies may be bug attachments or uploaded to people.canonical.com18:31
leonardrsinzui: it's like a phrenologist18:31
marssinzui, it conveys the superpower of mentee delegation, the ability to move mountains by giving the task to other people.18:31
sinzuileonardr, :)18:31
leonardrsinzui: if you can do the review today-ish, maybe i can just put the screenshot on my personal site?18:31
sinzuileonardr, yes and yes18:32
=== mars changed the topic of #launchpad-reviews to: On call: mars || Reviewing: lunch || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
leonardrsinzui, the mp is https://code.edge.launchpad.net/~leonardr/launchpad/temporary-integration/+merge/3883618:37
marsOut for a lunch errand, back shortly18:37
=== Ursinha-lunch is now known as Ursinha
=== bryceh changed the topic of #launchpad-reviews to: On call: mars || Reviewing: lunch || queue: [bryce] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== mars changed the topic of #launchpad-reviews to: On call: mars || Reviewing: bryce || queue: [bryce] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
sinzuisalgado, are you about19:47
salgadohi sinzui19:48
marsbryceh, wow, uhm, a 14,000 line diff - might take me a while19:48
sinzuisalgado, do you have time for a UI review?19:48
marsbryceh, is any of this stuff generated?19:48
salgadosinzui, not today, but I can do it early tomorrow if it's not urgent19:48
brycehmars, no but that seems excessively large19:49
brycehmars, it's against db-devel, but perhaps the diff was made against devel?19:49
marsbryceh, it was made against your previous branch19:50
marsand db-devel19:50
marsbryceh, have a look: https://code.edge.launchpad.net/~bryce/launchpad/lp-617691-retrieve/+merge/3880419:50
sinzuileonardr, I would like salgado to do the first UI review of your branch? Can you wait until tomorrow?19:50
marsbryceh, it /really/ looks like a lot of generated JavaScript arrays and generated HTML19:50
leonardrsinzui, no problem19:50
* sinzui is feeling ill19:50
sinzuithanks leonardr19:51
brycehmars, oh right, there's a testfile html file which is a copy of a page from bugs.freedesktop.org for testing the parser19:51
marsbryceh, and the JavaScript looks strange.  Is line 840 even valid JS?19:51
brycehmars, it's intentionally broken, however come to think of it I don't think I added a test to check that so guess I could just drop the file19:52
* bryceh doublechecks19:52
marslets see what lsdiff says here19:53
marsok, that's better19:55
brycehmars, ok dropped19:55
marsbryceh, http://pastebin.ubuntu.com/516417/19:56
mars803 lines, much nicer19:56
lifelesshenninge: so here; I'm surprised you want me to land code in a higher entropy state than I presented it; thats something I am finding very hard to understand19:57
henningelifeless: sorry, entropy?19:59
henninge;)19:59
lifelesshenninge: worse off ;)20:00
lifelesshenninge: you want me to split two things that are tightly related20:00
lifelessin preparation for future work that would combine them20:01
lifelesswhy is that better ?20:01
henningelifeless: well ...20:01
henninge... it could serve as an incentive to clean it up quickly.20:01
lifelessthats not the goal of reviews though20:01
lifelessI have tonnes of incentive to fix things in the code base20:02
lifelessI need more time in the day, not more incentives20:02
henningesame here ;)20:02
lifeless*we* need understandable code and what you are proposing makes things less understandable until the later action is take.20:02
henningeTrue. I would very much prefer to do the move first.20:03
lifelessI think that that needs a benefit that is greater than the cost20:03
henningeWhat I suggested was the second-best solution.20:03
lifelessin which case we're holding an improvement to the system hostage to existing tech debt20:03
henningelifeless: I won't force this on you. Please add the files as you propsed but also add a bug for moving the code.20:04
lifelessI'm delighted to do that20:04
lifelessI'll put an XXX in the config/__init__ and in the new files.20:04
henningethanks20:04
lifelesswould you like to see an incremental of the XXX ?20:04
lifelessI realise it will be getting late for you20:05
henningelifeless: I started late today20:05
henningelet me look at the mp I think there were a few other issues that I did not mention yet.20:05
henningelifeless: ah yes, can you please use "dedent" in fixture.py and test_fixture.py?20:07
lifelesshenninge: not easily20:07
henningewhy not?20:08
lifelesshenninge: it has to be byte-for-byte20:08
lifelessmy experience with dedent in the past on that sort of thing has been traumatic20:08
lifelessis the tag techdebt or tech-debt20:08
henningetech-debt, I believe20:09
henningeyup20:09
henningelifeless: I am not aware of those problems with dedent.20:10
lifelessok, will try20:10
henningeThe other option would be to but the string in a global variable that can be defined at file level.20:10
henningehas less indention.20:11
henningeIt's just not very readable the way it is now. Thanks for trying.20:11
lifelessI think thats a good idea regardless20:11
lifelessperhaps class scoped.20:11
henningecould work, too.20:12
henningebut as I said, I'd like to know more about those dedent problems you mentioned. I never heard of those.20:13
henningelifeless: also, I try to avoid multiline if conditions at all costs, as they read badly, too.20:14
henningethat's in scripts/__init__.py and logger.py20:14
lifelessI don't love them either, but its better than a temp variable most of the time20:14
henningewhy is a temp variable not a good solution?20:14
lifelessthey generally wrap as well20:16
henningethanks for converting from unittest.TestCase to testtools, btw. ;)20:16
lifelessand you then have an assigned name which can be (mis)used, because its scoped too broadly20:16
lifelessI'd prefer to extract a helper method if the if gets *that* hairy20:16
lifelessbut we often have a lot of infunction state in LP, or so it seems to me20:17
henningebut that is even more overhead.20:17
lifelessyes, but it can be directly tested20:17
henningeAlso, a temp variable can help documentation.20:17
lifelessand isn't bound to a local so can't be misued20:17
henningegood point.20:17
lifelessfor instance those ifs that you notice20:18
henningebut I don't see such a big risk of misuse20:18
lifelessin another pass at this, I'd be inclined to push that condition onto config20:18
lifeless'if config.is_testing:20:18
lifelessor 'if config.is_testing():'20:18
henningeYes! Brilliant! ;)20:19
henningelifeless: Also, I think you can do without the second "if not BaseLayer.persist_test_services:" in layers.py but I may be misreading that.20:20
lifelessprobably fallout, I wavered a couple of times each way there20:20
lifelessok, dedent is working for this20:20
henningecool20:20
lifelessI'm using the python reference doc style20:21
lifelessthanks for spotting that unneeded if20:22
lifelessyes, I'd missed nuking it20:22
lifelessI've pushed this up; I haven't done the config change - its fairly small, but I'd want to look around for similar stuff etc, and I'm sure there's more, so its not trivial to do well.20:23
henningelifeless: looks good now. Thanks a lot. r=me ;-)20:28
lifelessmy pleasure, thanks for the feedback20:29
jcsackettmars, have room for another in that queue?21:46
jcsackettor, actually, does anyone have time? it's 89 lines, but most of that is headings updated in a doctest.21:57
=== matsubara is now known as matsubara-afk
marsjcsackett, link?22:14
=== mars changed the topic of #launchpad-reviews to: On call: mars || Reviewing: bryce || queue: [bryce, jcsackett] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jcsackettmars: https://code.edge.launchpad.net/~jcsackett/launchpad/add-member-648476/+merge/3888722:15
marsthanks22:15
marsjcsackett, rs=mars22:16
marsjcsackett, no tests?22:16
jcsackettjcsackett: debatable need--it's exactly the same snippet that's tested elsewhere.22:17
jcsacketter, mars ^22:17
* jcsackett must need more coffee.22:17
marsah, ok,22:17
marsjcsackett, well, I approved it22:17
jcsackettthanks, mars.22:17
=== mars changed the topic of #launchpad-reviews to: On call: mars || Reviewing: bryce || queue: [bryce] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== mars changed the topic of #launchpad-reviews to: On call: mars || Reviewing: bryce || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
bdmurrayabentley: I've updated the nomination branch per yesterday's discussion22:41
=== henninge_ is now known as henninge
abentleybdmurray: past EOD, but I'll look at it first thing before me.23:00
bdmurrayabentley: okay, thanks23:03
=== mars changed the topic of #launchpad-reviews to: On call: - || Reviewing: bryce || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== mars 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
=== Ursinha is now known as Ursinha-afk

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