text stringlengths 15 499 |
|---|
[03:14] <kfogel> beuno: so what happened with your laptop yesterday? Did you ever get it working again? |
[03:20] <kfogel> sinzui: I changed bug #386797 to invalid; hope that was okay. |
[03:20] <ubot3> Malone bug 386797 in launchpad-foundations "Enable distributed content development" [Undecided,Invalid] https://launchpad.net/bugs/386797 |
[03:21] <sinzui> kfogel: not at all |
[03:23] <kfogel> sinzui: not okay? |
[03:23] <kfogel> :-) |
[03:23] <kfogel> sinzui: "not at all" is ambiguous in this context, but I assume you meant "no problem at all" |
[03:24] <sinzui> kfogel: it is okay. Francis would ignore it for a few years. I even suggested that he spend a day Triaging bugs because he could close 50 of them |
[03:24] * jml instruments |
[03:24] <jml> closing 50 bugs would be nice |
[03:25] <sinzui> Since foundations was the old Launchpad, Francis could easily transfer 50 bugs to each our our porjects |
[03:25] <jml> that would be less nice |
[03:25] <kfogel> sinzui: I've been a bit hands off about triaging bugs, not knowing if I should be making decisions like that. Should I be a bit more aggressive and assume that mistakes can be corrected? |
[03:26] <sinzui> We should be honest |
[03:26] <sinzui> If we really don't intend to do it, close it |
[03:26] <thumper> jml: how about: BranchCollection.getTeamsWithBranches(person): |
[03:26] <thumper> """Return the Teams that person is a member of that have branches.""" |
[03:26] <kfogel> sinzui: agreed. It's not like the record of the conversation is lost if we close it anyway. |
[03:27] <sinzui> Every bug in blueprint, launchpad-answers, and launchpad-registry really should be fixed or implemented. I wish that was true of foundations |
[03:27] <spiv> kfogel: right. The cost of a mistake there is pretty low. The worst is probably offending the reporter, which is a pretty bad thing to do, but ignoring their report is probably just as bad... |
[03:27] <jml> thumper, what's the question exactly? |
[03:27] <thumper> jml: comments on a BranchCollection method to return a result set of People |
[03:27] <jml> thumper, ahh ok. |
[03:28] <thumper> jml: good or not? |
[03:28] <thumper> jml: it'd use the _getBranchIdQuery |
[03:28] <jml> thumper, my spider sense is tingling |
[03:28] <jml> thumper, why do you want it? |
[03:28] <thumper> jml: mostly, but tweak for owner |
[03:28] <thumper> jml: we need to be able to get the teams that have branches in a given collection for a person quickly |
[03:28] <thumper> jml: one query rather than one query per team |
[03:29] <thumper> jml: beuno is in 86 teams, and the query is taking 150ms ish |
[03:29] <jml> thumper, is this to generate links from the Person branch listing? |
[03:29] <thumper> jml: yes |
[03:30] <jml> thumper, I feel that it's something of a violation of the spirit of the interface, but I don't have any better ideas right now. |
[03:30] <thumper> jml: we already have branch collection returning branches and merge proposals |
[03:30] <thumper> jml: we could add a new utility somewhere |
[03:30] <thumper> jml: not sure what to call it though |
[03:31] <jml> thumper, returning branches is its raison d'etre, and merge proposals are a pretty natural follow on. |
[03:31] <thumper> jml: yeah, I know |
[03:32] <thumper> jml: but not sure how to get at the collection internals without it being a method on the collection itself |
[03:32] <jml> thumper, yeah. me neither. |
[03:32] <jml> thumper, I think just put it in there for now, making a comment about how it doesn't quite fit. |
[03:32] <thumper> jml: ok |
[03:33] * jml idly wonders why 'reason for being' lacks punch in English. |
[03:34] <spiv> jml: "to be or not to be"? |
[03:37] <thumper> spiv: that isn't punchy either |
[03:43] <jml> instrumenting code :( |
[03:46] <jml> mwhudson, I wonder. |
[03:47] <jml> mwhudson, how would monkey patching and lazr imports interact, do you think? |
[03:47] <mwhudson> jml: lazy imports? |
[03:47] <jml> mwhudson, yes. |
[03:47] <jml> sorry. |
[03:47] <mwhudson> jml: i guess it could get exciting |
[03:47] <mwhudson> jml: does ScopeReplacer implement __setattr__ ? |
[03:48] <mwhudson> jml: i think i guess where you're coming from |
[03:48] <thumper> lazr imports? |
[03:48] <jml> thumper, lazy. |
[03:48] <mwhudson> jml: lp-serve not logging oops? |
[03:48] <thumper> jml: sorry, read that just after hitting enter |
[03:48] <jml> mwhudson, I can't hide anything from you, can I? :) |
[03:49] <mwhudson> jml: lazy imports --- day before release --- monkey patching --- talking about test plans earlier |
[03:49] <mwhudson> jml: it wasn't _that_ hard :) |
[03:50] <mwhudson> oh and this brain wave sensor |
[03:50] * jml throws away his aluminium foil hat |
[03:50] <jml> I knew it. It *has* to be tin. This one's no good. |
[03:50] <thumper> jml: go get your cowboy hat :) |
[03:55] <jml> mwhudson, I now have solid evidence that the monkeypatched version is not being called. |
[03:55] <jml> mwhudson, what is this ScopeReplacer of which you speak? |
[03:55] <mwhudson> jml: it's an implementation detail of lazy imports |
[03:55] <mwhudson> bzrlib.lazy_import |
[03:56] <jml> oh. bzr-grep usage fail |
[03:57] <jml> mwhudson, it looks like it implements __setattr__ beautifully. |
[03:58] <mwhudson> jml: new theory required then |
[03:58] <jml> dammit. going to have to do this the Right Way. |
[03:58] <thumper> damn storm compilation problems |
[03:58] * thumper smacks head on thetable |
[03:59] <jml> mwhudson, I think I have a new theory. |
[03:59] <mwhudson> jml: does something somewhere do "from bzrlib.trace import log_exception_quietly" ? |
[03:59] <jml> mwhudson, bzrlib.smart.protocol imports 'log_exception_quietly' directly from bzrlib.trace before it gets patched |
[03:59] <mwhudson> jml: arghlbargl |
[03:59] <jml> mwhudson, ... |
[04:00] <jml> mwhudson, so I can shuffle around some code, probably. |
[04:01] <mwhudson> statement: SELECT Branch.id, Branch.unique_name FROM Branch WHERE false AND Branch.private = false |
[04:01] <jml> mwhudson, or I can abandon this approach and do it the right way by giving bzr the appropriate hooks. |
[04:01] <mwhudson> that's not a very useful query |
[04:01] <jml> no, 'tisn't. |
[04:01] <mwhudson> i wonder why storm is generating it |
[04:01] <mwhudson> jml: i think the time may have come for the right way |
[04:02] <mwhudson> oh ffs |
[04:02] <jml> mwhudson, ok. I'll file bugs appropriately and prepare a patch for bzr |
[04:03] <mwhudson> jml: cool |
[04:03] <jml> mwhudson, the code I've already written in Launchpad was deliberately designed to be easy to switch to hooks |
[04:03] <jml> so I should only have to change one or two functions & probably none of the tests. |
[04:04] <mwhudson> jml: yay |
[04:04] * jml -> lunch etc. |
[04:32] <mwhudson> http://pastebin.ubuntu.com/224061/ :( |
[04:38] <thumper> mwhudson: eh? |
[04:38] <mwhudson> thumper: circular import |
[04:38] <thumper> mwhudson: I think I know why |
[04:38] <mwhudson> yeah |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.