/srv/irclogs.ubuntu.com/2010/12/21/#launchpad-reviews.txt

wgrantthumper: Could you be convinced to review https://code.launchpad.net/~wgrant/launchpad/die-lucilleconfig-die/+merge/44305?00:40
wgrantOr abentley, if you are still around.00:41
* thumper looks00:47
thumperyou need to get stub to do the patch allocatino00:51
wgrantthumper: I already obtained a number from him yesterday.00:57
wgrantThanks.00:57
=== 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
thumperwgrant: is stub off now?01:09
wgrantthumper: I don't think so.01:20
thumperwgrant: well if you have the nod from stub, feel free to land it01:21
wgrantthumper: Oh, I don't actually have a review, just a number.01:21
StevenKwgrant: Win01:21
wgrantStevenK: Yes.01:22
StevenKwgrant: And thanks for tacking on the IDS change01:22
wgrantStevenK: It didn't really fit into any of my previous branches :(01:23
wgrantBut regardless, that 6-year-old temporary hack is gone!01:24
=== lifeless_ is now known as lifeless
=== _thumper_ is now known as thumper
=== jelmer__ is now known as jelmer
allenapderyck: Are you busy (stupid question)? Would you have time for a review or two? Both are quite large branches (701 lines and 1077 lines).13:30
deryckallenap: I can work through them, through the day, if that's okay.  I tend to be slow on large diffs.13:30
allenapderyck: Thank you. The smaller one is reasonably straightforward: https://code.launchpad.net/~allenap/launchpad/sub-filters-via-api-bug-672619/+merge/4433113:32
allenapI'll badger someone else for the bigger branch.13:32
deryckheh, ok.13:32
* deryck goes to warm up the coffee before settling in13:33
allenapleonardr: Hi there. Are you on-call reviewing this week? If so, would you be able to review an oversize branch of mine? It's not too complicated actually; a lot of the bulk is doctest and import noise.13:49
leonardrallenap: sure13:50
=== leonardr changed the topic of #launchpad-reviews to: On call: leonardr || Reviewing: allenap || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
leonardrgive me the mp13:50
=== leonardr changed the topic of #launchpad-reviews to: On call: leonardr || Reviewing: allenap || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
allenapleonardr: Thanks. It's https://code.launchpad.net/~allenap/launchpad/bug-activity-grouping-bug-353890/+merge/4424713:50
leonardrallenap: line 292, i don't see a big readability advantage to defining an expression as a lambda function14:23
leonardrversus just using the expression in the list comprehension14:23
leonardrwhat do you think?14:23
allenapleonardr: Yeah, you're right, I'll put it into the comprehension.14:24
leonardrk14:24
=== henninge_ is now known as henninge
leonardrallenap: how about line 66, replacing chain(comments, activity) with comments + activity? is performance super important? i had to look up what chain() does14:37
allenapleonardr: Performance in bug comments especially has been quite critical, but I doubt changing it as you suggest would have much or any impact. I used chain() because comments and activity are generators; I didn't nead to materialize them into almost-immediately discarded lists so I didn't. The itertools module has a lot of very nice things in it, and I would argue that it's worth being familiar with.14:40
allenapleonardr: I could have done something like:14:41
allenapevents = []14:41
leonardrallenap: ah, i didn't see that they were generators14:42
leonardrchain is fine in that case14:42
allenapleonardr: Okay, cool :) I won't go on with my "something like" bit then :)14:42
leonardrallenap, having trouble wrapping my head around the idea of "first newest comment". what's going on there?14:58
allenapleonardr: Yeah, it doesn't read well. When there are many comments, only the first X and last X comments are shown; in the code that's oldest_comments and newest_comments. The first newest comment is the oldest of the most recent comments to be shown.15:00
leonardrwhy is the first newest comment the oldest?15:00
leonardrah, it's first chronologically15:00
allenapleonardr: Yep.15:00
leonardroldest_new_comment might make more sense15:01
allenapleonardr: I originally had oldest_newest_comment... perhaps I should rename newest_comments as recent_comments, then have oldest_recent_comment.15:01
leonardrthat sounds good15:02
=== sinzui changed the topic of #launchpad-reviews to: On call: leonardr || Reviewing: allenap || queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
leonardrallenap: what happens in the section starting around line 527?15:14
leonardrit looks like you used to print out activity_and_comments, then take a look at the most recent comment, and now you just print everything out at once?15:15
allenapleonardr: Mmm, I don't remember what I was doing there. I'll get back to you.15:17
leonardrok15:17
* leonardr thinks you could put the time format you use on lines 602 and 616 into a constant15:18
leonardrline 651 "no activities is" => "no activities are"15:21
leonardrtest_common_actor_over_a_prolonged_time would be easier to understand if you mentioned that the grouping window is 5 minutes15:26
allenapleonardr: The time format is only used in the __repr__(), so just for debugging.15:27
allenapleonardr: Oh, yes, good idea.15:27
leonardrallenap: what would happen to test_interleaved_activity_with_comments_by_common_actor if there was another comment after activity2?15:28
leonardrwould activity2 be associated with comment or comment2?15:28
leonardr(also, the test name is inaccurate since you only have one comment in that test)15:28
allenapleonardr: test_two_comments_with_activity_by_common_actor shows that I think; activities are grouped towards the earlier comment.15:29
leonardrright, ok15:30
leonardrthe tests are great15:30
allenapleonardr: Cool, thanks :)15:30
leonardrallenap: why &\x238594; instead of →? does the # make your editor think the rest is a comment?15:39
allenapleonardr: Yeah, doctest-mode is a little stupid. I'll switch it back for the benefit of others.15:40
leonardrok15:40
allenapAlthough doctest-mode is excellent in many ways :)15:41
allenapAh, the bit around line 527 is exactly as you say: it now prints out everything at once.15:52
leonardrallenap: one more question about your interesting_changes_expression16:11
allenapGo for it.16:12
leonardrbugtask_change_re looks like it matches some optional text, then a colon, then one of assignee, importance, etc.16:12
leonardris that right?16:12
leonardranyhow, there's something, then one of a number of field names16:13
allenapleonardr: Yeah, the optional text is the name (according to valid_name()'s rules) of the bugtask target to which the activity pertains.16:13
leonardrso interesting activity is a change to a bugtask, or a change to a bug16:14
leonardrwhich is why you don't have that special stuff for the bug fields16:14
leonardrright?16:14
allenapleonardr: Yeah.16:14
leonardrok, this looks good16:15
leonardri'll summarize the changes we tlaked about in the review16:15
allenapleonardr: Cheers, thank you!16:15
allenapleonardr: After your comments I thought of a way to make interesting_activity a bit more obvious: http://paste.ubuntu.com/546305/16:21
leonardrallenap, i like it16:24
allenapleonardr: Cool.16:24
=== leonardr changed the topic of #launchpad-reviews to: On call: leonardr || Reviewing: - || queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
leonardrsinzui, what is your merge proposal?16:26
* sinzui looks16:26
jcsackettleonardr: for your queue https://code.launchpad.net/~jcsackett/launchpad/autofocus/+merge/4428416:27
=== jcsackett changed the topic of #launchpad-reviews to: On call: leonardr || Reviewing: - || queue: [sinzui, jcsackett] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
sinzuileonardr, https://code.launchpad.net/~sinzui/launchpad/buga-buga/+merge/4429716:27
leonardrok16:27
=== leonardr changed the topic of #launchpad-reviews to: On call: leonardr || Reviewing: sinzui || queue: [jcsackett] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== deryck is now known as deryck[lunch]
leonardrsinzui: in newbug.py you remove a test for 'event_creator is not None'. will that never happen?17:32
leonardrline 48, "bug nomiation" => "bug nomination"17:35
=== benji is now known as benji-lunch
leonardrline 31, "submit label to" => "submit label"17:38
sinzuileonardr, it cannot ever happen17:44
leonardrok17:44
* leonardr doing final runthrough17:45
sinzuileonardr, the code requires use to use a transition method17:45
sinzuileonardr, I talked to deryck[lunch] about that because I could not imagine that case to be valid17:45
leonardrsinzui, r=me with typo fixes18:10
=== leonardr changed the topic of #launchpad-reviews to: On call: leonardr || Reviewing: jcsackett|| queue: [-] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
sinzuithanks18:10
=== deryck[lunch] is now known as deryck
leonardrjcsackett: am i right in thinking that the inputs whose focus you set will always be present?18:32
leonardrif so, r=me18:32
=== leonardr changed the topic of #launchpad-reviews to: On call: leonardr || Reviewing: -|| queue: [-] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
leonardrif not, will the javascript cause a problem if that input isn't around?18:32
=== benji-lunch is now known as benji
=== leonardr is now known as leonardr-dentist
leonardr-dentisti will be back in a few hours and i can take a couple more reviews when i do19:04
=== sinzui changed the topic of #launchpad-reviews to: On call: leonardr || Reviewing: -|| queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== sinzui changed the topic of #launchpad-reviews to: On call: leonardr || Reviewing: -|| queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
EdwinGrubbsbac, jcsackett: can you review a trivial branch? https://code.edge.launchpad.net/~edwin-grubbs/launchpad/bug-526608-milestone-ajax-plus-icon/+merge/4438219:24
jcsackettEdwinGrubbs: i'm happy to look at it.19:24
jcsackettEdwinGrubbs: the two "style_for_" things are just to hide the irrelevant controls on milestones, right? so if there's a milestone, don't show add.19:35
EdwinGrubbsjcsackett: right19:36
derycksinzui: would you be willing to review my fix removing all the linked js files and not depending on devmode for using launchpad.js?19:44
jcsackettEdwinGrubbs: the tool that does the text show hide is already tested in windmill elsewhere, right?19:50
EdwinGrubbsjcsackett: the widget in lazr_js actually hides and shows the elements with the classes "addicon", "editicon", and "nulltext", so that has yui tests. I'm not sure how detailed the windmill tests are.19:51
jcsackettEdwinGrubbs: dig, that was my intuition. just checking for the lack of new test coverage, but since it's using stuff that's already safely in use elsewhere that seems fine to me.19:52
jcsackettEdwinGrubbs: r=me.19:53
jcsackettsinzui: can you follow up for me on https://code.launchpad.net/~edwin-grubbs/launchpad/bug-526608-milestone-ajax-plus-icon/+merge/44382?19:53
sinzuiyes20:03
jcsackettanyone available to review a very trivial branch: https://code.launchpad.net/~jcsackett/launchpad/unlink-321675/+merge/4438820:05
bacjcsackett: sure20:08
jcsackettthanks, bac.20:08
=== jelmer__ is now known as jelmer
=== gary_poster_ is now known as gary_poster
=== gary_poster_ is now known as gary_poster
=== leonardr-dentist is now known as leonardr
leonardrsinzui, what's the other branch you want me to review?23:07
sinzuileonardr, https://code.launchpad.net/~sinzui/launchpad/peppermint-sticks/+merge/4437823:09
leonardrsinzui: line 301, "by their names" => "by their display names", and show the display names?23:19
leonardrr=me apart from that23:24
sinzuithanks for pointing that out23:40

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