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

=== matsubara-afk is now known as matsubara
=== sinzui changed the topic of #launchpad-reviews to: On Call: - || reviewing: - || queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
sinzuirockstar I have a branch that needs UI review. I hope you or noodles has time to take a look at it tomorrow.00:29
rockstarsinzui, I can look at it now if you want to send it to me.00:30
sinzuirockstar, https://code.edge.launchpad.net/~sinzui/launchpad/team-participation-0/+merge/2699600:42
sinzui^ sorry, I had a child demand my attention00:43
rockstarsinzui, looking00:52
rockstarthumper, can you do a review for me?01:49
thumperrockstar: sure01:50
rockstarthumper, https://code.edge.launchpad.net/~rockstar/launchpad/fix-buildds/+merge/2699001:50
rockstarthumper, there are two other cherry picks that need to occur before we can re-enable recipe builds.01:54
thumperrockstar: yeah, I read your conversation with wgrant01:59
rockstarthumper, cool.01:59
rockstarthumper, I'm composing an email to the list an copying the appropriate people.01:59
thumperrockstar: done02:00
rockstarthumper, thanks.02:01
=== matsubara is now known as matsubara-afk
=== ajmitch_ is now known as ajmitch
rockstarthumper, can you do a review for me?06:18
rockstarjtv, buddy!  Can you do a review for me?06:34
jtvuh-oh  :)06:35
jtvrockstar: fork it over!06:35
jtvand does this mean you're polyphasic again?06:35
rockstarjtv, no, just trying to clear off my plate of things I planned to do today.06:36
rockstarjtv, https://code.edge.launchpad.net/~rockstar/launchpad/bug-589454/+merge/2701206:36
jtvrockstar: the bug title says "creating recipe for build-from-branch oopses."  Is that what the MP is about?  At first sight they look like different bugs.06:38
rockstarjtv, yeah, they are the same bug.  See the description.06:38
jtvoic06:39
rockstarjtv, basically, LaunchpadFormView's validation has some dirty little secrets...06:39
jtvSo the presence of "name" (which I suppose would be required) isn't enforced before you get to the validation method?06:40
jtvYup, the interface marks it as required, and yet your validator may get run when it's not given.  Nasty.06:42
rockstarjtv, well, it adds the error to data.errors, but it continues on stupidly...06:42
jtvAh, that does make sense.06:43
jtvOn a coding style note, I'd prefer keeping the ISourcePackageRecipeSource utility in a variable over breaking the line all the way over on the right and continuing at what looks like a completely arbitrary offset.06:44
jtvEspecially in an "if."06:45
jtvIn fact, why not:06:46
jtvname = data.get('name')06:47
jtvif name is not None:06:47
jtv    recipesource = getUtility(ISourcePackageRecipeSource)06:47
jtv    if recipesource.exists(self.user, name):06:47
jtv        self.setFieldError(06:47
jtvetc.06:47
jtvrockstar: ^^06:50
rockstarjtv, sure, I can do that.06:51
jtvthanks06:51
rockstarjtv, http://pastebin.ubuntu.com/446468/06:53
rockstarAnd the tests still pass, so I didn't screw anything up.06:53
jtvLovely.06:54
jtvAlso, you may want to use double-quotes for free-form text strings.  Saves the hassle when an apostrophe sneaks in.06:54
jtv(e.g. if someone should ever decide that "There's" is better than "There is")06:55
rockstarjtv, that's what we have syntax highlighting for...  :)06:57
jtvAh great, a high-tech solution for minimizing the pain of the tack you taped to your chair...06:58
rockstarjtv, I have a standing desk now, so I don't have a chair...06:59
rockstarThat's how I solved that problem.06:59
jtvrockstar: Telling.  :-)  The syntax checker I use in gvim is very nice, but it throws up a lot of complaints for a thing like this.06:59
rockstarjtv, yeah, abentley turned me onto one than runs pyflakes for me as well.  I never have to run pylint anymore now.07:00
jtvI think that's the one I use.07:00
jtvUnfortunately if I were to add an apostrophe to this string, it would make me alternate between commanding vim and acknowledging error notices.07:01
jtv^<enter>r"<enter>$<enter>r"<enter>07:02
rockstarjtv, oh, that's obnoxious...07:04
jtvrockstar: now, stop me if I'm going too far here but in the test, instead of finding all error messages on the page and indexing at [1], would it be possible to find specifically the error message for the "name" field?07:05
rockstarjtv, I think it is doing that.  Lemme look.07:05
jtvWell it's my particular thumbtack of choice I guess.  :)  I've gotten used to a style where free-form strings use double quotes (because it's nobody's business if they contain apostrophes) but short, identifier-style strings use single quotes.  I find it nice and consistent, and believe others do something similar.07:06
rockstarjtv, yeah, we don't have a style for strings specifically, but we do for docstrings.07:06
jtvWhen writing style rules, it's probably a good thing not to enforce things you wouldn't be willing to clean up in the existing code (both as a limit on the body of law and a cure for existing nearby code overriding style guides) but in this case I think it's common sense to use double quotes.07:08
rockstarjtv, I'll do it just this once for you, but I generally don't ever use double quotes unless I really need to.07:09
rockstarProbably because I can't be arsed to use the Shift key.07:10
jtvSo... what do you do when you've got a sequence of lines of concatenated single-quoted strings and one of them gains an apostrophe?  Change all lines or just one?07:10
jtvOr avoid the apostrophe?07:10
rockstarI'll escape it if I really need.07:11
jtvouch!  :)07:11
rockstarThis probably stems from my PHP days, where a single quote was good for making sure you weren't doing something stupid in SQL.07:11
jtvFor that situation I can see it making sense...  but of course if Launchpad were PHP we wouldn't be having this conversation because I wouldn't be working here.  ;-)07:12
rockstarBut it's one of the niggles that I continue to use in every case except C (where single quotes and double quotes mean different things) and javascript (probably because it reminds me of C)07:12
jtvWouldn't the rule generalize to "use double quotes when it's okay to have single quotes or apostrophes in here, or single quotes when it's not"?07:13
rockstarjtv, I think the important thing is that there is no rule.  I think every time it's been brought up, it's the equivalent of doctests v. unittests...07:15
jtvSure.  I'm talking about your rule, not a rule in Launchpad.07:15
rockstarjtv, I don't have a rule, more than a habit.07:16
rockstarIt's like crack.  I don't necessarily WANT to do it, I just do.07:16
rockstarjtv, so, "Required input is missing" is apparently the ACTUAL error message it puts next to the widget.07:16
rockstarThat's about as worthless as teats on a bull...07:17
jtvrockstar: I'm not sure I follow... actual as opposed to what?07:17
rockstarjtv, like, maybe "Name is a required field" or something.07:18
jtvAh.  Yes, could probably be better but I guess it's clear enough when it shows up right next to the input box.07:19
rockstar<jtv> rockstar: now, stop me if I'm going too far here but in the test, instead of finding all error messages on the page and indexing at [1], would it be possible to find specifically the error message for the "name" field?07:19
rockstarI'm responding to that...07:19
jtvAh, then I probably expressed myself poorly.07:19
jtvWhat I meant was: is there no more precise way to identify the error message that you're testing?07:20
jtvRight now the test finds all messages and then uses the list index [1] for this.07:21
jtvI was wondering if there's an easy way to, say, find a tag surrounding just the "name" part of the form, and then pick out the error message from that.07:22
rockstarjtv, I don't think there is a better way.07:23
jtvThen I won't waste any more of your time.  I'm approving the MP.07:23
rockstarjtv, I'm sure we can improve it, but this is the way the doctests do it as well.07:23
jtvYes, I know and it always saddens me a bit.  Someday I guess...07:23
rockstarjtv, so, abentley and I have been trying to use unittests for testing pages.07:23
jtvIt strikes me as a worthwhile idea, since pagetests have a tendency to convolute and become brittle.07:24
rockstarjtv, my favorite part is that if the page oopses, I get the actual exception instead of crap printed to my terminal.07:25
jtvNice, yes.07:25
rockstarjtv, when the experiment is over, I'll post to the list about it.07:26
jtvLooking forward to that.07:26
=== gary_poster_ is now known as gary_poster
=== mwhudson_ is now known as mwhudson
=== gmb changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: - || queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
=== gmb changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: - || queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
noodles775Hi gmb, another one for you when you've time: https://code.edge.launchpad.net/~michael.nelson/launchpad/587113-buildbase-handleStatus/+merge/2702209:56
=== noodles775 changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: - || queue: [sinzui, noodles] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
gmbnoodles775, Sure, I'll put it in the queue.09:57
=== gmb changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: - || queue: [sinzui, noodles775] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
noodles775Lol... too quick :) Thanks gmb.09:57
gmbHeh.09:57
stubgmb: https://code.edge.launchpad.net/~stub/launchpad/db-stats/+merge/27026 is trivial10:11
stubAnd as soon as I said that, spotted the bug :-P10:12
gmbstub, Thanks; I'll take a look at that before starting on sinzui's branch10:12
stubThe 'per_second' like is going to get another * 6010:13
stubWhich I will shortly test on production to see if it fixes the odd results I'm seeing10:13
gmbstub, r=me with that change in mind, then :)10:14
stubTa.10:14
=== gmb changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: sinzui || queue: [noodles775] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
stubAhh... much nicer. My daily report now has reasonable values, matching the short term reports ;)10:15
gmb:)10:15
stubAll because it is a pain in the bum converting a timedelta to a number of seconds.10:15
stubhttps://code.edge.launchpad.net/~stub/launchpad/oauth-db/+merge/27025 is simple, but possibly security sensitive - if you don't want to review I can designate a victim familiar with OAuth.10:17
gmbstub, That sounds like a good idea.10:32
=== gmb changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: noodles775 || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
gmbnoodles775, r=me11:03
=== gmb changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
noodles775Thanks gmb.11:03
=== gmb changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: lunch || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
deryckgmb, the small change we discussed:  https://code.edge.launchpad.net/~deryck/launchpad/ubuntu-bugs-front-timeout-590992/+merge/2703612:33
=== deryck changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: lunch || queue: [deryck] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
deryckah, he's away.12:34
deryckBjornT, perhaps you could review the above MP for code and RC.  Fixes a persistent timeout on bugs.lp.net/ubuntu.12:34
deryckmeant that as a question, not statement. :-)12:35
leonardrgmb, need nearly trivial review of https://code.edge.launchpad.net/~leonardr/launchpad/toggle-representation-cache/+merge/2672512:42
=== bigjools changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: lunch || queue: [deryck, bigjools] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
bigjoolsone more for you gmb, thanks12:42
BjornTderyck: have you confirmed that that view isn't used on other pages?12:54
deryckBjornT, the view is for every top-level bugs page, not just distro.  a grep for bug_count_items turns up nothing.  doc and browser tests pass.  I'll look at zcml to make sure nothing else uses it, though....12:56
deryckBjornT, yeah, not used except for bugs home page for product, distro, and series of those.13:00
=== Ursinha-afk is now known as Ursinha
=== gmb changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
=== gmb changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: - || queue: [deryck, bigjools, leonardr] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
* gmb sucks at IRC again13:15
bigjoolsgmb: my branch is a CP candidate BTW, but that probably doesn't change much13:16
gmbbigjools, I'll take a look at leonardr's first because it's 'nearly trivial'. Also, he asked first, looking at scrollback; seems I've done him a disservice13:16
=== gmb changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: leonardr || queue: [bigjools] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
bigjools'tis fair13:17
gmbderyck, Can I assume that BjornT's got you covered, review wise?13:17
deryckgmb, yes, he did.  Sorry I didn't update you.13:18
gmbderyck, Not to worry. Sorry I had to dash for lunch; it was that or fall over.13:18
deryckgmb, no worries :-)13:19
gmbAh, codebrowse, your reliable suckage heartens me.13:19
gmbleonardr, r=me13:20
=== gmb changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: bigjools || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
gmbbigjools, r=me13:28
=== gmb changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
bigjoolsthanks gmb14:05
=== gmb changed the topic of #launchpad-reviews to: On Call: gmb || reviewing: - || queue: [gmb(http://bit.ly/cy3QjX)] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
adeuringgmb: could you review the mp: https://code.edge.launchpad.net/~adeuring/launchpad/expectations-bug-556499-model/+merge/27052 ?14:35
=== leonardr changed the topic of #launchpad-reviews to: On Call: gmb, leonardr || reviewing: - || queue: [gmb(http://bit.ly/cy3QjX)] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
leonardradeuring, i'll take it14:43
adeuringleonardr: thanks!14:45
leonardradeuring, am i reviewing the whole branch or your diff against intellectronica's work?14:52
adeuringleonardr: Tom's work has already been reviewed14:52
leonardrok14:52
adeuringso I think it is enough if you look at the diff I added to the MP14:52
leonardradeuring: i don't know much about storm, can you explain14:57
leonardrStore.of(self.distribution).add(dsp_in_db)14:57
leonardrit looks like you're just adding a row to the distribution table?14:57
adeuringleonardr: no, Store.of(...) just returns the database, not a table.14:58
leonardrso it's whatever database the distribution is in?14:58
adeuringleonardr: yes14:58
adeuringthat's a typical pattern we use to find the "right" store14:58
leonardri don't see where you use the bug_reported_acknowledgment property.  was it used outside of that diff without being defined properly?14:59
leonardror, is that whole thing defined inside a model class?14:59
adeuringleonardr: exactly. There is a test, let me look for the filename...14:59
leonardrdoc/bug-reported-acknowledgement.txt ?15:00
adeuringleonardr: right, that's the one.15:00
leonardrok, i'll take a quick look15:00
adeuringleonardr: and I'm working on another branch which will really sue this proerty15:00
adeuring...property...15:00
adeuringerm, _use_ the property...15:00
leonardradeuring, r=me15:07
adeuringleonardr: thanks!15:07
leonardrgmb, i'll take the review you've got in the queue15:08
gmbleonardr, Thanks.15:11
=== bigjools changed the topic of #launchpad-reviews to: On Call: gmb, leonardr || reviewing: - || queue: [gmb(http://bit.ly/cy3QjX), bigjools] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
bigjoolsgmb: another CP candidate branch fer ya15:18
bigjoolsshort one15:18
gmbbigjools, On it15:19
bigjoolsta15:19
=== gmb changed the topic of #launchpad-reviews to: On Call: gmb, leonardr || reviewing: bigjools, gmb || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
leonardrgmb, r=me with some minor changes15:21
gmbleonardr, Thanks.15:22
gmbbigjools, r=me15:24
bigjoolsthanks again15:24
gmbleonardr, Gah, yes, that should be targeted at devel. Never mind, I'll fix it when I pqm-land it.15:24
gmbleonardr, And apparently I can't spell.15:25
leonardrgmb, i have the same problems15:25
=== leonardr is now known as leonardr-afk
=== gmb changed the topic of #launchpad-reviews to: On Call: gmb, leonardr || reviewing: -, - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
* gmb -> afk for a short while16:13
=== leonardr-afk is now known as leonardr
=== Ursinha is now known as Ursinha-lunch
=== gmb changed the topic of #launchpad-reviews to: On Call: leonardr || reviewing: -, - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
=== Ursinha-lunch is now known as Ursinha
rockstarleonardr, you're on call?18:01
rockstarbac, can you do a review for me?18:07
leonardrrockstar, yes, i'm here18:09
rockstarleonardr, can I jump in your queue?18:09
leonardrrockstar, yes, especially since there is no queue18:17
=== leonardr changed the topic of #launchpad-reviews to: On Call: leonardr || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
rockstarleonardr, https://code.edge.launchpad.net/~rockstar/launchpad/edit-recipe-name/+merge/2707218:22
leonardrrockstar, i assume your first validate() method is in the 'add' view?18:28
rockstarleonardr, the original validate is in a mixin, since I do share some code.18:28
rockstarleonardr, but yes, I took some code out of there, put it into the add view, and then modified it for the edit view.18:29
rockstarleonardr, oh crap, it didn't set the pre-req branch correctly.18:29
rockstarleonardr, you can ignore test_create_new_recipe_empty_name18:30
leonardrignore it, or come back to it after you fix it?18:30
rockstarleonardr, ignore it.  It's from the pre-requisite branch that jtv reviewed last night.18:32
leonardri see18:32
rockstarleonardr, see also: https://code.edge.launchpad.net/~rockstar/launchpad/bug-589454/+merge/2701218:32
leonardrrockstar, you removed a 'source_package = ' line from a test. it looks like it was simply unnecessray?18:34
rockstarleonardr, yeah, it was an artifact of a branch from last week.  I must have forgotten to run make lint then.18:34
rockstarleonardr, I caught it when I ran lint this time.18:35
leonardrrockstar, r=me with an additional test case18:41
rockstarleonardr, ack.  I'll get on that now.18:41
=== deryck is now known as deryck[lunch]
=== deryck[lunch] is now known as deryck
marsleonardr, ping, have some time for a very small review?: https://code.edge.launchpad.net/~mars/launchpad/re-enable-windmill-ec2-suite/+merge/2707720:07
leonardrmars, sure20:08
leonardrmars, so you've already fixed the windmill test suite, and this is just restoring the status quo where 'make check' runs correctly on ec2?20:12
marsleonardr, yes.  I ran it in parallel to reproduce what would have hung the suite, and now it passes the error just fine.20:12
leonardrok, r=me20:13
marsleonardr, cool, thank you20:20
marsleonardr, did you mark the MP as approved?20:21
leonardri think so., but maybe not20:21
leonardrno, i got distracted, doing that now20:21
bacleonardr: do you have time for a short MP?21:58
bacleonardr: otherwise i could ask sinzui21:58
bachttps://code.edge.launchpad.net/~bac/launchpad/bug-591345/+merge/2708421:58
leonardrbac, lemme see, but sinzui might be better--i just eoded22:01
leonardryeah, sunzui's a better choice, sorry22:01
=== leonardr changed the topic of #launchpad-reviews to: On Call: - || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
sinzuiI hope that is a malapropism for Sinzui and Sun Tze.22:02
baci think i like sunzui better than sinzui.22:02
sinzuiThe characters for Sun Tze looks like Sun-ko in Japanese, making him a her22:03
* sinzui is done passing useless knowledge22:03
sinzuibac: we must have 2000 lines dedicated to pmts and we have only 17 of them...and we do not want any of them22:06
bacye22:09
bacs22:09
bacpardon me while i reboot22:10
bacsinzui: thanks for the review22:26

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