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

=== gmb changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [adiroiban(bug-532239), gmb(http://bit.ly/dvTzD9)] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
rockstarjml, https://code.edge.launchpad.net/~rockstar/launchpad/create-recipe-error-messages/+merge/3025311:40
rockstar(waiting for the diff right now)11:40
=== wgrant changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [adiroiban(bug-532239), gmb(http://bit.ly/dvTzD9), wgrant] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== salgado is now known as salgado-lunch
=== mrevell is now known as mrevell-lunch
=== wgrant changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [adiroiban(bug-532239), gmb(http://bit.ly/dvTzD9), wgrant, wgrant] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
lifelesswgrant: details please13:09
=== wgrant changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [adiroiban(bug-532239), gmb(http://bit.ly/dvTzD9), wgrant, wgrant] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
wgrantGah.13:09
lifeless\o/13:10
lifelessalso13:10
lifelessthat queue is terrible13:10
lifelesswhy doesn't an irc bot do it ?13:10
=== wgrant changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [adiroiban(bug-532239), gmb(http://bit.ly/dvTzD9), wgrant(http://bit.ly/bIztta), wgrant(http://bit.ly/93nHei)] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
wgrantThat would be too handy, I guess.13:11
=== mrevell-lunch is now known as mrevell
=== salgado-lunch is now known as salgado
=== wgrant changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [adiroiban(bug-532239), gmb(http://bit.ly/dvTzD9)] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== vednis is now known as mars
=== lifeless changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [gmb(http://bit.ly/dvTzD9)] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== lifeless 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
wgrantArgh, I dropped the wrong one.14:15
=== wgrant changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [wgrant(http://bit.ly/bIztta)] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
lifelesswhy rev 11169 ?14:16
wgrantlifeless: We're not entirely sure. It's potentially useful if OEM has an external archive with binaries of the same version, and they want to override the primary archive's with them.14:17
wgrantI don't really feel like breaking that case -- I presume it was there for a reason.14:17
lifelessis someone checking with OEM that this is the case ?14:18
wgrantI don't know. OEM doesn't exist.14:18
lifelessassumptions like this make me nervous14:18
wgrantWell, assuming the other way might break stuff, so it makes me more nervous.14:19
lifelesssure14:19
lifelessits the unknown I referred to14:19
wgrantI'd like to be sure, but I've no way to be.14:20
wgrantAnyway, I should sleep.14:26
wgrantThanks for all the reviews.14:26
=== lifeless 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
lifelessno probs14:26
=== abentley changed the topic of #launchpad-reviews to: On call: abentley || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== jtv1 is now known as jtv
leonardrabentley, can i get some eyes on https://code.edge.launchpad.net/~leonardr/lazr.restfulclient/restore-shim-objects/+merge/30292 ?16:40
abentleyleonardr, looking16:42
=== danilos changed the topic of #launchpad-reviews to: On call: abentley || reviewing: - || queue: [danilo] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
danilosabentley, one in the queue for you as well :)16:43
danilosMP https://code.edge.launchpad.net/~danilo/launchpad/no-dummy-psl/+merge/3029316:43
abentleyleonardr, your proposal has conflicts.16:45
leonardrargh16:45
abentleyleonardr, did you consider using people.get(foo)rather than people(foo) ?  Maybe you'd parameterize it as deferrable, but I think it would be less surprising.16:51
leonardrabentley: i don't want to create the possibility of interfering with a named operation called 'get'16:52
leonardrgary: -^ opinion?16:52
gary_posterlooking16:52
leonardrabentley, conflict fixed, btw16:52
gary_posterright, abentley, leonardr: this is a "we don't have control of the namespace" problem.  That's particularly tricky since this is existing software--if this were an initial release maybe we could have claimed "get" for our own, but as it is that's not what we have available.  The only other choice I'm aware of is a mediator of some sort, like a function.  I think __call__ is the best available compromise, myse16:54
leonardrgary: actually we have (informally) reserved the lp_* namespace16:55
gary_posterhm16:55
leonardrbut i think () is better than .lp_get()16:55
gary_posteryeah, I prefer it16:55
gary_posterbut good to know about lp_16:55
gary_posterMaybe we should make that more formal at some point16:56
gary_posteror enforced16:56
leonardrgary: in lazr.restful? prohibit named operations called lp_*16:57
gary_posterright16:57
gary_posterkind of odd for lazr.restful's namespace to be lp_ but I've seen odder things :-)16:57
lifelesssurely lazr.restful is meant to not enforce launchpadlib special things?16:58
lifelessperhaps a policy mechanism launchpadlib can configure?16:58
gary_posterisn't that too late?16:58
abentleylifeless, they aren't launchpadlib-specific, AIUI.16:58
gary_postercorrect16:58
lifelessabentley: lp_* being blacklisted would be launchpad specific though, wouldn't it ?16:59
gary_posternp16:59
gary_posterno16:59
gary_posterI mean16:59
gary_posterIOW16:59
* lifeless pays attention16:59
abentleylifeless, no, because lp_* contains things that aren't launchpad-specific.16:59
abentleylifeless, AFAIK, lp_* contains only things that are lazr.restful-specific.17:00
gary_posterit would be nicer if the prefix were lr_ (lazr.restful) or some other generic prefix, but the intent is that lp_* be a namespace for lazr.restfulclient (or things that  depend on it like launchpadlib) could claim17:00
gary_posterwithout fear of named operations stomping on them17:00
leonardrthe name was chosen before we decided to split the web service code into lazr.restful17:01
lifelessok17:01
lifelessthe lp mislead me, I get it now.17:01
gary_posterunderstood17:01
lifelessAnd its presumably too late to change.17:01
leonardrright17:01
lifelessa few randoms17:01
lifelessyou could add a _lr_* prefix as well17:01
gary_posterwell, "too late" is subjective17:01
lifelessand encourage new special things to go there.17:01
lifeless(or lr_*, or whatever makes sense - I don't know this part of the stack well enough to have any real idea of the issues we're dealing with yet)17:02
gary_posterbut yes, my position is coming from the perspective that it is too late17:02
gary_poster+.5 from me17:02
abentleyleonardr, have you considered providing exception_for rather than error_for, so that you don't have to special-case 304?17:03
leonardrabentley: i don't follow (but i do know what part of the code you're talking about). how would that help? what do you envision exception_for doing?17:05
gary_posterleonardr: you asked me to look at https://code.edge.launchpad.net/~leonardr/launchpadlib/improve-workflow/+merge/29849 since poolie is unavailable.  It looks like you still need to respond to his last comment, which seems reasonable to me.17:06
gary_posterHe also asks about load, and "Can we find out from the logs how many times this is called at the moment?"  Do I understand correctly that the current answer is "0, because we haven't deployed it yet"?  Our logs will track this; we will have visibility on it already if it is one of our top 200 URLs17:06
abentleyleonardr, exception_for would return an exception that is not necessarily an error. e.g. for 304, it could return HTTPError(response, content)17:06
leonardrabentley: so it would call error_for and create an HTTPError if error_for returned none?17:08
leonardrthat wouldn't get rid of the special case17:08
leonardrgary: i think poolie responded to that review after i asked you to look at it? taking another look17:08
gary_posterk17:08
abentleyleonardr, you have a comment explaining why you're not invoking error_for.  It would allow you to use exception_for everywhere, and not have to explain anything.17:10
leonardrabentley: in other words, i could change what error_for does and rename it?17:11
abentleyabentley, yes.17:11
abentleyleonardr, yes.17:11
leonardrabentley, the problem with that is i'd have to move out the code that decides which response codes are exception-worthy (since they woudl all be exception-worthy)17:11
leonardrwhich, again, it's just moving code around, but i'd be moving normal-case code out of a function so i could move special-case code out of a special case17:12
danilosabentley, hey, do you think you'd have time to look at https://code.edge.launchpad.net/~danilo/launchpad/no-dummy-psl/+merge/30293 (it's mostly code simplification)17:18
=== flacoste is now known as flacoste_lunch
abentleydanilos, I expect so.17:25
leonardrgary: we can measure current POST requests to +access_token17:26
leonardrwith the new launchpadlib those requests will be approximately multiplied * number of seconds people spend waiting for their browser to load, reading instructions, etc17:27
gary_posterleonardr: yes, but we don't separate them from GET requests; is that important?17:27
gary_posterlooking to see if it is in to 200 list...17:27
leonardrgary: i don't think there will ever be a GET request to +access_token17:28
gary_posterk17:28
gary_posterleonardr: it is not one of our top 200 URLs by total hits (https://devpad.canonical.com/~stub/ppr/lpnet/latest-daily-top200.html).  Therefore we don't have easy access to it.  We could run a report manually, perhaps, or we could change the "categories" section of the performance report to match just that page17:30
leonardrgary: can we grep the raw logs?17:30
gary_postersure17:30
leonardri'll do that17:30
gary_posterok17:31
danilosabentley, ok, I am leaving now so you don't have to do it if you want to do it on-call :) cheers17:33
danilosabentley, I won't mind if I find a review in the morning though ;)17:33
abentleydanilos, I'll see how it goes, then.17:34
danilosabentley, sure, ta17:34
=== danilos is now known as daniloff
leonardrgary:17:38
abentleyleonardr, having looked at the code, I'd probably handle the 304 + content != '' handling first, then special-case ('If-None-Match' | 'If-Modified-Since') + 304, and otherwise let exception_for decide whether to raise.17:38
leonardr$ grep access-token launchpad-access*.log-20100717 | wc -l17:38
leonardr717:38
gary_posterthat's one machine I assume, leonardr, but still, yeah, that seems pretty indicative that this shouldn't be a problem for now17:39
abentleyleonardr, that's just a counterexample, not request.17:40
leonardrabentely, i'll take a look17:40
leonardrgary:17:41
leonardr$ find ./ -maxdepth 2 -name launchpad-access*.log-20100717 | xargs grep access-token | wc -l17:41
leonardr1217:41
gary_posterleonardr: cool17:45
leonardrgary: i can also make the poll time a parameter so we can easily release a changed version if it proves a problm17:48
gary_posterleonardr: ...I guess.  Would the parameter really make the change noticeably easier?  I mean, this does seem like the sort of thing that ought to be parametrized, so it sounds good generically, but more from a theoretical rather than a practical perspective.17:49
leonardrgary: yeah, just trying to anticipate trouble17:50
gary_posterunderstood17:50
=== flacoste_lunch is now known as flacoste
deryckabentley, hi.  I'd like to get in the queue for review please.  For the code portion of a UI branch.18:47
=== deryck changed the topic of #launchpad-reviews to: On call: abentley || reviewing: - || queue: [danilo, deryck] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== abentley changed the topic of #launchpad-reviews to: On call: abentley || reviewing: deryck || queue: [danilo] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
abentleyderyck, why do we want to move dupes across when making a bug a dupe that itself has duplicates?19:31
leonardrgary, fyi, i posted a response to the improve-workflow branch19:33
gary_posterleonardr: oh ok19:33
deryckabentley, on call, sorry.  short story -- lot of manual work to move them.19:35
abentleyderyck, it just seems like it would be simpler to just show them as dupes via the dupe, and that way you'd be able to undo the operation.19:36
deryckabentley, hmmm, I see your point.  However, this part of the change was actually reviewed earlier, i.e. the ability to move dupes.  And is something people have wanted for awhile...20:00
deryckabentley, this current branch just makes the UI aware of the movement.20:00
abentleyderyck, okay, well the code itself looks fine.20:05
abentleyderyck, btw, it would help to know the title of the bug you're becoming a dupe of.  Is that shown when marking dupes?20:06
deryckabentley, no.  Because we would have to do an XHR request and wait on the response to open the widget.  And that delay didn't seem worth the title at this point...20:07
deryckabentley, eventually, we'll actually do the dupe finder from +filebug in widget, which would provide all that.20:08
=== abentley changed the topic of #launchpad-reviews to: On call: abentley || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== abentley 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

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