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

=== lifeless changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [https://code.edge.launchpad.net/~lifeless/launchpad/bug-607935/+merge/34143] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
lifelesscan I tempt anyone with a review?00:53
lifelessmwhudson: I know you have other stuff to do, but I'm hoping you'll be generous :) - its another small one, with -much less- hair than the other.00:54
mwhudsonlifeless: sure, i can take a look00:55
lifelessmwhudson: thanks; its in topic00:58
mwhudsonoh yeah, that thing00:59
lifelessmwhudson: so, what did you think?01:10
mwhudsonlifeless: sorry, got a bit distracted, have meld up now :)01:11
mwhudsoncan you really not do remove_tracer(self) ?01:14
* mwhudson has no idea01:14
lifelessdunno, was just moving it so documented the limitation01:14
mwhudsonah ok01:14
lifelessit already existed if you passed in a function that itself did record_statements01:14
mwhudsonah ok01:15
mwhudsonagain :)01:15
lifelessmwhudson: did you alter https://launchpad.net/ubuntu/+assignments in your recent refactorings ?01:17
mwhudsonoh man, lp.testing._webservice.QueryCollector?01:18
mwhudsonwhat's that doing there01:18
lifelessmwhudson: existing ?01:18
mwhudsoni just hate the way we accumulate multiple copies of things that do nearly the same thing01:18
lifelessright01:18
lifelessso QC was *in a doctest* a month ago01:18
mwhudsonhaha01:19
lifelessits different to record_statements though01:19
mwhudsonso things are moving in the right direction01:19
mwhudsonyeah, but in ways that shouldn't *really* matter, right?01:19
lifelessoh they should01:19
lifelessvery much01:19
mwhudsonnot expecting you to fix it in this branch, just complaining out loud01:19
lifelessI think it would be a huge mistake to treat them as interchangable01:19
mwhudsonnow, more apropos: "Find the persons or teams by which person is subscribed." <- i don't understand this01:20
lifelessok01:20
lifelessso a person can be subscribed to a bug directly or indirectly01:21
lifelessthe bugtask browser code (for me specifically) generates 300 queries whenever I look at a bugtask:+index page.01:21
lifelessbecause it was answering the question 'what ways is robert subcribed' by python01:22
lifelessand its not interested in the BugSubscriptions01:22
lifelessits interested in the Person or Team records that are subscribed.01:22
lifelessI find making the one-line summary hard sometimes.01:23
mwhudsonyeah, it can be difficult01:23
lifelessanyhow, this thing returns a result set01:24
lifelesswhich outputs IPerson01:24
lifelesssuch that it outputs all IPersons which cause person to be subscribed to the bug.01:24
mwhudsonlifeless: that version makes more sense to me, perhaps01:25
mwhudsonbut it's hard to say if that's only because i read it after i already understood what it did01:25
lifeless'return all IPersons which cause person to be subscribe to self' ?01:26
mwhudsonlifeless: s/self/this bug/ would be more consistent with other docstrings, but otherwise +101:27
lifeless78 chars.01:28
lifeless79 with .01:28
lifeless:P01:28
mwhudsonhahaha01:28
* lifeless pissess of the narrow-screen crowd.01:28
mwhudsonok, stick with your version then01:28
lifelessmwhudson: I think we should use the full 80 columns, but thats an entirely different discussion01:29
mwhudsonyes01:29
thumperlifeless: want to review my tag cloud change?01:30
mwhudsonlifeless: TestBugTaskView.initialize_view, did you consider using create_initialized_view ?01:30
thumperlifeless: it'll get rid of the timeouts01:30
mwhudsonlifeless: it's in lp.testing.view iirc01:30
mwhudsonlp.testing.views01:31
mwhudsonlifeless: gosh the browser code you're changing is horrid01:33
lifelessthumper: sure01:34
lifelessmwhudson: I wanted to be crystal clear about what I'm exercising01:34
lifelessmwhudson: can switch it if you prefer01:34
mwhudsonlifeless: hm, that's a fair point too01:35
thumperlifeless: https://code.edge.launchpad.net/~thumper/launchpad/different-cloud/+merge/3414601:37
lifelessI'm just doing a task for lynne, brb01:37
mwhudsonlifeless: factory.makeTeam takes a members=[] argument01:39
mwhudsonwould reduce some hair in tests01:39
lifelessmwhudson: thanks, I'll definitely do that in future, can tweak here if you like.01:44
mwhudsonlifeless: i think it would make the tests significantly easier to follow01:44
lifelesswill do01:44
mwhudsonta01:44
mwhudsonlifeless: in the browser doctest, "# count with 2 teams" should say 4 shouldn't it?01:46
lifelessoh bugger, yes.01:46
lifelesss/2/many/01:47
mwhudson:)01:47
mwhudsonfuture proofing!01:47
mwhudsonlifeless: in the same test class, how do you feel about s/initialize_view/record_view_initialization/ ?01:48
lifelesssure01:49
mwhudsonotherwise i think i'm fine :)01:49
lifelesschanges are done01:49
mwhudsoncan you push the branch again and i'll mark it so in the web01:49
mwhudsonah ok01:49
lifelesspushing in a second01:50
* lifeless ignores the 79 limit issue01:53
lifelessok push running now01:54
lifelessmwhudson: you can clicky click now01:56
lifelessmwhudson: (though I don't know why you wait)01:56
mwhudsonlifeless: it's been a somewhat distracted review from my end (my fault), i want to look over the diff again, may as well look over the one with the changes01:57
lifelessmwhudson: well its there01:58
lifelessthumper: nuke this:01:59
lifeless653+01:59
lifeless654+def test_suite():01:59
lifeless655+ return unittest.TestLoader().loadTestsFromName(__name__)01:59
mwhudsonlifeless: click clicked01:59
mwhudson+y01:59
lifelessthanks02:02
thumperlifeless: OK, should also remove it from the standard_test_template file then02:06
thumperbecause that is where it came from02:06
lifelessplease do02:07
lifelessif we had gettext02:07
lifelessthe pluralisation would be easier for you02:07
lifelessthumper: I know you didn't touch this02:08
thumperlifeless: tweaked and pushed02:08
lifelessbut02:08
lifelesssorted(02:08
lifeless76list(getUtility(IBranchCloud).getProductsWithInfo(num_products)))02:08
lifeless==02:08
lifelesssorted(getUtility(IBranchCloud).getProductsWithInfo(num_products))02:08
lifeless(sorted takes an iterable)02:08
thumperyep02:08
lifelessis there some reason to have a list( there ?02:09
thumpernope02:09
thumperremoved02:09
lifelessthe slave store by default.02:10
lifelessis a lie02:10
lifeless'the slave store.'02:10
thumperok02:10
lifelesswould be true02:10
thumperit used to be defaulted :)02:11
lifelessthats ok02:11
lifelesshave you tried the resulting queries on staging ?02:11
thumpertweaked02:11
thumperyes02:11
thumperI have02:12
thumperand it's fast02:12
lifeless269+02:12
lifelessthat new VWS should be removed; the auto formatter can do it for you I think02:12
thumperwhat is VWS?02:13
lifelessvertical white space02:13
thumper269+ what?02:13
thumperI see it02:13
thumperare we running the autoformatter?02:14
lifelessnot automatically02:14
thumperI thought we weren't02:14
lifelessbut you can run it by hand AFAIK02:14
thumperbut it makes my nice import lines messy02:14
lifelessits more stubborn than you02:15
thumpermy making something like "from storm.locals import And, Or" take 4 lines02:15
thumperwhich I've been told is OK02:15
lifelessSee, I think that should be fine on one line.02:15
thumperme too02:15
thumperso...02:15
thumperfix the autoformatter02:15
lifelessand the policy02:15
thumperagreed02:16
thumperso I can leave the VWS?02:16
lifelessoh the VWS is wrong regardless :)02:16
thumperwhy?02:16
thumperare we not separating canonical and lp?02:16
lifelessno, because they are both 'local'02:16
lifelesspep8 defines three classes of imports02:16
lifelessstdlib02:16
lifelessnonlocal02:16
lifelesslocal02:16
thumperok02:16
lifelessin that order02:16
thumperfixed02:17
lifelessso an external canonical.landscape import, say, would be nonlocal.02:17
lifelessI doubt the autoformatter is sophisticated enough for that yet, but that would be the right thing to do02:17
thumperI've moved on02:18
lifelessreviewed +102:19
lifelessclicky clicky set your commit message etc02:19
thumperta02:19
lifelesshow many ms do you think it will take to render now ?02:24
thumperno freaking idea02:39
thumperalthough wallyworld_ says 4202:39
lifelesslies02:49
lifelessWould be nice02:49
lifelessbut lies.02:49
=== lifeless changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [https://code.edge.launchpad.net/~lifeless/launchpad/bug-618367/+merge/34162] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
lifelessif anyone wants a break from coding and would like to review whats in the topic, that would be grand.07:11
noodles775Can someone rs the following testfix, otherwise I'll just rs it myself :) https://code.edge.launchpad.net/~michael.nelson/launchpad/test-fix-db-buildbase/+merge/3416608:04
lifelessdone08:23
noodles775Thanks lifeless it's on pqm already.08:23
lifelessspeaking of buffer 6508:30
lifelessdo you have time to do a review perhaps ?08:30
noodles775lifeless: I can, although gmb might be starting his OCR round now too?08:35
lifelessgmb: are you?08:35
noodles775lifeless: looking now.08:46
lifelessthanks!08:48
noodles775lifeless: have you seen the pre-iterator-hook option for DecoratedResultSet? It might allow you to prefetch the data for all results at once, rather than when each result item is accessed?09:16
lifelessnoodles775: yes, it's not sufficient09:17
noodles775OK09:17
lifelessbecause you need to discard the uninteresting columns so that you return Specification09:17
lifelessnot (Specification, .., ..,..)09:17
lifelessin all other regards it would be equal09:17
lifeless(this patch prefetches all at once; its just patches them up row by row)09:18
noodles775Yes, you would still do that with your decorator function, the pre-iter-hook just allows you to do your caching all at once.09:18
noodles775Oh, does it?09:18
* noodles775 looks again.09:18
lifelessit does one query09:18
lifelesson Specification, Person(aliased assignee), Person(aliased approver), Person(aliased drafter), EmailAddress(aliased for assignee), Account(aliased for assignee), EmailAddress(aliased for approver ...09:19
lifelessthe decorator does two things:09:19
lifeless - pulls out the Specification, so that it looks like we only queried Specifications to clients of the api09:20
lifeless - preloads the Person objects for assignee, approver and drafter for that row - no new queries are issued.09:20
lifeless[I has the tests to prove it]09:20
noodles775Yes, I don't doubt that that is what its doing, what I do doubt is that it's doing the preloading once for all people in your result set, rather than for each person individually.09:22
lifelessnoodles775: performance wise that doesn't matter though09:23
noodles775but that may not be possible here.09:23
noodles775Ah, ok.09:23
lifelessnoodles775: I don't see why it would be of advantage (or disadvantage)09:23
lifelessbecause:09:24
lifeless - we have to have a row decorator to return just Specification09:24
noodles775The advantage of the pre-iter-hook is that you can do one single query to pre-load all of your result set (or slice of your result set), rather than one query to pre-load each item in your result set. But as you say, it might not apply here.09:24
lifeless - doing it in pre_iter_hook would then save no function calls, but add one function call to use the pre_iter_hook09:24
noodles775Yes, its about saving queries, not function calls.09:25
lifelessnoodles775: if you're preloading via separate queries, I suspect you're doing it wrong :)09:25
lifelessnoodles775: though I can imagine a use case when the query optimiser goes beserk09:25
noodles775lifeless: Sorry, s/preloading/caching09:25
noodles775ie. currently cache_validity is called when each item in your result set is accessed, which may be the best way, I just wasn't sure if you'd considered whether it was possible to do this once for the result set instead.09:26
lifelesssure, yes.09:27
lifelessnote that cache_validity does no queries09:27
noodles775Ah, right. I see... because its ownly using the preloaded data. Gotit.09:27
lifelessnoodles775: thanks for doing this09:40
noodles775no probs, almost done. Looks great, so far the only question I've got is whether you think the call-sites might be easier to read if _validity_queries returned a dict instead of a tuple?09:41
lifelesshmm, happy to change that.09:42
lifelessnamedtuple would be ideal09:42
lifelessis that in 2.5 ?09:42
noodles775Not sure, but yeah, that would be ideal.09:42
lifelessI'll do a dict or namedtuple09:45
noodles775Great, r=me (I had one or two other questions). Thanks lifeless.09:49
lifelesscool09:54
lifeless_ is a convention in python for 'ignored'09:54
lifelessor unused09:54
lifelessnamedtuple is 2.609:56
=== gmb changed the topic of #launchpad-reviews to: On call: gmb || reviewing: - || queue: [https://code.edge.launchpad.net/~lifeless/launchpad/bug-618367/+merge/34162] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
gmblifeless, Is the branch in the queue the one that noodles775 just reviewed?09:56
noodles775Yeah, among other things (translatable strings, last result on console etc.).09:56
noodles775gmb: yep.09:57
gmbRighty.09:57
lifelessnoodles775: I like having it - its much more pithy than ignored_because_we_have_to_have_a_name_expr_here in range(...):09:58
lifelessnoodles775: Its the only single codepoint variable name I use ;)09:59
noodles775lifeless: fine by me, might be worth adding to the style guide.09:59
lifelessnoodles775: http://pastebin.com/Q2dAz2ts10:02
lifelessnoodles775: is my proposed diff10:02
lifelessplease let me know if you think it is an improvement10:02
lifelesslastly, _webservice for QueryCollector - its not exported from testing/__init__.py; it seems a bit inconsistent to me to reexport there and not elsewhere; we probably want to keep iterating and shuffling that stuff around anyhow...10:03
noodles775Yep.10:03
noodles775lifeless: and yes, I think the dict references are a bit more obvious than tuple indexes. Thanks!10:05
lifelessmy pleasure10:05
lifelessthanks heaps for the review10:05
noodles775np.10:05
lifelessI shall push that change and send to ec210:05
noodles775lifeless: erm, don't you need to change the callsites too?10:05
noodles775ah, that is the only one?10:06
lifelessnoodles775: two10:06
lifelessone in specification, one in person10:06
noodles775yep, never mind me.10:06
* noodles775 goes for a cuppa.10:06
wgrantgmb: I have a massive (~30 lines) branch for you, if you've time.10:29
gmbwgrant, Unless you're out by two orders of magnitude, in your estimation, I think I can handle that :)10:31
lifeless+110:31
=== gmb changed the topic of #launchpad-reviews to: On call: gmb || reviewing: wgrant || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
wgrantgmb: https://code.edge.launchpad.net/~wgrant/launchpad/bug-510180/+merge/3417510:33
gmbwgrant, Nice and subtle. I like it. r=me10:33
wgrantgmb: Heh. Thanks. Can you throw it into ec2?10:33
gmbwgrant, Will do.10:34
wgrantThanks.10:34
=== gmb changed the topic of #launchpad-reviews to: On call: gmb || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== henninge_ is now known as henninge
=== matsubara-afk is now known as matsubara
=== benji___ is now known as benji
bachi gmb can i get a review?  https://code.edge.launchpad.net/~bac/launchpad/bug-39212/+merge/3419614:24
gmbbac, Sure.14:24
=== gmb changed the topic of #launchpad-reviews to: On call: gmb || reviewing: bac || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
bacthanks14:25
=== leonardr changed the topic of #launchpad-reviews to: On call: gmb, leonardr || reviewing: bac || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
gmbbac, What's with the wacky indenting around line 93-96 of the diff?14:31
bacgmb: dunno.  let me look14:31
bacgmb: dewhacked14:33
gmbbac, Eyefankyoo14:33
gmbbac, ALso, line 109 needs to be indented by one more stop to be consistent.14:34
bacgmb: i am going to open a but about URIWidget not respecting displayWidth, too.14:34
bacgmb, yep, i caught that one too14:34
gmbbac, Thanks x214:34
baci think we have css that is harmful and should be removed, but i'm not certain of all of the areas affected.14:35
gmbFair neough.14:35
* gmb switches lcoations; brb14:35
gmbbac, I thought that ReST headers just had to have the underline rather than the overline, too.14:41
gmbe.g.14:41
gmbPerson's wikinames14:41
gmb===============14:41
gmb(etc.)14:41
bacgmb: really?  i've often seen over/under14:41
gmbbac, In that case, we have a problem with consistency14:41
bacgmb: if you know better that's one less line...14:41
bacgmb: duh14:42
gmb(Not least because I do underline only :))14:42
* gmb checks TestsStyleGuide14:42
gmbbac, The example in TestsStyleGuide uses underline only, so let's standardise on that.14:43
bacgmb: will do14:43
gmbThanks.14:43
gmbbac, r=me with the above changes.14:51
=== gmb changed the topic of #launchpad-reviews to: On call: gmb || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
=== Ursinha is now known as Ursinha-afk
EdwinGrubbsgmb: can you review lp:~edwin-grubbs/launchpad/bug-490659-series-timeout-part215:39
EdwinGrubbsoops, I meant to paste https://code.edge.launchpad.net/~edwin-grubbs/launchpad/bug-490659-series-timeout-part2/+merge/3415915:40
gmbEdwinGrubbs, Sure15:40
=== salgado is now known as salgado-lunch
gmbEdwinGrubbs, Those two tests are *awfully* similar. Any chance they could be unified in their own TestCase (e.g. TestFooBatchNavigators)15:47
EdwinGrubbsgmb: sure15:48
gmbEdwinGrubbs, Cool.15:48
gmbEdwinGrubbs, Other than that, r=me.15:48
=== gmb 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
=== 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
EdwinGrubbsthanks16:00
=== deryck is now known as deryck[lunch]
noodles775Hi abentley ! Will you have a chance view the changes I did in response to your review yesterday, or should I ask Leonard to take a look?16:19
noodles775https://code.edge.launchpad.net/~michael.nelson/launchpad/distro-series-difference-model/+merge/3408616:20
abentleynoodles775, I can have a look.16:20
noodles775Great, thanks.16:20
abentleynoodles775, re: getComments, I don't understand how implementing it directly on DistroSeriesDifference would be programming to interfaces, not implementations.16:40
noodles775abentley: It wouldn't. It would be programming to implementations, rather than programming to interfaces wouldn't it?16:41
noodles775ie. it would be using the comment model object etc., where as at the moment it only deals with interfaces. But I don't mind changing it.16:42
abentleynoodles775, sorry, I still don't understand why moving it there would be the wrong thing.16:42
noodles775abentley: It wouldn't be wrong, I just thought it was *better* to separate out so that the DSDifference model doesn't need to know anything about the comment model.16:43
abentleyYou just wind up calling a method on DistroSeriesDifferenceCommentSource that makes very implementation-specific assumption about DistrosSeriesDifference16:43
abentleyThe implementation of getComments *must* deal with the implementation of how those comments are stored.  The best encapsulation is to make it an instance method on DistroSeriesDifference.16:45
noodles775Calling a method on a utility that implements an interface, yes. And the comment model needs to know about the implementation of DSDifference, as its implementation references it. But as I said, I don't feel strongly about it.16:45
abentleynoodles775, my own rule is to be suspicious of staticmethods, because they are often cleaner as instance methods.16:48
abentleynoodles775, I don't think your rule applies to objects that implement an interface.16:48
noodles775oh, I only used a static method because that's what most of the classes in lp.code do.16:48
noodles775See lp.code.models.sourcepackagerecipe.SourcePackageRecipe.new, for example.16:49
abentleynoodles775, I'm glad you did.  Lots of people go around making "instance" methods that are really staticmethods, and I'm even more suspicious of those.16:49
noodles775OK, so you'd like me to remove DSDifferenceComment.getForDifference() and put that functionality directly in the existing DSDifference.getComments() right?16:51
abentleynoodles775, right.16:51
abentleynoodles775, An example of an "instance" method that is really a staticmethod is BranchSet.getRecentlyChangedBranches()16:52
noodles775abentley: pushing http://pastebin.ubuntu.com/486363/16:55
noodles775which passes with: bin/test -vvm test_distroseriesdifference -m test_distroseriesdifferencecomment16:56
abentleynoodles775, r=me.  Thanks for your changes.16:57
noodles775np, thanks for the review :)16:57
=== deryck[lunch] is now known as deryck
=== benji is now known as benji-lunch
=== matsubara is now known as matsubara-lunch
=== salgado-lunch is now known as salgado
=== benji-lunch is now known as benji
=== matsubara-lunch is now known as matsubara
bachi leonardr ... has the API infrastructure changed with respect to batching lately?  We're seeing OOPSes on getting all of the members of a very large team.18:57
leonardrbac, yes, see bug 627442, caused by bug 620508, recently triggered and incompletely worked around18:58
_mup_Bug #627442: lazr.restful and batching cause a FeatureError <oops> <Launchpad Foundations:Triaged> <https://launchpad.net/bugs/627442>18:58
_mup_Bug #620508: Slicing a ResultSet breaks subsequent len() calls. <Storm:New> <https://launchpad.net/bugs/620508>18:58
leonardrgary and benji are working on it18:58
bacleonardr: yep, that's the one!  thanks.18:59
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
=== jcsackett changed the topic of #launchpad-reviews to: On call: leonardr || reviewing: - || queue: [jcsackett] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.launchpad.net/launchpad/+activereviews
jcsackettleonardr: https://code.edge.launchpad.net/~jcsackett/launchpad/deprecate-official_rosetta/+merge/3422919:20
jcsackettlinting on this one is a bit odd, b/c it hit about a zillion files and the review would be unreadable with the fixes; i'll hit everything from make lint, but didn't push it up for now, so the MP and diff is legible.19:21
leonardrjcsackett, ok19:40
leonardrsalgado, can i ask you to take a look at https://code.edge.launchpad.net/~leonardr/launchpad/publish-tokens-2 ?19:42
leonardrjust the last two revisions19:42
leonardrabently isn't around, but it's all oauth stuff so you should be able to do it19:43
salgadoleonardr, r11454 and r11455?19:43
leonardrsalgado: actually, it looks like it's everything from 11452..1145519:47
salgadoleonardr, it'd be nice if you could generate an incremental diff for me to look, then19:47
leonardrsalgado: sure19:48
=== 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
=== jcsackett_ is now known as jcsackett
leonardrsalgado, http://pastebin.ubuntu.com/486435/19:51
leonardri converted a pagetest to a unit test, fixed a bunch of indentation, and did the interface switch i showed you earlier19:52
leonardrjcsackett, basic question: what is the difference between official_rosetta and translations_usage?20:01
jcsackett_leonardr: official_rosetta is a bool, translations_usage is an enum letting us know more about how a service is used.20:04
jcsackett_We're trying to phase out the official_ bools because they don't really provide enough data.20:04
=== jcsackett_ is now known as jcsackett
leonardrso 'official' means that launchpad is the official handler of a project's translations20:04
jcsackettRight, which isn't aleays enough data. For example in project configs we can't tell that translations aren't even being done, just that no translations are on LP.20:06
leonardrjcsackett, you should file a bug to track the work done to fix the xxx on line 422, and mention that bug in the xxx20:17
jcsackett leonardr ok.20:18
leonardryou should do the same for the xxx on line 45320:18
jcsackettGot it.20:18
jcsackettThere's a repeated xxx, I'll update them all.20:21
leonardrjcsackett, r=me with the bugs filed20:37
=== 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
lifelessleonardr: hi20:39
lifelessleonardr: I have a branch which was oked., but ec2 showed me the error of my code20:40
lifelessleonardr: I'd like you to comment on the last commit (only) on it, if you could20:40
leonardrlifeless, sure20:40
lifelesshttp://bazaar.launchpad.net/~lifeless/launchpad/bug-618367/revision/1147720:40
lifelessis the commit20:40
lifelesshttps://code.launchpad.net/~lifeless/launchpad/bug-618367/+merge/3416220:40
lifelessis the whole MP, if you want context20:40
lifelessbasically, all I do in the commit is move checks for 'valid person' from WHERE to the JOIN20:40
jcsackettleonardr: Thanks.20:41
=== jcsackett_ is now known as jcsackett
leonardrlifeless, what comes out of Person._validity_queries?20:46
lifelessleonardr: a dict20:46
lifelessleonardr: used in building queries20:46
lifelessPerson._all_members uses it, I refactored the code from Person._all_members to make this bit of it usable by specifications20:47
lifelessleonardr: I've shrunk the dict20:47
lifelessbecause it now did not need to return WHERE clauses at all.20:47
leonardrlifeless: ok, i see where you're moving stuff from the WHERE to the JOIN, and i see how someone with only non-preferred emails would be excluded20:50
leonardryou're also changing the account_table join so that it only picks up active accounts. is that right?20:50
lifelesssame bug20:51
lifelessif you had an account that wasn't active, you'd be excluded rather than being included but marked invalid20:51
lifelesssorry, the *row* would be excluded20:51
lifelesswhich drops the specification out20:51
lifelessin exactly the same way; the account row would match the old join, making account.status non-null, but then the where clause would exclude the whole row.20:52
leonardrok, i understand. and oyu took the code out of specificatoion.py because _validity_queries no longer returns any constraints20:54
leonardrr=me20:54
lifelessright20:56
lifelessthanks20:56
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== leonardr 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
=== Ursinha is now known as Ursinha-afk
=== matsubara is now known as matsubara-afk
=== salgado is now known as salgado-afk

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