/srv/irclogs.ubuntu.com/2010/08/20/#launchpad-dev.txt

thumperwhen I'm not trying to fix freaking annoying bugs that is00:02
mwhudsonthumper: canonical_url still?00:05
thumpermwhudson: yep00:05
mwhudson:/00:05
thumperfirstly rootsite from the canonical_url_data can be None00:05
thumpermoved the fix00:05
mwhudsonah00:05
thumperstill have things that blowup00:05
mwhudsonjust in the canonical url fix branch?00:06
thumperyeah00:06
mwhudsonor in your one that adds layers everywhere00:06
mwhudson:(00:06
thumperI think the "correct" checking is causing other errors00:06
mwhudsonyou mean exposing latent bugs?00:06
thumperyeah00:07
thumperhaha, found one00:07
mwhudsonwheee00:07
mwhudsonso we have 404s from this today?00:07
thumpernot sure00:07
thumperstill checking00:07
thumperlib/lp/translations/templates/product-translations.pt:47:                    <a tal:attributes="href target/fmt:url/+export"00:09
thumper+export is only on the translations page00:09
thumperhowever the canonical url of the product series is rootsite00:09
thumpermainsite sorry00:09
thumperso in the past this worked00:09
thumperusing the current request00:09
thumpernow it doesn't00:09
mwhudsonwell also fmt:url/canonical_url used to prefer the link on the site of the current request00:12
wgrantjelmer: Does your XB-* branch also publish non-XB-* fields?00:12
mwhudsonso it generated a good link before 3.0 even00:12
mwhudsonthumper: i guess the fix is target/fmt:url:translations/+export ?00:13
* thumper nods00:13
* mwhudson has surprising news: the blueprints code isn't very good00:17
* thumper is in shock00:17
wgrantI do not understand why Blueprint has been left to stagnate.00:17
wgrantKill it off or fix it... don't leave it to drag LP down!00:17
mwhudsonwe can't kill it without the ubuntu devs coming after us with pitchforks00:18
mwhudsoni imagine00:18
mwhudsoner00:18
mwhudsonmake run_all is stabbing me in the face00:19
mwhudsonbzrlib.errors.NoWhoami: Unable to determine your name.00:19
mwhudsoni guess make -k run_all is a sort of workaround00:19
mwhudsonor not00:20
wgrantWhy would run_all be committing?00:20
thumperwgrant: it calls run_codehosting00:21
thumperwgrant: which makes real branches00:21
wgrantOh.00:21
wgrantAnd makes fake branches.00:21
thumperfor those in the sample data00:21
wgrantRihgt.00:21
wgrantThat feature is annoying.00:21
wgrantI want to remove it.00:21
thumperheh00:21
thumperit wouldn't bother me00:21
thumperI never use the 'fake' sample data branches00:21
wgrant"Let me just restart the appserver to test this recipe change..."00:21
wgrant"WHERE did my branches go?"00:21
thumperwgrant: fix it and I'll approve00:22
thumperwgrant: we should clean codehosting on make clean00:22
thumpernot make run00:22
thumpermwhudson: I might have fixed the bugs with 3 .pt edist00:22
thumperedits00:22
thumper28 failing tests to check00:22
mwhudsonthumper: cool00:22
thumperall for translations +imports and +export00:23
mwhudsonhooray for OAOO00:23
thumperOAOO??00:23
mwhudson(Once And Only Once)00:23
thumperheh00:23
thumper:(00:24
thumpernope00:24
thumpernow links are being clicked and taken to translations sites00:24
thumperor other sites on a different subdomain00:25
thumperclucking bell00:25
wgrantWasn't there a bit of a proposal a while ago to remove the individual rootsites?00:27
thumperI don't recall00:28
thumpervague recollections00:28
thumperbut not likely00:28
thumperdown to 19 failures00:28
thumperLink has site=, canonical_url has rootsite= :(00:32
thumperyay consistency00:32
mwhudson+ layer + facet00:32
mwhudsonwoo00:32
* thumper looks for the sarcasterisk00:32
wgrantIs there any reason not to delete facets entirely?00:32
mwhudsonwgrant: no00:33
wgrantYay.00:33
=== beuno_ is now known as beuno
wgrantStevenK: The raw SQL in your branch makes me sad. But it looks good.00:33
thumperwgrant: I have a branch that removes all facet definitions for LP code00:33
thumperas in lp.code00:33
thumpernot all code in lp00:33
wgrantYay.00:34
wgrantIt still works correctly with tabs and breadcrumbs?00:34
thumperseems to00:36
* thumper sighs00:36
* thumper cries quietly00:39
jelmerwgrant: It just uses the control fields in the binary/source control fields, the XB- bit has already been stripped out at that point.00:41
wgrantjelmer: Oh, true.00:41
* wgrant fails.00:41
thumper17 failures...00:46
thumperlib/canonical/launchpad/pagetests/basics/notfound-traversals.txt takes a LONG time to run00:53
wgrantBut it's also deprecated.00:53
thumperbut no one will remove it00:58
* thumper taps fingers while the tests run....01:04
thumperagain01:04
jelmerthumper: does CodeImport have any unittests?01:05
thumperit should do01:05
thumperlp.code.model.tests.test_codeimport01:06
thumperwould be my first guess01:06
thumperand lp.code.stories.codeimport01:06
jelmerah, they're hidden under model/01:07
thumperjelmer: we have model tests under model01:07
thumperbrowser tests under browser01:07
thumperinterface tests under interface01:07
thumperyou know01:07
thumperwhere they should be :)01:07
wgrantI thought most apps just had lib/lp/APP/tests, and a couple had lib/lp/APP/browser/tests.01:09
jelmeryeah, that's what confused me01:09
wgrantI admit that model/tests probably makes more sense, though.01:10
thumperwgrant: most apps do01:14
thumperwgrant: but code blazes the "correct" way01:14
thumper\o/01:14
wgrantCode seems to be correct in a lot of ways :(01:14
thumperwgrant: we still have lp.code.tests, but I'm trying to get around to shuffling them into the right place01:15
thumperI've almost fixed all the translation story failures in my canonical_url branch fix01:15
* thumper crosses fingers01:15
james_wI saw a presentation from a github dev the other day, and his overview of how to contribute equated to "grab trunk, hack, go to web site, fork, add a remote in git, then push to that remote"01:17
wgrantBut Git's better!!!01:17
james_wso whereas I thought that server-side branch would be very useful for demos/beginners, they didn't take advantage of that, and had an even worse experience01:18
thumperinteresting01:18
thumperjames_w: I have a branch in progress (or feature if you will) that will mean you can register a project on LP, then go bzr push lp:project01:20
thumperand it will make that branch the trunk01:20
wgrantthumper: Who will own the branch?01:20
wgrantProject owner?01:20
thumperthere have been suggestions that we should also create a project01:20
thumperwgrant: the pusher owns the branch01:20
james_wcool, but that's not my use case for demos01:20
wgrantthumper: :(01:20
thumperwgrant: it could be changed01:21
thumperwgrant: it isn't hard01:21
thumperwgrant: but it should be a separate fix (IMO)01:21
james_wthe maintainer of the project if one is set?01:21
james_w(and it's a team that the pusher is part of)01:21
thumperthe push fails if the pusher doesn't have permission to set the link01:21
james_wright01:21
thumperah FFS!!!01:22
thumper✁☹01:22
james_warghl OOPS-1693EA6401:23
james_wthumper: I've just realised the workaround in buildrecipe for the bzr bug isn't going to cut it, as we execute bzr-builder with sudo01:24
mwhudsonjames_w: luckily* the lp-oops application seems to have fallen over01:25
wgrantjames_w: Hm, it wasn't tested?01:25
james_wwgrant: I guess not01:26
james_wI was one of those that ACKed it and didn't spot it at the time01:26
mwhudsonah, it's back now01:26
james_wapparently not finding my oops though01:40
james_wI think it's bug 518337 anyway01:40
_mup_Bug #518337: timeout oopses on person page <timeout> <Launchpad Bazaar Integration:Triaged> <https://launchpad.net/bugs/518337>01:40
thumper:(01:49
thumperthe counts that it adds up are taking over a second each01:49
thumperdown to 6 failing tests01:49
pooliehello thumper02:00
pooliethumper pitti says that https://code.edge.launchpad.net/~pitti/postgresql/common-dapper does not have an upgrade button for him02:01
poolieeven though it does seem to be a pack-0.92 branch02:01
* thumper looks02:01
thumperpoolie: we don't know what format it is in02:01
thumperpoolie: as it hasn't been touched forever02:02
thumpersince we don't know02:02
thumperwe don't show it02:02
* thumper sighs02:10
thumper4 failures...02:10
thumper3 failures02:38
thumper1 failure02:41
mwhudsonthumper: mind you, the lock/unlock trick will update the format now02:43
thumpermwhudson: it will02:43
thumperperhaps we should just twiddle everything we don't have formats for02:43
mwhudsonyeah, would be interesting02:44
mwhudsoni wonder how many weave branches there are...02:44
pooliei think you should02:46
thumperec2 landing now02:47
mwhudsonthumper: congrats02:48
thumperphew02:52
* thumper goes to have lunch02:53
StevenKwgrant: It makes me sad too. It also makes me sad that I'm missing a table.05:59
wgrantStevenK: Ah, PackageSetInclusion?06:07
StevenKwgrant: Yup06:07
StevenKI think I've figured out how to deal with that, too06:08
StevenKTwo extra queries :-(06:08
wgrantWhy so many?06:11
StevenKI was going to run through packagesetinclusion where the child packageset is the current parent packageset and change it to the child, and then do the same for the child packagesets06:12
StevenKwgrant: You don't agree, or I just confused you?06:19
wgrantYou confused me.06:20
wgrantThen I decided to go and pester my useless project team.06:20
wgrantSo, can you reword?06:21
StevenKwgrant: The problem is I have two many parent and child thing06:22
StevenK*things06:22
StevenKwgrant: I was going to run over packagesetinclusion where the child column is the parent packageset, and change it to the child packageset -- and then do the same for the parent column06:23
wgrantStevenK: Can't you do that (and don't you need to do it?) in one query, just mapping parent and child to the new packagesets?06:24
StevenKwgrant: I can't think of how to do in one query06:24
StevenKwgrant: Suggestions are welcome06:24
wgrantStevenK: I don't see how you could do it in two.06:26
wgrantINSERT INTO packagesetinclusion (parent, child) SELECT <map old parent to new parent>, <map old child to new child> FROM packagesetinclusion blah blah blah06:28
wgrantStevenK: How does my suggestion look?06:41
StevenKwgrant: I don't get how to expand <map old parent to new parent>06:58
* mwhudson runs away, good weekend all07:00
thumperwgrant: add some more details :)07:04
thumperwgrant: like the rest of the SQL07:04
thumperheh07:04
* thumper wants a beer07:04
wgrantthumper: I would have if I wasn't really busy. I will in half an hour :)07:04
wgrantAh, this is all within a parent-specific iteration. I seee.07:09
StevenKwgrant: So now you agree with me?07:20
* StevenK heads to the doctors07:21
wgrantStevenK: Well, I don't think that loop should be there.07:23
wgrantStevenK: But regardless, surely just running through all the child packagesets is sufficient. You don't need to run through the parents too -- that would get everything twice.07:24
jtvjml: just having a look (belated, I know) at your ReadyToCode checklist.  Is that really what "ready to code" means?  Doesn't some notion of approach and feasibility come in before that stage?07:25
poolienoodles775: hi, is the context of your mail about ppas "if this was done it would answer martin's question"?08:36
pooliehi jml, jtv08:36
jtvhi poolie08:36
noodles775poolie: Yeah, I saw you asking about ppa download logs, but didn't know the context of your irc chat... just sent the email in case it answers your question.08:37
pooliei want to find out how much people use old distroseries from our ppas08:38
wgrantIt's implemented, but waiting on LOSAs :(08:39
noodles775Yes, but we haven't yet been able to process the backlog of ppa logs (due to the memory issue). The email I sent will hopefully enable us to start processing them, but as wgrant says.08:39
nigelbwgrant: heh, poke spm in the eye?08:39
* wgrant sees no such email.08:40
* noodles775 forwards it to wgrant.08:40
wgrantnoodles775: But the memory issue should be fixed now, right?08:40
noodles775wgrant: apparently not. Well, when it was run, we still hit the issue (but were a bit optimistic with our default number of lines)... the email has more detail.08:41
wgrantnoodles775: Ah, I see. Thanks.08:41
wgrantI wasn't aware that work was actually ongoing to get it running.08:42
poolieand this will answer that question, when it's done?08:42
wgrantYou will be able to grab download counts per country and date for each .deb in a PPA.08:43
wgrantOnly through the API for now, though.08:43
poolieand then summarize it myself08:48
poolieanyhow, that would be very nice08:48
pooliei think i'd actually be more interested in knowing how many IPs polled the ppa08:49
pooliebut either will do08:49
* poolie thinks the less launchpad makes me use my mail client, the better08:49
wgrantI considered that. But there wasn't existing code to do that sort of thing, and it's less obvious how it should be counted.08:50
pooliewell, thanks very much for doing it08:50
wgrantIt'll be good once it can actually be turned on safely.08:51
adeuringgood morning08:53
=== almaisan-away is now known as al-maisan
mrevellHello09:12
jtvhi mrevell!09:15
StevenKwgrant: But that doesn't cover the case of parent packageset being copied too09:20
wgrantStevenK: Hm, does PackagesetInclusion work across distroseries boundaries?09:21
wgrantI guess so :(09:21
StevenKwgrant: So you finally agree with me, or you have a better idea?09:23
wgrantI don't agree that you need two queries. However, an inter-series PsI brings about a situation where the behaviour is undefined.09:27
wgrantWhat should be done in that case?09:27
StevenKal-maisan was suggesting looping over at the end09:28
wgrantTo do what?09:28
wgrantI don't actually know what the behaviour in this case should be.09:28
wgrantIt's certainly not obvious.09:28
StevenKTo copy the records from packagesetinclusion09:28
wgrantYes, but what does that mean? What if I have a PsI with its parent in karmic, and child in lucid. I am copying lucid into maverick.09:29
=== al-maisan is now known as almaisan-away
wgrantHow do I copy that?09:29
StevenKThe child packageset changes to maverick and the parent stays as karmic?09:29
wgrantI guess.09:30
StevenKThis is a little sub-optimal09:30
wgrantNow, what if it's the other way around?09:30
StevenKparent moves and child doesn't09:30
wgrantIn one of the directions, creating a new series is going to magically add more packages into an older series' packageset.09:30
StevenKYes, adding more children is dangerous09:31
=== almaisan-away is now known as al-maisan
al-maisanIsn't the idea that each series has its own package sets i.e. changes to the latter in a child series would not affect the parent series?09:33
wgrantal-maisan: Yes.09:34
wgrantBut there's nothing in PackagesetInclusion to require that.09:34
wgrantAnd while it will probably never happen, I realllly don't want to leave undesirable behaviour in something as critical as i-f-p.09:35
al-maisanI did not quite get the "creating a new series is going to magically add more packages into an older series' packageset" statement..?09:35
wgrantal-maisan: If I have a PackagesetInclusion with a parent in karmic, and a child in lucid, creating maverick from lucid will mean that karmic inherits from maverick too.09:35
al-maisanwgrant: you mean: it is possible to associate package sets across series in PackagesetInclusion i.e. there's no db constraint precluding that and you see that as a risk?09:36
wgrantal-maisan: Pretty much.09:36
wgrantI'm not sure how much of a risk it is.09:37
wgrantBut it needs to be examines.09:37
StevenKWell, we could run a query on staging?09:37
wgrantThere shouldn't be any data like that now.09:37
wgrantBut some could spring up in the future. And then i-f-p does something very confusing and dangerous without telling anybody.09:38
wgrantWe might just ignore the risk. But we need to explicitly decide that.09:38
StevenKWell, currently, i-f-p does nothing of the sort?09:38
wgrantOnce it starts copying PsI it will.09:39
al-maisanPackageset._addDirectSuccessors() (in lib/lp/soyuz/model/packageset.py, line 114) could be refined to prevent that from happening09:39
wgrantal-maisan: Having that restriction outside the DB makes me sad, but I guess it's the best that can be done.09:39
al-maisan.. and a db constraint on INSERT/BEFORE into PackagesetInclusion could be easily formulated09:40
al-maisanhmm .. there is already an INSERT/AFTER trigger on packagesetinclusion : packagesetinclusion_inserted_trig09:41
* al-maisan never tried having a trigger before *and* after an INSERT on the same table09:42
wgrantI guess that's there to update flatpackagesetinclusion.09:42
wgrantYep.09:42
al-maisanI'll do a quick test when I have some spare time and let you know09:42
al-maisanmaybe stub would know off the top of his head whether it's ok to have a trigger before *and* after an INSERT on the same table..?09:45
StevenKI don't see why that would be an issue, personally09:45
al-maisanif that works we could add the before insert trigger on packagesetinclusion and veto associations of package sets across distro series09:48
wgrantThat seems to make sense.09:48
wgrantAnd it makes me less wary about breaking Ubuntu...09:49
al-maisanwgrant: maybe you could open a bug and I can look into it in the next couple of days..?09:49
wgrantal-maisan: If you could. If not, I can look at fixing it at some point.09:53
* wgrant files.09:53
al-maisanwho ever gets to it first :)09:53
wgrantBug #62098909:55
_mup_Bug #620989: Package sets can include sets in other series <Soyuz:New> <https://launchpad.net/bugs/620989>09:55
al-maisanthanks09:57
al-maisanfor filing :)09:57
wgrantStevenK: Did hacking Storm's Insert to support 'INSERT FROM ... SELECT' prove difficult? I'm just wondering if you can warn me before I get lured into a deceptively simple trap.09:58
lifelessmthaddon: hi; just wanted to say I'm really glad to hear we can move forward on the additional QA environment soonish.09:58
lifelesswgrant: looked entirely straight forward to me09:58
mthaddonlifeless: yep09:59
lifelessmthaddon: if there is anything I can do to make it simpler/unblock things, please shout!09:59
mthaddonwill do09:59
lifelessmthaddon: separately10:00
lifelessdo you know when we're likely to get edge moving again :)10:00
lifelessas in, is it waiting a dev to change something, or losa cycles, or cron?10:01
mthaddonlifeless: hmm, it was something spm was working on, but he was ill today - I'll get out and push10:02
lifelessthanks10:02
StevenKwgrant: I didn't hack on it, lifeless said there ways around it, but my lack of knowledge about Storm defeated me10:16
wgrantAh, OK.10:17
lifelessis this evil ?10:18
lifelessmilestones = search_results._store.find(10:18
lifelessthe _store I mean10:18
lifelesswhy would that be needed?10:18
wgrantIt's wrong.10:18
lifelessgmb: ^ yo, its in bugtask, I blame you.10:18
lifelesswgrant: what should it be ?10:18
wgrantStore.of(search_results) is the right way to spell that.10:18
lifelessits blowing up because DRS doesn't have that attribute10:18
wgrantBut do you really want to do that rather than ISlaveStore(something)?10:19
lifelessI don't know10:19
lifelessI'm guessing it sometimes runs in posts10:19
lifelessand rather than explicit its trying to be magical.10:19
* gmb has no idea why that's there.10:20
lifelessmagical magical goodness. 'goodness'10:20
* gmb bzr blames...10:20
lifelessI have only 46 failing tests with this bugtaskset overhaul10:20
gmballenap, J'accuse!10:20
lifelesswell10:20
lifeless46 in my current reduce() phase10:20
lifelessI may have broken a tonne of other shit10:20
allenapgmb: What? :)10:21
gmballenap, Using _store. Apparently, this is bad.10:21
wgrant_. 'nuff said.10:21
allenapgmb: Yeah, I agree. Did I do it?10:21
lifelesses10:21
lifelessand my patch to cut hundreds of queries out of the landscape milestone 'later' page loads is blowing up in there10:22
lifelessbecause DecoratedResultSet doth not have _store10:22
gmballenap, Apparently. TBH, I just wanted lifeless to blame someone else so I could get back to my JS horrorshow uninterrupted.10:23
lifelesswhats the magic env variable again, for SQL output10:23
lifelessLP_DEBUG_STORM or something?10:24
allenaplifeless: I guess Store.of(self) should work fine there.10:24
wgrantlifeless: LP_DEBUG_SQL and LP_DEBUG_SQL_EXTA, IIRC.10:26
allenaplifeless: LP_DEBUG_SQL and LP_DEBUG_SQL_EXTRA10:26
wgrant*EXTRA10:26
lifelessallenap: its a BugTaskSet10:31
allenaplifeless: Oh balls.10:31
lifelessallenap: I'm trying Store.of(self)10:32
lifelessallenap: well, this is a reason not to have Sets as currently conceived10:32
lifelessand instead collections which are more query builders yada yada yada10:32
lifelessit would be nice to have an explicit mapper structure10:32
jmljtv, before which stage?10:34
jtvjml otp10:34
allenaplifeless: One option is to modify the c.l.webapp.adapter.get_store adapter so that you can use IStore(search_results).10:38
lifelessallenap: well, if Store.of(DRS) works, then I'll use that.10:39
allenaplifeless: Ah, yes, that would be better. I just assumed it wouldn't :)10:39
lifelessallenap: is there any reason this can't ?10:40
lifelessI mean, I assume it will be pain and heartache10:40
lifelessthe other question10:40
lifelessis that there is a query10:40
lifelessbringing in milestones already10:40
jmlin any case, hello10:40
lifelessit seems nuts to me to be querying bugtasks, extracting IDs and throwing away th eobjects and then requerying for milestones10:41
lifelesswhy not use the other query as an alias10:41
lifelessand just do a single query10:42
lifelessjml: ho hai10:42
allenaplifeless: IResultSet is delegated to the real result set, and that doesn't include __storm_object_info__ which is what Store.of() relies upon (via get_obj_info).10:42
lifelessDecorated is what you mean, and yes, Isee that10:43
lifeless(I'm in a big hariry branch stormifying bugtaskset10:43
lifelessnot entirely by choice10:43
lifelessanyhow, I'm going to take the 'do this later approach10:43
lifelessbut I stand by my 'two queries here is nuts' comment10:44
* lifeless encommenates10:48
allenaplifeless: I agree with the "two queries here is nuts" comment. I can't remember why it happened that way. If it was me, I may have not understood or been able to get aliases to work, and just got this working for expediency.10:48
lifelesssqlobject10:49
allenapPossibly.10:50
lifelesshmm11:00
lifelessmay be closing in on 'working'. zomg.11:00
lifelessjml: got a few ?11:01
jmllifeless, sure.11:01
wgrantlifeless: How much of the milestone index is SQL time?11:11
lifelessjml: you cut out11:13
lifelesswgrant: all of it11:13
lifelesswgrant: (more or lesss)11:13
lifelesswgrant: one query per private bug11:14
wgrantlifeless: Oh, I heard there was lots of Python.11:14
wgrantAnd that's why memcached was used.11:14
lifelesswgrant: see my perf tuesday mail this week11:14
lifelessyeah, not a memcache issue11:14
=== adeuring1 is now known as adeuring
lifelessjml: https://edge.launchpad.net/~bobthebuilder11:32
lifelessgnight11:48
jelmer'night lifeless11:51
deryckMorning, everyone.12:03
=== al-maisan is now known as almaisan-away
salgadobigjools, I assume it's ok to mark bug 510892 and bug 510894 as qa-untestable, right?12:25
_mup_Bug #510892: Upload policies are instantiated unnecessarily <cleanup> <qa-needstesting> <tech-debt> <wellington> <Soyuz:Fix Committed by salgado> <https://launchpad.net/bugs/510892>12:25
_mup_Bug #510894: Upload policy names are duplicated with the actual builds <cleanup> <qa-needstesting> <tech-debt> <wellington> <Soyuz:Fix Committed by salgado> <https://launchpad.net/bugs/510894>12:25
bigjoolssalgado: I think so, yes.12:25
jmlhow would I find out how many different pages we have?12:56
jml"find . -name '*.pt' | wc -l" gives me a rough approximation.12:57
jmlsinzui, perhaps you'd know?13:02
noodles775jml: the google analytics don't do that? (it's been a while since I've used it)13:02
noodles775(assuming we've got the ga js code on each page)13:03
jmlnoodles775, by number of pages, I mean "bug-index" would count as one13:03
jmlnoodles775, would GA help with that?13:03
noodles775jml: I'm not sure, but thought it would (given that each page has the ga js snippet)...13:04
wgrantDoes GA know the page ID, or just the URL?13:05
jmlnfi.13:05
noodles775wgrant, jml: ah, sorry - I see what you mean now.13:05
* jml is looking for the GA details.13:05
jmlgetting a list of page ids would be a good start.13:08
sinzuijml google analytics is the best answers13:11
jmlwhat makes up page ids?13:11
wgrantClass:+page13:12
wgrantOr you mean what calculates them?13:12
jmlwell, what I *actually* mean is "why isn't there a script I can run to get me a list"13:12
jmlbut yeah, what calculates them.13:12
sinzuijml: flacoste wrote it. It is object + view and I recall it does not work if we registered an object with a template13:14
wgrantsinzui: See constructPageID in c.l.w.publication13:15
wgrantEr.13:15
wgrantjml: ^^13:15
jmlwgrant, thanks.13:15
wgrantBut not useful for your purposes :(13:15
jmluseful enough.13:16
jmlNow that I know how it's calculated, I bet I could extract the info I need from ZCA13:16
wgrantWell, views are just adapters, so yeah.13:19
jmlalthough I guess there's no way of distinguishing views that are pages from views that are not.13:20
wgrantWell, lots that aren't will have 'portlet' in the view name. And most of the rest that aren't will have '-macros' in the template name.13:21
jmlheuristics yay13:21
wgrantYes :(13:21
jmlok. shelving this problem for now. perhaps after lunch, code review, meetings, email and my weekly organizational cleanup.13:24
=== mrevell is now known as mrevell-lunch
salgadobigjools, I've got a branch which changes a bunch of tests that were relying on mixed uploads to not rely on that anymore, as those don't happen in practice.  would you like to review it?13:40
wgrantI need to refactor stuff so we can remove most of those test uploads.13:44
derycksinzui, hi.  I'm having a poke at your email and branch about heat and bug counts now.13:57
sinzuideryck, thanks13:59
=== mrevell-lunch is now known as mrevell
derycksinzui, so if I'm playing locally, say at https://launchpad.dev/ubuntu/hoary/+needs-packaging ...14:20
deryckah, crap.  he has gone.14:20
bigjoolssalgado: I don't need to see that, you can use the OCR if you don't mind14:26
salgadobigjools, sure, that's fine with me14:27
bigjoolscheers14:27
=== mthaddon changed the topic of #launchpad-dev to: Launchpad Development Channel | Week 1 of 10.09 | PQM is OPEN | firefighting: - | https://dev.launchpad.net/ | Get the code: https://dev.launchpad.net/Getting | On-call review in irc://irc.freenode.net/#launchpad-reviews | mailman down approx 13:30 - 14:30 UTC for lucid upgrade
=== almaisan-away is now known as al-maisan
derycksinzui, so I see two things that I believe will fix your need-packing page counts....15:28
derycksinzui, one is to move your calls to task.target.recalculateBugHeatCache() inside updateHeat, not setHeat....15:28
derycksinzui, and the other is that you need to filter out dupes as well as closed bugs.15:28
sinzuiahh@15:29
sinzuideryck, thank you very much15:29
sinzuiI had not considered dupes at all15:29
derycksinzui, no worries.  I'll reply on list, too, just for the sake of anyone else playing along.15:30
=== mthaddon changed the topic of #launchpad-dev to: Launchpad Development Channel | Week 1 of 10.09 | PQM is OPEN | firefighting: - | https://dev.launchpad.net/ | Get the code: https://dev.launchpad.net/Getting | On-call review in irc://irc.freenode.net/#launchpad-reviews
=== Ursinha is now known as Ursinha-lunch
=== deryck is now known as deryck[lunch]
=== Ursinha-lunch is now known as Ursinha
=== al-maisan is now known as almaisan-away
jmlI'm stopping.19:17
jmlHave a good weekend everyone.19:17
lifelessciao19:47
lifelesswhats the batch size trick again20:10
lifelessto turn batching off20:10
mtaylormerging accounts seems to lose karma ...20:13
lifelesshow so20:19
=== Ursinha is now known as Ursinha-bbl
EdwinGrubbslifeless: what is LBYL?22:17
lifelesslook before you leap22:21
lifelessaka EAFP22:23
nigelbEuropean Association of Fish Pathologists?22:34
lifelesseaier to ask forgiveness than permission22:34
nigelbAha22:34
nigelblifeless: wait a minute, didn't I see you before I went to bed last night?22:35
nigelblong day/22:35
lifelesstheres a general pattern in python, and it applies to performance as well, where asking-in-advance can be slow (unless fancy caching is employed) compared to just doing the thing (but once and only once)22:35
lifelessnigelb: its 0935 here22:35
nigelblifeless: ok, my mistake.  3 am.  should sleep.22:36
lifeless:P22:42

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