/srv/irclogs.ubuntu.com/2009/04/15/#launchpad-meeting.txt

=== mrevell_ is now known as mrevell
barry#startmeeting15:00
MootBotMeeting started at 09:00. The chair is barry.15:00
MootBotCommands Available: [TOPIC], [IDEA], [ACTION], [AGREED], [LINK], [VOTE]15:00
barryhello everyone and welcome to this week's ameu reviewers meeting.  who's here today?15:00
intellectronicame15:00
abentleyme15:00
marsme15:00
gary_posterme15:01
allenapme15:02
EdwinGrubbsme15:02
barryadeuring, bac ping15:02
cprovme15:02
flacosteme15:02
barrybigjools, BjornT ping15:02
barrydanilo_: ping15:02
adeuringme, sorry for the delay15:02
bacme15:02
barrygmb: ping15:02
barryrockstar, salgado, sinzui ping15:03
salgadome15:03
barry[TOPIC] agenda15:03
MootBotNew Topic:  agenda15:03
barry * Roll call15:03
barry * Action items15:03
barry * Mentoring update15:03
barry * Peanut gallery (anything not on the agenda)15:03
sinzuimo15:03
sinzuime15:03
barrypretty light day today (planned at least)15:03
barry[TOPIC] action items15:04
MootBotNew Topic:  action items15:04
rockstarme15:04
barry * danilo to look into storm/sqlobject result set compatibility15:04
barryis danilo_ here today?  flacoste do you have any status on this?15:04
BjornTme15:04
flacostedanilo?15:04
flacostethat was allenap15:04
flacostebackporting the patch he landed on storm trunk15:04
allenapI forgot :(15:05
barryflacoste: oops!15:05
gmbme15:05
allenapPlease assign to me and I'll try and do it this time :)15:05
barryallenap: done, thanks15:05
barry * gary_poster will check to see if there's a bug open for adding a hook to `bzr send`, and submit one if there isn't15:05
gary_posterno sorry15:06
gary_posterwill put back on my list15:06
barrygary_poster: cool, thanks15:06
barry * flacoste to work on API reviewer cheat sheet15:06
rockstargary_poster, barry, abentley has a branch that he's been working on the forever.15:06
gary_posterrockstar: ok cool, I'll ask him about it15:06
flacostebarry: no progress since last week15:06
barrynp15:06
flacostebarry: keep it up, i like this weekly "i suck" reminder :-)15:06
barry:-D15:06
gary_poster:-)15:06
flacostegood for keeping the ego in leash15:07
abentleygary_poster: I've done the support for specifying a body when sending, but not adding the hook.15:07
gary_posterabentley: cool.  I'm guessing it's not on your immediate plate to finish it up?15:07
abentleygary_poster: Right.15:07
gary_posterunderstood15:08
gary_posterthanks15:08
barry[TOPIC] mentoring update15:08
MootBotNew Topic:  mentoring update15:08
abentleybarry: Did you get anywhere with adding body support to claws?15:08
gary_posterabentley: do you happen to know if there's a bug for this, and what it might be, if so?15:08
abentleygary_poster: I'm not aware of a bug for this.15:08
barryabentley: i didn't :(15:08
gary_posterabentley: ok cool.15:09
gary_posterbarry: one to-do item scratched off ;-) ...but maybe needs to be replaced with another.15:09
barrygary_poster: i'll cross it off and you can let me know if you want another15:09
gary_posterbarry: cool thanks15:09
barryam i right that only stub is still being mentored?15:10
barryi should ping a few folks to see if they're ready to be mentats15:11
barryi don't think there's many folks left who aren't revewiers15:11
barryanyway...15:11
barry[TOPIC] peanut gallery15:12
MootBotNew Topic:  peanut gallery15:12
barrydo you guys have anything not on the agenda?15:12
abentleyI am wondering if we have a policy on redundant assertions?15:12
abentleye.g. if foo; else: assert not foo15:12
intellectronicaabentley: i thought the policy is that we always do this15:13
intellectronicabut maybe it's not documented anywhere?15:13
barryintellectronica: we always have an else clause if there's an elif15:13
barrybut if there's no elif we don't need an else+assert15:13
intellectronicaoh, right15:13
abentleyWhy would we *always* do that?15:13
rockstarabentley's example seems to be different than what barry showed intellectronica15:13
barryabentley: doesn't make sense to me15:14
rockstarYea, the else+assert seems a little silly, as though assert would catch something the if would not.15:14
BjornTabentley: do you have an example in our code?15:14
abentleyBjornT: It was something I reviewed on Monday.15:14
intellectronicayes, sorry, i got confused. if there's only one if there's probably no need to do this, unless it's imprtant that the code fails at this point15:14
abentleyhttps://code.edge.launchpad.net/~salgado/launchpad/bug-358498/+merge/549615:15
barryabentley: the one on line 16 can just as well be raise AssertionError(...)15:16
salgadoin this specific case I wanted the assertion because the 'elif' block should be removed soon, at which point the assertion will become non-redundant15:16
barryand that does fall within our guidelines15:16
abentleybarry: It's unreacable code.15:16
barryabentley: proven by the assertion? <wink>15:16
abentleybarry: It can equally well be raise IAmSuperman15:16
barryabentley: the one on line 13 seems okay, but should have a message15:17
abentleybarry: It just seems like the wrong use of asserts-- proving that Python isn't buggy.15:17
BjornTabentley: ok. i would replace that assert with a raise AssertionError15:17
barrysalgado: you're saying the whole 8-14 block will be removed eventually?15:17
barryabentley: sorry, i was talk about the one in the else clause (first)15:18
barryi.e. line 16 is fine15:18
barryline 13, yeah, i suppose. doesn't bother me too much either way15:18
abentleybarry: I thought asserts were for proving your own state wasn't buggy.15:19
barryabentley: yes, or that the state you're assuming to be the case actually is the case15:19
abentleyAnyhow, I'll continue to say "I think this is redundant, but keep it if you like."15:19
barryabentley: +1, for the line 13 assert15:19
barryoh, yeah, line 16 isn't a change15:20
barrybut still.  or whatever.15:20
abentleybarry: line 13 can't be reached because of line 6.15:20
barryabentley: thanks15:20
barryabentley: yep15:20
=== salgado_ is now known as salgado
* barry agrees with abentley when he says: Anyhow, I'll continue to say "I think this is redundant, but keep it if you like."15:21
BjornToh, we're talking about line 13. yes, that one should be removed15:21
adeuringwell, yes, but salgado said that he will soon reorganize the code, so leaving this as a"reminder" is OK, IMHO15:22
barryagreed.  maybe the assertion message (which salgado will add <wink>) should state something to that effect?15:22
salgadomaybe. :)15:23
barryabentley: thanks for bringing this up15:23
barryanything more on this?15:23
abentleybarry: np15:23
barrydoes anybody else have anything not on the agenda?15:24
barry515:25
barry415:25
rockstarHappy Tax Day!15:25
barryrockstar: "happy"?!15:25
barry315:25
barry215:25
barry115:26
barry#endmeeting15:26
MootBotMeeting finished at 09:26.15:26
gary_posterbye15:26
barrythanks everyone!15:26
marsthanks barry15:26
cprovthanks barry15:26
barrysee ya back at the ranch15:26
=== danilo_ is now known as danilos
=== salgado is now known as salgado-lunch
=== salgado-lunch is now known as salgado
=== ursula_ is now known as Ursinha
thumperhere23:31
jmlhi23:31
barry#startmeeting23:32
MootBotMeeting started at 17:32. The chair is barry.23:32
MootBotCommands Available: [TOPIC], [IDEA], [ACTION], [AGREED], [LINK], [VOTE]23:32
barryhi jml, thumper.  are you here?23:32
thumperhere23:32
jmlbarry: like you wouldn't believe.23:32
barrynot that i have a big agenda23:32
barry[TOPIC] agenda23:33
MootBotNew Topic:  agenda23:33
barry * Roll call23:33
barry * Action items23:33
barry * Mentoring update23:33
barry * Peanut gallery (anything not on the agenda)23:33
barry[TOPIC] action items23:33
MootBotNew Topic:  action items23:33
barrythumper: just one for you, an old one i think23:33
barry * thumper to open bug on `webservice` pagetests globs problem23:33
thumperhmm23:33
thumperI don't recall doing it23:33
barrydo you still want to? :)23:34
thumperI should do it23:34
barryi can keep it on the agenda23:34
barry[TOPIC]  * Peanut gallery (anything not on the agenda)23:35
MootBotNew Topic:   * Peanut gallery (anything not on the agenda)23:35
barryyou guys have anything?23:35
thumperbug 36203223:36
ubottuLaunchpad bug 362032 in launchpad "webservice glob is an admin user" [Undecided,New] https://launchpad.net/bugs/36203223:36
thumperI don't really have anything23:36
barrythumper: thanks23:36
barryjml?23:36
barryjml: i guess not23:38
barryi have one issue that came up today in a review:23:38
barry * don't return unwrapped objects from view methods, barry and gary ("the fightin' arries!")23:38
jmlback23:39
jmlcomputer crapped out23:39
barryi agree with the principle.  gary wants to go further and prevent view modules from importing removeSecurityProxy23:39
barryjml: no worries23:39
thumperbarry: what do you mean?23:39
jmlwhat did I miss?23:39
barryjml: not much.  do you have any agenda items?23:39
thumperI disagree with not allowing removeSecurityProxy at all23:39
thumperbut it's uses should be well defined23:40
jmljust one re mentoring.23:40
barrythumper: can you state why?23:40
barryjml: we'll come back to that23:40
thumpernot off the top of my head23:40
thumperI'd have to look at the situations where we use it23:40
thumperand why we did it that way23:40
barrythumper: think about it, you don't have to answer now23:41
jmlbarry: so, I'm not against adding a rule wrt removeSecurityProxy but...23:41
jmlit's not going to help that much :)23:41
barrywhy not?23:41
jmltwo reasons23:41
jmlfor a start, it's actually really easy to return non-wrapped objects, particularly if they aren't db objects23:42
jmleven without rSP23:42
jmlthe issue goes more deeply into the model code23:42
jmle.g. up until recently, all SourcePackage objects had no security proxy at all.23:43
jmlsecond, the purpose of the importfascist is unclear23:43
jmland so a prohibition there will last exactly as long as it takes for people to need removeSecurityProxy in view code and to forget exactly why it is that we don't allow it.23:44
barrybtw, fwiw, i think rSP in view code is fine under the right circumstances23:45
jmlso, what are the reasons for not returning unwrapped objects from views?23:46
thumperI'm actually happy for "not returning unwrapped objects from views"23:47
thumperkeep the unwrapped objects in a defined scope23:47
barryjml: it's a vague (to me) feeling that we could leak private data23:47
thumperhowever I'm against "don't allow the unwrapping of objects in views"23:47
jmlbarry: I think the real problem there is that it's difficult to audit any given page.23:48
barryjml: agreed.  thumper agreed23:49
jmlbarry: in some ways, rSP makes it easier to audit :)23:49
barryi'm definitely against unwrapping in model code.  so where else would you do it?  i don't like having to add an artificial layer in there23:49
barryjml: true23:49
jmlso, I guess I'd say "whatever". We've already got quite a few well-intentioned for-your-own23:50
jml-good rules. One more won't break _this_ camel.23:50
barryjml: cool, this is an interesting discussion anyway.  we can move on and we'll bring it up at the next ameu23:51
barry[TOPIC] mentoring update23:51
MootBotNew Topic:  mentoring update23:51
jmlo hai23:51
jmlstub's doing a great job, and I see no reason not to promote him.23:52
barrybeauty.  i'll make it official, thanks23:52
jmlnp23:52
barryi think he's the last mentat atm23:52
barrywell, that's all i've got.  anything else from you two?23:53
thumpernope23:53
jmlI'm cool.23:53
barry#endmeeting23:53
MootBotMeeting finished at 17:53.23:53
barrythanks guys23:53
jmlbarry: thank you23:53

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