/srv/irclogs.ubuntu.com/2010/01/13/#launchpad-reviews.txt

rockstarthumper, https://code.edge.launchpad.net/~rockstar/launchpad/fix-code-windmill-tests/+merge/1726802:50
=== stub1 is now known as stub
stubhttps://code.edge.launchpad.net/~stub/launchpad/replication/+merge/17278 to be reviewed, hopefully to land before the next staging rebuild fails.07:00
allenaphenninge: I assume the topic is out of date...?09:16
henningeallenap: well, bac should be in bed by now ... ;-)09:16
=== allenap changed the topic of #launchpad-reviews to: on-call: allenap || reviewing: - || queue [-] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
henningeallenap:  My branch is not reviewed yet and bac has not claimed it.09:17
allenaphenninge: And he's a very naughty boy if he's not.09:17
allenaphenninge: I'll go and have a look.09:17
henninge;-) definitely09:17
henningeallenap: thanks09:17
henningeallenap: it's over-sized.09:17
allenaphenninge: I've just read my email; my duty first and foremost today is to get checkwatches working again, so thank you for flying AllenapAir, but I need to jump out of the emergency exit now.09:22
=== allenap changed the topic of #launchpad-reviews to: on-call: - || reviewing: - || queue [henninge] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
henningeallenap: right, I read that, too. Good luck!09:23
henningeDon't hit the deck...09:24
stubhttps://code.edge.launchpad.net/~stub/launchpad/replication/+merge/17278 to be reviewed, hopefully to land before the next staging rebuild fails.09:28
=== stub changed the topic of #launchpad-reviews to: on-call: - || reviewing: - || queue [henninge,stub] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== danilo_ is now known as danilos
mrevellhey henninge, do you have a few moments for me?10:50
henningemrevell: shure10:50
henninge;)10:50
mrevellhenninge, Axctually, don't worry. unping10:51
henningemrevell: np, you can unping me any time ... ;)10:52
mrevellheh10:52
=== matsubara-afk is now known as matsubara
=== danilo_ is now known as danilos
henningestub: review done ;)11:46
=== henninge changed the topic of #launchpad-reviews to: on-call: - || reviewing: - || queue [henninge] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
stubw00t11:46
=== mrevell is now known as mrevell-lunch
=== mrevell-lunch is now known as mrevell
adeuringbeuno: could you do a ui review of this branch: https://code.edge.launchpad.net/~adeuring/launchpad/bug-172501 ?14:35
beunoadeuring, sure, looking14:41
adeuringbeuno: thanks!14:42
beunoadeuring, screenshots?   :)14:43
adeuringbeuno: sorry, forgot them. let me make them...14:43
beunoor do I need to really interact with this to review it?14:44
adeuringbeuno: nah, i don't think that's necessary. The main idea is: if you upload an attachment called something.diff but don't mark that as a patch, you're redirected to the attachment edit page where you see a note that LP thinks there is ann incoistency.14:45
adeuringbeuno: same thing, if you upload a file without the suffix .diff, but mark it as a patch14:45
beunogreat, screenshots will do fine then14:46
adeuringbeuno: http://people.canonical.com/~adeuring/patch-check-1.png http://people.canonical.com/~adeuring/patch-check-2.png14:51
=== matsubara is now known as matsubara-lunch
beunoadeuring, thanks, that's enough for me to review14:52
beunoa few layout tweaks come to mind, I'll add them to the MP14:53
adeuringbeuno: OK14:53
beunoadeuring, so you upload the file, and if it detects either of the cases mentioned above, you get redirected here, correct?14:55
adeuringbeuno: right. And, BTW, the  "patch" checkbox still has the value LP thinks is correct14:56
adeuringthe user must override that value again.14:56
beunogotcha, so it will check/unchecs based on our guess14:56
=== salgado is now known as salgado-lunch
adeuringbeuno: yes14:57
beunoadeuring, perfect, thanks for the info. I think we'll need to re-jig the UI a bit so people understand what happened without reading all that text (which they won't)14:58
adeuringbeuno: yeah...14:58
beunoI'll chew on it for a bit and propose something, hopefully very easy to change   :)14:59
adeuringok14:59
=== deryck_ is now known as deryck
=== deryck is now known as deryck[lunch]
=== salgado-lunch is now known as salgado
=== beuno is now known as beuno-lunch
beuno-lunchadeuring, starting to write the review, I'll finish it after lunch16:08
adeuringbeuno-lunch: ok16:08
EdwinGrubbsallenap, jtv: are you not on-call today?16:09
=== EdwinGrubbs changed the topic of #launchpad-reviews to: on-call: Edwin || reviewing: henninge || queue [] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
allenapEdwinGrubbs: I am, but I have a semi-critical bug to fix (checkwatches).16:09
EdwinGrubbshenninge: I will look at your mp now16:09
EdwinGrubbsah16:09
allenapEdwinGrubbs: I saw that you assigned a review to me. I can look at it tomorrow... is that okay?16:10
EdwinGrubbsthat's fine16:10
henningeEdwinGrubbs: great, thank you! Note: it's over-sized.16:10
henningebut it would be great to get it reviewed because it is likely to rot quickly.16:10
=== matsubara-lunch is now known as matsubara
=== henninge_ is now known as henninge
=== deryck[lunch] is now known as deryck
=== beuno-lunch is now known as beuno
EdwinGrubbshenninge: what is the purpose of IPersonRoles?17:10
henningeEdwinGrubbs: ;-)17:11
henningeEdwinGrubbs: to reduce noise in code from repeatedly having to do the ILaunchpadCelebrities dance.17:12
henningeEdwinGrubbs: it has a little history behind it, where I first created a helper file that provided functions to encapsulate this.17:13
henningeBut an adapter on IPerson is much nicer to handle.17:13
henningeEdwinGrubbs: bug 503454 was the previous one that introuced it (well, the branch linked to it)17:15
mupBug #503454: Make checks for celebrity persons and roles easier <tech-debt> <Launchpad Foundations:Triaged> <https://launchpad.net/bugs/503454>17:15
* henninge just realized that he forgot to link the branch on that bug.17:16
henningedone17:17
henningedanilos: fancy to review my fix for our critical bug? https://code.edge.launchpad.net/~henninge/launchpad/bug-506925-oops-export/+merge/1730417:32
henningedanilos: I got Edwin busy on my big branch ...17:33
henningeor anybody else? ;-)17:33
daniloshenninge, sure, if it's not longer than 275 lines ;)17:33
daniloshenninge, whoops, sorry, it's 277 :)17:34
henningedanilos: hey, you've been peeking.17:34
henninge;)17:34
daniloshenninge, ok, I've got to start with a question: who's Kubla Kahn at pleasure dome? (you scare me sometimes, did I ever mention it? ;)17:34
henningedanilos: heh17:35
henningedanilos: ;)17:35
henningedanilos: I believe he is older than me.17:35
henninge...17:35
danilosline 29, you should be able to re-raise the exception simply by calling "raise" I think17:37
daniloshenninge, ^17:37
henningedanilos: I copied that from the previous code but I believe this adds the file name to the message.17:37
daniloshenninge, also, the check for UTF-8 is likely not bulletproof (i.e. does "UTF8" also work? I am not sure, but it might)17:37
daniloshenninge, right, I guess that makes sense then17:38
daniloshenninge, I see that bit is also copied code, so let's ignore it for now17:38
daniloshenninge, i.e. we are not making anything worse for now17:38
* henninge is good at copying other people's code17:39
daniloshenninge, I also see you optimized it a bit, woohoo (i.e. do .encode() only once on the entire file content, and not separately on each message)17:40
henningedanilos: if the encoding was something like "UTF8" it would be caught on the second run of the method.17:40
daniloshenninge, "run, method, run"17:40
henningedanilos: yes, it was the obvious thing to do.17:41
henningeit's probably a fast one, too. ;)17:41
daniloshenninge, good job :)17:41
daniloshenninge, that's all I am saying, no need to justify your actions :P17:41
daniloshenninge, now, a comment17:42
daniloshenninge, why not catch the exception in the callsite for _try_encode_file_content and do an "else" there?17:43
* henninge tries to remember what else: did with try: ...17:43
daniloshenninge, well, try...except17:44
henningeyeah, of course.17:44
henningeIt executes if no exception was raised17:44
henningeor caught?17:44
daniloshenninge, ok, so how can you get None for the return value, that's the question?17:45
daniloshenninge, why not instead of returning none just try UTF-8 inside the method? it would be much saner to me17:46
henningedanilos: well, there is the logging bit.17:46
daniloshenninge, i.e. pass in a list of encodings to try and just fail if it doesn't work17:46
daniloshenninge, you can still log if it doesn't work with the first encoding :)17:46
daniloshenninge, the only ugly side effect is the "update header in DB" bit17:47
henningedanilos: and what's in the method is the part that needs to be repeated.17:47
daniloshenninge, good point17:47
henningethat's why I put it there17:47
daniloshenninge, but the return values seem very weird (i.e. None indicates that it couldn't encode it; that's what exceptions are for)17:47
henningedanilos: ok, true17:48
henningeit is only meant to make sense in this context, though.17:48
daniloshenninge, I know, but I'd still prefer it if you get re-raising UnicodeEncodeError out of the method and instead catch it in the callsite17:49
daniloshenninge, and then you can rename the method from _try_encode... to _encode... and put it in a try: except: block17:49
henningedanilos: well, if it fails to encode using UTF-8, we don't have a plan to handle it.17:50
henningedanilos: so I don't want to catch it, let it oops.17:51
daniloshenninge, I know, so throwing an exception then is fine17:51
daniloshenninge, right, but what I am saying is that it would be much clearer to me if you didn't catch the exception and conditionally re-raise it in the helper method itself17:51
henningewe could, of course change that behaviour, log the incident and produce an empty pofile with a message.17:51
daniloshenninge, i.e. assume the method will do the right thing, and catch the exception in the callsite and re-try the method with UTF-817:52
henningebut that is too much for this branch.17:52
daniloshenninge, right, I am not suggesting that17:52
daniloshenninge, so, my suggestion is simple: 1. get try/except out of _try_encode_file_content17:52
henningedanilos: that makes the method quite short and I'd add another method tod do the catching but that's fine.17:53
daniloshenninge, 2. instead of checking weird value encoded_file_content == None for failure, change that to try...except on 105..12217:53
daniloshenninge, why would you add another method to do the catching? you change the "_try_encode...(); if encoded_file_content is None:..." to "try: _try_encode() except:..."17:54
daniloshenninge, that would read naturally to me at least, because this code got me confused for a moment (it's not a big deal, but just want to make sure you understand what I mean before we either agree to ignore me or not :)17:55
=== salgado changed the topic of #launchpad-reviews to: on-call: Edwin || reviewing: henninge || queue [salgado:<http://paste.ubuntu.com/356150/>] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
salgadoEdwinGrubbs, I just added a trivial one to the queue.  it's a fix for bug 506581; can you take it?17:56
mupBug #506581: oops template page is out of center <ui> <Launchpad Foundations:New for salgado> <https://launchpad.net/bugs/506581>17:56
daniloshenninge, you won't have to re-raise exception again, because _try_encode_file will raise it; we will lose the filename though, so that's perhaps an argument against my proposal17:56
daniloshenninge, (because if we want to keep it, we'll have a nested try..except, which is very ugly)17:57
henningedanilos: http://paste.ubuntu.com/356151/17:57
daniloshenninge, so, I modify my suggestion in light of what I just said :)17:57
daniloshenninge, yeah, that's what I meant, I like how that makes it much clearer, but we lose the filename now :)17:58
henningedanilos: can we live with that?17:58
daniloshenninge, I can, but if you can't, it's not hard to fix while keeping code sane :)17:59
daniloshenninge, for instance, reintroduce unconditional exception re-raising in _encode_file_content with the filename17:59
henningedanilos: I'd just need to add a try .. except to the second call.18:00
daniloshenninge, it's not hard, and it's only slightly less performant, and slightly uglier18:00
daniloshenninge, yeah, but we'd end up with nested try..excepts, I hate those :)18:00
EdwinGrubbssalgado: sure18:00
daniloshenninge, if you don't, you can do it, but whenever I touch that code myself, I am probably going to kill it :)18:00
henningedanilos: I don't mind18:00
henningeloosing the file name18:00
henningehttp://paste.ubuntu.com/356154/18:01
daniloshenninge, ok (that may mean some failing tests, but in general, we'll know enough context already)18:01
henningesame as before but with call sites fixed18:01
daniloshenninge, yep, got me wondering for a minute :)18:02
daniloshenninge, looks great if you ask me :)18:02
henningedanilos: I have another idea18:03
EdwinGrubbssalgado: where is your branch?18:03
daniloshenninge, I am all ears (well, usually as well, but now specifically :)18:03
salgadoEdwinGrubbs, the branch is lp:~salgado/launchpad/bug-506581.  I also have a pastebin on the topic18:04
salgadoEdwinGrubbs, I just added a <div class="yui-d0"> around the main content of the page.  the rest is just indentation fixes18:04
EdwinGrubbssalgado: r=me18:05
salgadothanks EdwinGrubbs!18:06
daniloshenninge, everything else looks good in the branch, so I am just waiting on your new idea before giving you r=me18:06
henningedanilos: wait ...18:09
daniloshenninge, sure18:09
daniloshenninge, I need to leave soon... very soon :)18:11
henningedanilos: never mind, it got too complicated18:12
henningedanilos: let's leave it as it is.18:12
daniloshenninge, heh, ok, you've got approval for http://paste.ubuntu.com/356154/ approach or just re-introducing error message extension there18:12
henningedanilos: thanks.18:13
* henninge has to leave, too.18:13
=== gary_poster is now known as gary-lunch
daniloshenninge, good job with it, thanks a lot!18:13
henningedanilos: pleasure.18:14
=== danilos is now known as daniloff
=== gary-lunch is now known as gary_poster
=== salgado is now known as salgado-afk
henningeHi EdwinGrubbs, still chewing on my monster branch? ;-)20:49
thumperjml: https://code.edge.launchpad.net/~thumper/launchpad/fix-codeimport-failure/+merge/17315 - diff still generating20:49
=== matsubara is now known as matsubara-afk
EdwinGrubbshenninge: yep. I don't think there are any serious problems, just minor tweaks, so I'll just put them in the full review as opposed to IRC, since no discussion is really necessary.20:51
henningeEdwinGrubbs: cool, thanks ;)20:52
EdwinGrubbshenninge: review sent21:06
=== EdwinGrubbs changed the topic of #launchpad-reviews to: on-call: Edwin || reviewing: - || queue [] || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
henningeEdwinGrubbs: thank you! :-)21:07
jmlcould someone please review this https://code.edge.launchpad.net/~jml/canonical-identity-provider/upcall-testcase/+merge/1716621:36
jmlit's ok, you don't have to be an ISD hacker.21:36
jmlthumper, https://code.edge.launchpad.net/~jml/canonical-identity-provider/upcall-testcase/+merge/1716621:44
* thumper looks21:44
thumpernoodles775: https://code.edge.launchpad.net/~thumper/launchpad/review-clamining-fix/+merge/1732322:32
mwhudsondoes someone want to review a REALLY EXCITING branch?22:50
thumpermwhudson: ok22:51
mwhudsonthumper: bzr+ssh://bazaar.launchpad.net/~bzr/bzr-git/trunk/22:52
mwhudsonno22:52
mwhudsonthumper: https://code.edge.launchpad.net/~mwhudson/launchpad/update-bzr-git-dulwich/+merge/1732422:52
thumpermwhudson: done22:54

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