/srv/irclogs.ubuntu.com/2012/11/27/#launchpad-dev.txt

StevenKwgrant: http://pastebin.ubuntu.com/1390509/00:17
wgrantStevenK: searchable_names, maybe? Not sure00:32
wgrantThat otherwise sounds reasonable00:33
wgrantHmm00:33
wgrantThough hmm00:33
wgrantThis will sometimes end up too long for pg_trgm to cope with, I suspect :(00:33
StevenKOh? pg_trgm has a limit?00:34
wgrantIndices in general are sort of limited. Try inserting a very large string and see what happens00:34
wgrantIt will probably object00:35
StevenKINSERT 0 100:39
StevenKThat's inserting a row into packageupload with distroseries = 1, pocket = 0, archive = 1 and search_text = 'a'*5000000:40
wgrantHuh00:40
wgrantInteresting.00:40
wgrantALthough it may optimise because it's all a00:40
StevenKI'm not sure about typing out 50000 random characters00:41
StevenK:-)00:41
wgrantAnyway, I must be off for a few hours00:42
wgrantIf it works, then great ;)00:42
wgrant:)00:42
StevenKwgrant: Well, how about we cook up a query to fetch the BPNs for a large source and set search_text to that and see what happens00:42
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== Ursinha_ is now known as Ursinha
adeuringgood morning08:49
=== frankban changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On-call reviewer: frankban | Firefighting: - | Critical bugs: ~170
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
adeuringfrankban: could you pease review this MP: https://code.launchpad.net/~adeuring/launchpad/lp-view-for-timelneproductseries/+merge/136374 ?11:35
frankbanadeuring: sure, on it in a minute11:36
adeuringfrankban: thanks, no hurry (enjoy lunch!)11:36
=== rick_h_ changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On-call reviewer: frankban, rick_h | Firefighting: - | Critical bugs: ~170
=== almaisan-away is now known as al-maisan
rick_h_adeuring: r=me on the review, I grabbed it frankban13:24
adeuringrick_h_: thanks!13:24
frankbanrick_h_: thanks13:36
=== matsubara is now known as matsubara-lunch
=== al-maisan is now known as almaisan-away
czajkowskijtv1: there are two of you :) jtv15:08
rick_h_abentley: ping, I'm about to get my car but while I pay/head home do you have time to look over my storm-ization of this https://pastebin.canonical.com/79162/ ?15:08
abentleyrick_h_: certainly:15:09
rick_h_abentley: I've still got to get tests going against it, but I wanted to do a side vs side write and wonder if anything jumps out at you on it15:09
rick_h_ok, going to be afk for a little bit. Will catch up.15:09
rick_h_thanks!15:09
jcsackettfrankban, rick_h_: can one of you take a look at https://code.launchpad.net/~jcsackett/launchpad/404-not-403-for-private-blueprints/+merge/13644215:11
frankbanjcsackett: on it15:23
jtvczajkowski: setting up  a new system...15:28
czajkowskijtv: ahh I see15:28
czajkowskijtv: I had a user of lp translations who was unsure how to progress on an issue so asked them to mail lp-users15:28
jtvThat's going to be a bit broad.  :/15:29
abentleyjtv: For private projects, we need to ensure there are no translations.  It seems we need to ensure translations are disabled, there are no POTemplates, no ProductSeries has automatic imports.  Am I missing anything?15:33
jtvabentley: that almost covers it... ideally you don't want anything on its translations import queue either.15:36
abentleyjtv: Okay, I'll include that.15:36
czajkowskijtv: which part is going to be broad...15:37
jtvczajkowski: it's going to cover a lot of people.15:37
czajkowskiah I see15:38
jcsackettfrankban: thanks!15:42
frankbanjcsackett: my pleasure15:45
rick_h_ok, back yay for new tires15:48
=== matsubara-lunch is now known as matsubara
abentleyrick_h_: So, the first thing is that I recommend using lp.blueprints.model.specification.get_specification_filters16:02
abentleyrick_h_: If for some reason you can't, I still recommend using fti_search rather than specifying it manually.16:02
rick_h_abentley: ah ok, I thought I had seen something like that but when I searched a couple of other models found it done that way16:03
abentleyrick_h_: It's only a month or so old.16:03
rick_h_ah, makes sense then16:03
rick_h_and yea, get_specification_filters looks good as well. Thanks16:05
abentleyrick_h_: Also, using ProductSet.getProductPrivacyFilter does not address your bug, because that doesn't ensure the user can view the specification.  Use visible_specification_query16:05
rick_h_ok, I was going to ask about that as it seemed a bunch of magic for storm to auto join/etc to get those filters to work16:06
abentleyrick_h_: Storm doesn't have a particularly clean way of doing composition with left joins, but using left joins was by far the most efficient way, so visible_specification_query returns both a list of tables and a list of clauses.16:09
rick_h_abentley: right, so the tables goes into a using() and looks like it's got specifications so should be complete there16:10
rick_h_is that prejoin right? It was the same api as used before, but that seems to match what I could find in the api docs for storm16:10
abentleyrick_h_: AFAIK, Storm does not support prejoins, so I was surprised to see it there.  Have you tested it?16:11
rick_h_no, not yet.16:12
rick_h_abentley: ah, it's on the api under SQLObjectResultSet :/16:13
abentleyrick_h_: Okay, so I would expect that to fail.  There are workarounds you can steal, though, if you need to support prejoins.16:13
rick_h_abentley: ok yea. I'll look for some more examples then.16:13
rick_h_thanks for the quick sanity check and pointers to the helper methods16:13
abentleyrick_h_: See blueprints.model.specification.HasSpecificationsMixin._preload_specifications_people16:16
=== beuno is now known as beuno-lunch
=== beuno-lunch is now known as beuno
abentleyrick_h_: But see if you need 'em first.  A lot of prejoins are premature optimizations.16:17
rick_h_abentley: well right now I"m just trying to port over all the old code to storm and it was there as a prejoin if the argument was passed in16:17
rick_h_I can look for uses and go from there16:18
rick_h_bah, it's default True so it just might be left out of the arg clause16:20
rick_h_man...that preload_specifications_people is fugly16:22
=== deryck is now known as deryck[lunch]
=== frankban changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On-call reviewer: rick_h | Firefighting: - | Critical bugs: ~170
czajkowskirick_h_: you there?17:46
rick_h_czajkowski: yepper17:48
czajkowskirick_h_: whats the link to the bugs ye have opened for P bp ?17:49
rick_h_translation: links to bugs we're working on around private blueprints?17:50
czajkowskiyes sorry17:50
czajkowski:/17:50
rick_h_czajkowski: can you see our kanban board?17:50
czajkowskireally have to stop shortening words17:50
rick_h_single letter variable names are bad :P17:50
czajkowskiyes17:50
czajkowskiand yes I can17:50
czajkowskiso just look there17:50
rick_h_yea, that'll be the most up to date.17:51
czajkowskigrand job17:51
rick_h_if it's not there then we're not aware/it snuck in so let us know17:51
czajkowskithanks17:51
=== deryck[lunch] is now known as deryck
=== yofel_ is now known as yofel
rick_h_abentley: do you recall the use of Compile to dump a resultset query?19:15
abentleyrick_h_: You should use Store.compile, but you should really configure postgres to emit queries in the log, because that shows the substituted variables.19:16
rick_h_yea, you're right19:16
abentleyrick_h_: log_statement='all' in /etc/postgresql/9.1/main/postgresql.conf will do the trick.19:17
rick_h_abentley: rgr, updating now. thanks for the reminder to quick doing it the hard way19:17
abentleyrick_h_: np.19:17
=== rick_h_ changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On-call reviewer: - | Firefighting: - | Critical bugs: ~170
=== mrs_poolie is now known as cinerama
=== cinerama is now known as mrs_poolie
wgrantrick_h_: Do you know about the LP_DEBUG_SQL=1 environment variable, and the convert_storm_clause_to_string function?21:30
sinzuiwgrant, https://code.qastaging.launchpad.net/~sinzui/impressive/lirc-0/+merge/29161/++oops++22:05
sinzuiwgrant, StevenK, does this relate to bug 6297622:34
_mup_Bug #62976: Soyuz should not allow duplicated packages in NEW/UNAPPROVED queue <boobytrap> <lp-soyuz> <oops> <rfwtad> <soyuz-upload> <Launchpad itself:Triaged> < https://launchpad.net/bugs/62976 >22:34
StevenKwgrant: http://pastebin.ubuntu.com/1393012/22:39
cjwatsonah, well that might make my long-stalled approved branch more sensible ...22:41
StevenKcjwatson: That was the plan22:42
StevenKIf it's searchable_names you're talking about.22:42
StevenKwgrant and I came up with a plan yesterday22:42
StevenKNot quite as good as The Brilliant Disclosure Plan, but still a good one22:42
wgrantcjwatson: Yeah, we had a +queue search timeout bug, so I decided we might as well fix that and yours once and for all22:45
wgrantStevenK: https://bugs.launchpad.net/bugs/16399722:47
_mup_Bug #163997: Subject of Soyuz binaryful acceptance emails, emails, emails, emails, emails, emails stutter <lp-soyuz> <Launchpad itself:Won't Fix> < https://launchpad.net/bugs/163997 >22:47
wgrantsinzui, StevenK https://www.youtube.com/watch?v=H3OJvbnTnE822:47
StevenKwgrant, sinzui: http://sphotos-c.ak.fbcdn.net/hphotos-ak-prn1/16056_378137315607151_2018832644_n.jpg22:47
cjwatsonStevenK,wgrant: Right.  Every so often I've been looking at that branch and contemplating inserting a feature flag, and then giving up in despair at how horrible it is.22:53
StevenKI am looking forward to making IPackageUploadSet.getAll() a shadow of its former self.22:54
StevenKwgrant: The query is still baking?23:40
wgrantStevenK: Yeah23:43
wgrantStevenK: Something like http://paste.ubuntu.com/1393183/23:55
wgrantAlthough we also need to do something with PCJs, I guess23:55
StevenKI don't think you need array_agg for the source, there will be at most one source23:57
wgrantOh, there's actually a UNIQUE constraint for that, indeed23:57
wgrantI know we only ever have one, and other stuff will break if there's more than one, but thought I might as well cope :)23:58
wgrantBut there's indeed a constraint23:58

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