/srv/irclogs.ubuntu.com/2013/01/17/#launchpad-dev.txt

StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/drop-populate-specification-aag/+merge/14362701:31
wgrantStevenK: Self-review?01:42
StevenKwgrant: Happy to do, wondering if you agree with deciding to not run it against sampledata.01:44
wgrantStevenK: I forget -- will it un-null access_grants if it's public?01:45
wgrantIf it will, then it's not a no-op and should be run01:45
wgrantBut IIRC it leaves access_grants null in that case, so it will be a no-op01:45
StevenKwgrant: http://pastebin.ubuntu.com/1540007/01:49
wgrantRight, no-op01:50
wgrantStevenK: Need any help with the model branch?02:30
StevenKwgrant: Yes02:41
wgrantPush branch, show test failures :)02:41
StevenKwgrant: http://pastebin.ubuntu.com/1540093/ is the diff; test failures are http://pastebin.ubuntu.com/1536679/02:41
StevenKwgrant: I can push the branch if you'd prefer that to a diff.02:45
wgrantStevenK: Have you replicated the Product.active check that was in visible_specification_query?02:46
StevenKOh god02:46
StevenKThat's so not the place for it02:47
wgrantMmm, it was not unreasonable02:47
wgrantGiven that the spec search stuff isn't in a single place, like bugtasksearch is02:47
StevenKNow I will have to revert the tables bit :-(02:48
StevenKMy query seems to fail03:47
StevenKIt won't return distribution specs :-(03:47
wgrantStevenK: You failed to left join properly03:48
wgrantYou need to left join product and then say (product.active IS NULL or product.active)03:49
wgrantStevenK: Did you see danilos' confirmation of my suspicion this morning?03:58
wgrantThe deps thing is indeed a regression from the privacy work, so your rewrite will fix it03:58
StevenKI'm not sure if my rewrite is brutal enough for that yet03:58
StevenKAnyway, looking at that next.03:59
StevenKwgrant: And yes, I saw it because Curtis asked me about it.04:00
wgrantWell04:01
wgrantThe rewrite involves reverting all the previous changes04:01
wgrantSo it will be :)04:01
StevenKIt does not04:01
wgrant:(04:01
StevenKThere are fair amount of changes which are required, like passing users around04:02
wgrantAh, of course04:02
StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/use-specification-aag/+merge/14363004:09
wgrantStevenK: r=me with a comment, but please check performance on DF first04:16
StevenKwgrant: I think I need a LeftJoin in sharingjob, too04:20
wgrantStevenK: Ah, yes, so you do04:21
StevenKwgrant: So http://pastebin.ubuntu.com/1540213/04:21
wgrantIn fact sharingjob shouldn't be considering product.active at all04:21
StevenKwgrant: I can change it to only append privacy_query[-1], but that's a bit horrid04:22
wgrantYeah, that's not a solution :)04:23
wgrantI guess do the left join but otherwise leave it as it is04:23
StevenKI can shift out the product stuff out of get_specification_privacy_filter and do it all callsites bar that one, but I like that even less04:24
StevenKwgrant: DF has been patched, and has actually swapped back in enough to render pages.04:34
StevenKwgrant: The main query of blueprints.dogfood.l.n/~ takes 240ms04:39
StevenKThe old query on prod is roughly the same, but prod is a lot faster than DF04:41
StevenKFor https://blueprints.dogfood.launchpad.net/nova , the query is 10ms04:45
wgrantStevenK: Grab an explain analyze of the slow query04:46
StevenKOn DF, or prod?04:47
wgrantDF04:48
wgrantWe know that prod's is terrible :)04:48
StevenKwgrant: http://pastebin.ubuntu.com/1540253/04:49
StevenKwgrant: And the query http://pastebin.ubuntu.com/1540256/04:50
wgrantStevenK: Right, that looks fine.04:52
wgrantIt's terrible, but that's not the fault of your changes04:53
StevenKHeh04:53
StevenKDistribution is quick, but that doesn't involve the new columns at all, Product is like 10ms04:54
wgrantHm, it should involve the new columns04:54
StevenKDistribution doesn't filter at all04:55
StevenKBy access_policy/grants, I mean04:55
StevenKNo private distributions, ergo no private blueprints for any distribution.04:55
wgrant:/04:56
wgrantIt just assumes that they're all public04:56
wgrantDoesn't even check04:56
StevenKI can fix that, if you wish04:56
StevenKWhich would involve Storm-ifying it04:57
wgrantWhich is not a bad thing at all :)04:57
wgrantIdeally we'd unify blueprint search like bug search is04:57
StevenKWell, I can do that too ...04:58
wgrantThat's probably a bit more of an effort04:58
wgrantBut maybe04:58
StevenKwgrant: http://pastebin.ubuntu.com/1540277/05:06
wgrantStevenK: orlf05:09
wgranthave you looked at the query log for Person:+specs?05:09
StevenKYeah, I glanced it05:09
wgrantFirst it checks if there are any specs05:10
wgrantThen it gets the specs05:10
wgrantThen it counts the specs05:10
wgrantThen it checks if there are any specs05:10
wgrantStevenK: You could get ops to check the new query on prod05:10
StevenKHaha05:11
wgrantGiven it's all populated there now05:11
StevenKwgrant: The EXPLAIN or just run the query for timing?05:11
wgrantexplain analyze05:11
wgrantbut oh god have you tried the old query on DF?05:11
wgrantYour eyes may burn05:11
StevenKShow me?05:11
wgrant1.4s with tonnes of merge joins05:12
StevenKHaha05:12
wgranthttp://paste.ubuntu.com/1540286/05:12
wgrantThe new one could be considered to be a marginal improvement05:12
StevenKHaha05:13
StevenKDid you spot your typo in the name field?05:13
wgrantyes, before I submitted but I'm sick enough that I really couldn't be bothered fixing it05:13
StevenKwgrant: So, specificationsearch, or leave it?05:14
wgrantDepends on what sort of callsites we have05:14
StevenKBah, is_not_in doesn't exist05:31
wgrantNot(...is_in)05:37
StevenKYeah05:37
StevenKwgrant: http://pastebin.ubuntu.com/1540315/ works, do you want it in the branch?05:37
wgrantStevenK: Can Specification.completeness_clause now be Stormified?05:38
wgrantNot sure what other non-Storm callsites there would be05:38
wgrant+                clauses.append(05:39
wgrant+                    SQL('Specification.fti @@ ftq(%s)' % quote(constraint)))05:39
wgrantfti_search is a helper for that, IIRC05:39
StevenKwgrant: Yeah, I just switched to that05:39
StevenKDistribution, DistroSeries, Product and ProductSeries want it05:40
wgrantAre they all stormified?05:41
StevenKSorry, DistroSeries, ProductSeries and ProjectGroup05:41
StevenKAnd all three are not05:41
wgrantHee hee05:43
wgrantI'll leave the explanation of that to the reader05:43
StevenK"When we get around to specificationsearch"05:44
StevenKWhich I'm getting dangerously close to just starting05:44
StevenKBecause this is just pathetic05:44
wgrantAh05:50
wgrantNot actually exploitable, sadly05:50
wgrantSince permissions for private specs don't seem to be precached05:51
wgrantSo you just get a 40305:51
wgrant(but that also means there's probably a timeout bug on any page that lists lots of private specs)05:51
wgrantStevenK: So, how do you feel about doing specificationsearch? :)05:51
wgrant'cause what we have today is sort of buggy as shit05:52
StevenKwgrant: So, guess what I started about 5 minutes ago05:52
wgrantStevenK: Bug #1100617 is relevant06:01
_mup_Bug #1100617: Blueprint searches don't precache permission checks <blueprints> <fallout> <private-projects> <timeout> <Launchpad itself:Triaged> < https://launchpad.net/bugs/1100617 >06:01
czajkowskimorning08:19
stub1link to online help on the recipe page seems to have disappeared10:40
=== stub1 is now known as stub
gmbbenji, gary_poster, bac: So, in a fit of giddiness I tried to get around the only-one-external-link-in-a-card problem; if you have time to look at it, see https://code.launchpad.net/~gmb/lp2kanban/cards2workitems/+merge/143543 for the latest update. If not, I'll just land yesterday's work and make a new branch for the new stuff.14:22
benjigmb: cool; I may have time later today to look at it14:23
* gary_poster on call14:24
=== slank_away is now known as slank
gmbbenji, Okay; in that case I'll land yesterday's work (I'm hoping to be able to show this off to people in Austin) and make a fresh branch and merge proposal.14:29
benjik14:29
gmbbenji, New merge proposal is here for your delectation when you get a chance: https://code.launchpad.net/~gmb/lp2kanban/dont-rely-on-external_system_url/+merge/14370014:38
benjigmb: cool14:38
=== Ursinha_ is now known as Ursinha
=== _mup__ is now known as _mup_
=== salgado is now known as salgado-lunch
=== salgado-lunch is now known as salgado
cjwatsonHm - is it just me or is lib/lp/soyuz/templates/binarypackagepublishinghistory-listing-detailed.pt dead?  I can't actually see a way to get at it, short of URL-hacking to add +listing-details16:47
cjwatsonMaybe it is there somewhere and I'm just too stupid to find it.16:56
czajkowskiI'd hardly think you could you of all people cjwatson are stupid !17:00
deryckcjwatson, my approach to that if I can't find any real reference to it is to remove the zcml that hooks up the template, run tests, and see what breaks. you're probably right.17:18
=== yofel_ is now known as yofel
=== mthaddon` is now known as mthaddon
=== deryck is now known as deryck[lunch]
=== matsubara is now known as matsubara-afk
lifelessczajkowski: LP sets a pretty high bar on smarts-needed-to-tell-whats -used :)19:30
=== deryck[lunch] is now known as deryck
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== StevenK_ is now known as StevenK
wgrantcjwatson: I think DASBPR:+index used to use it, but hasn't since 3.023:13
wgrantIt's unused now, and I think the only callsite of its source counterpart is DSSPR:+index23:14
wgrantEverywhere else uses +listing-archive-extra23:14
wgrantIIRC23:14
cjwatsonArgh, you know unused code is old when bzr log goes back to a Mark commit23:36
cjwatson(Not the same thing)23:36
wgrantHeh, yes.23:37
wgrantcjwatson: What was it?23:37
cjwatsonlib/lp/soyuz/browser/publishedpackage.py - removing it as part of my current branch23:38
* cjwatson wonders if database/schema/launchpad.html still has a useful purpose23:40
cjwatsonAside from indicating that publishedpackage was once "a very large view"23:40
cjwatsonwgrant: How do I actually get to a BinaryPublishingRecordView in the webapp?  I can't come up with a suitable URL23:41
wgrantHuh23:43
wgrantHow has publishedpackage survived...23:44
wgrantI deleted some related bits years ago23:44
wgrantBut apparently missed the browser stuff23:44
wgrantI guess I didn't think it existed :)23:44
wgrantAh23:44
wgrantAnd it doesn't actually mention 'publishedpackage' anywhere in it, so a grep would have failed23:44
wgrantlaunchpad.html can probably die23:45
cjwatson$ wc -l database/schema/launchpad.html23:45
cjwatson30685 database/schema/launchpad.html23:45
wgrantIndeed23:46
* cjwatson removes :)23:46
wgrantcjwatson: Also, https://launchpad.net/~wgrant/+archive/ppa/+binarypub/25603241/+record-details23:46
cjwatsonAh.  Are there no more polished paths that use stuff from there?23:49
cjwatsonThis is in aid of trying to figure out which bits of the webapp I need to update to show phased_update_percentage23:49
wgrantcjwatson: That's the only URL, but ZCML could reference those views.23:49

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