[18:40] morning [19:54] oh yes [19:54] chr this week === mwhudson changed the topic of #launchpad-dev to: Launchpad Development Channel | Week 1 of 10.02 | PQM is open | https://dev.launchpad.net/ | Get the code: https://dev.launchpad.net/Getting | On-call review in irc://irc.freenode.net/#launchpad-reviews | Use http://paste.ubuntu.com/ for pastes | Channel logs: http://irclogs.ubuntu [20:07] jpds: hi [20:08] mwhudson: 'lo, so right now I have http://pastebin.ubuntu.com/371167/ - however, line 38 isn't taking any effect on the mirror's registration. [20:09] jpds: hmm [20:10] jpds: where is the corresponding browser code? [20:11] oh lp.registry.browser.distributionmirror [20:14] jpds: well, you don't do anything with the view [20:14] there's nothing in the test to make it look like a POST [20:15] mwhudson: Hmm, OK, all the other +edit seem to be doing the same thing. [20:16] +edit tests* [20:16] jpds: ah, you need 'field.actions.something' in the dict [20:17] like dict['field.actions.save'] = 'Save' [20:17] to cargo cult from another test [20:18] mwhudson: Oh, that's what I was missing, thanks! [20:18] jpds: np [20:18] jpds: i hope you're enjoying hacking launchpad :-) [20:19] mwhudson: When it works, when it works. :) http://people.canonical.com/~jpds/2010-02-07-170142_1280x800_scrot.png [20:20] jpds: doesn't mean that much to me, but cool :-) [22:34] wgrant: how in-progress is https://bugs.edge.launchpad.net/launchpad-code/+bug/509892 really? [22:34] Bug #509892: Store upload log for SourcePackageRecipeBuilds [22:34] wgrant: is there a branch? [22:54] mwhudson: hi [22:54] Ursinha: hello [22:55] mwhudson: yet about the tagging script.. :) I had a little chat with abentley about how to solve that problem of branches without branch-nick property set [22:55] Ursinha: ok [22:55] he suggest that instead of monitoring revisions on devel/db-devel branches, I could watch for new merged branches [22:56] mwhudson: but I couldn't find a way of doing tht [22:56] *that [22:56] morning [22:56] thumper: AKL? [22:56] yep [22:56] thumper: 'grats, i guess [22:56] I have fruit toast and a flat white [22:57] thumper: domestic lounge? [22:57] yep [22:57] Ursinha: hmm [22:57] mwhudson: I mean, I don't know how to ask launchpad for the latest merged branches, is that I way? [22:57] Ursinha: are you doing the tag qa stuff? [22:57] thumper: i liked that lounge, the one time i've been there so far [22:57] thumper: yes [22:57] trying to :) [22:57] Ursinha: yeah, i don't think there is a direct way [22:57] Ursinha: jml has a script that you should see [22:57] (we don't record when branch status changes happen) [22:58] thumper: what does the script do? [22:58] works out which branches are on devel but not edge, and db-devel but not staging [22:58] maybe revisions, not branches [22:58] thumper: so, here's the problem [22:59] we do track date_last_modified on branches [22:59] and when something is marked as merged, that is set [22:59] so while not perfect, it is something [22:59] tbh [22:59] thumper: but how can I ask only for the recently changed? otherwise I'd have to ask for all of them and see which one are new in the set [22:59] probably the most reliable way of doing this currently is subscribing to the branches and parsing the emails [23:00] though that only works if there's a merge proposal i guess... [23:00] Ursinha: you are right, no easy way right now [23:00] thumper: it's sunny in dunedin, i can tell from the cricket :-) [23:00] cool [23:00] thumper: I'd love suggestions :) [23:01] thumper: first I thought that getting the branch-nick from the revision would work [23:01] but some doesn't have the branch-nick property set [23:01] Ursinha: often works but not always [23:01] thumper: yeah, I realized that [23:01] i guess we want a richer hook in the scanner really [23:01] there should always be a branch nick I thought [23:01] mwhudson: richer hook to do what? [23:01] thumper: what sets the branch nick? [23:02] thumper: be notified when a branch is marked as merged [23:02] Ursinha: the branch command, or explicitly setting the nick [23:02] mwhudson: there is an event that is fired for that [23:02] thumper: hmm, nice [23:02] thumper: yeah, but it's in process only [23:02] something like http://code.google.com/p/pubsubhubbub/ might be cool [23:03] hmm... [23:03] mwhudson: I was also thinking web-hooks [23:03] or xmpp or whatever [23:03] mwhudson: although that may not do exactly what we want [23:03] webhooks wouldn't be too hard to write [23:03] thumper: how would I use that? [23:03] Ursinha: so first, fix launchpad! [23:04] :-) [23:04] heh [23:04] lol [23:04] Ursinha: well, we'd have to write it first [23:04] but then you would be able to connect a web hook to a branch [23:04] Ursinha: http://timothyfitz.wordpress.com/2009/02/09/what-webhooks-are-and-why-you-should-care/ [23:04] Ursinha: what mwhudson said [23:04] we'd have to offer project wide subscriptions or something [23:05] if you could subscribe to attribute changes on all branches already you could do it by parsing email [23:05] mwhudson: hmm, that's cool [23:06] (the link, I mean) [23:06] yeah, it's a cool idea [23:07] i guess it doesn't solve your immediate problem though... [23:09] interesting bunch of people in the commenters [23:09] simon willison makes the point that had occurred to me... [23:09] i'd probably want to write the webhook pinger in twisted [23:10] mwhudson: well, structural subscriptions for branches was never really delivered [23:11] thumper: yah [23:11] s/really// [23:11] mwhudson: when subscribed to a branch, what changes do I get? [23:11] mwhudson: I would have thought a job to do the webhooks [23:12] Ursinha: it depends what you ask for [23:12] thumper: i guess using aaron's twisted runner :-) [23:12] Ursinha: you can ask for all revision mail [23:12] thumper: what can I ask for :) [23:12] ah [23:12] Ursinha: you can get notification of status updates for sure [23:12] Ursinha: you can get revision email without diffs if you like [23:12] Ursinha: and status updates for when merged [23:13] thumper: I guess that subscribing to all branches and parsing email could be one way.. but even though, how would I know about newly created branches only? [23:15] thumper: or, how hard would it be to implement a way to getting branches by date_created? [23:15] Ursinha: with that structural subscriptions stuff that we haven't written yet [23:15] Ursinha: probably not too hard [23:16] thumper: although I feel that adding lots of optional fields to getBranches is getting a little icky, but may be the only way [23:16] mwhudson: thoughts? [23:16] thumper: "it would be nice if we could expose branchcollection through the api" [23:17] until then, lots of optional fields to getBranches isn't so bad i guess [23:17] mwhudson: we don't have an adaptation method in the api [23:17] mwhudson: although gary was keen to hear more about the idea [23:17] mwhudson: so something may happen [23:17] * thumper crosses fingers [23:18] yeah, jml was vaguely optimistic at lca about it [23:20] thumper: when you say it's probably not hard, you mean it could be done in a near future? :) [23:21] Ursinha: it could be done in less than 30 minutes [23:21] holy crap [23:21] Ursinha: most of that is writing the test [23:21] Ursinha: the code to do it is trivial [23:21] Ursinha: if you know where to look [23:21] thumper: really? can you do that? :) [23:21] not right now... my brain is fuzz [23:22] thumper: I can find you coffee if you want :) [23:22] Ursinha: file a bug, assign it to me, and I'll get it done first as a priority for you [23:22] my brain is not so fuzzy but i don't know how to do it :-) [23:23] thumper: thank you very much a bazillion times [23:23] mwhudson: I've created the branch already [23:23] I'll see what I can get done in the next 10 minutes before boarding [23:23] * thumper violates kanban even more [23:25] thumper: that's ninja [23:25] mwhudson: do you know how to pass a date into the API? [23:26] * thumper tries just setting as datetime [23:26] thumper: no [23:26] Ursinha: would a modified_since be enough for you? [23:27] Ursinha: we don't currently expose the created since through the collection [23:38] thumper: hm [23:38] Ursinha: well, tough that is what you are getting :) [23:38] thumper: haha [23:38] thumper: well, modified_since should work, I guess [23:39] thumper: if I create a branch today, that modified_since would be today, right? [23:39] yep [23:39] thumper: so awesome [23:40] * thumper is just finishing off the test [23:40] boarding call expected in < 5 minutes [23:41] TypeError: datetime.datetime(2010, 1, 1, 0, 0, tzinfo=) is not JSON serializable [23:41] arse [23:41] mwhudson: hi there :) [23:41] * thumper tries something else [23:42] thumper: bug 518607 [23:42] dhillon-v10: hi [23:42] Bug #518607: Add a way of searching for branches by date_created using the API [23:44] mwhudson: a quick question, is is possible to add a page to launchpad, this was a feature request, someone wanted to have stock replies in launchpad, so what I thought we could do is to copy/port the stock replies from ubuntu wiki page to a launchpad page, and on the little sidebar where it says "Convert to Question" have a link to that page, is that possible [23:45] dhillon-v10: well, there's already the faq system in the answers application [23:45] boarding now [23:45] Ursinha: branch being pushed [23:45] i guess you could convert-to-bug and answer with a faq at the same time [23:45] thumper: are you working tomorrow? [23:46] mwhudson: probably partially [23:46] thumper: <3 [23:46] thumper: ok [23:46] I have to go now, but will try to sumbit for review in CHC [23:46] thanks thumper :) [23:47] mwhudson: this was more off in malone, so bug triagers can easily refer to them when needed [23:47] dhillon-v10: ah [23:47] thumper: have a nice flight [23:47] dhillon-v10: this rings faint bells, have you searched the tracker? [23:48] mwhudson: please reword that? do you mean looking for a duplicate bug [23:48] dhillon-v10: i mean, i think there is a bug asking for this already [23:48] https://bugs.edge.launchpad.net/malone/+bug/30655 [23:48] Bug #30655: stock replies would be nice [23:48] oh i see, you commented on it a few days ago :-) [23:49] mwhudson: :) [23:49] mwhudson: that's precisely it, you are pretty fast at searching bugs :) [23:50] dhillon-v10: well, it sounds sane to me [23:51] dhillon-v10: i'd suggest talking to someone in the malone team, and also looking at the faqs in answers [23:51] (as that is the most similar functionality we have today) [23:52] dhillon-v10: i think we'd want something that a project or distro admin/bug supervisor could edit [23:52] dhillon-v10: and then 'a stock reply' link could pop up a javascript overlay that would allow selecting an answer [23:52] (i think bdmurray has a greasemonkey script that does something like this already?) [23:53] mwhudson: faq are good, but IMHO not of much use if users can't refer to them, also the wiki page I was talking about has some really nice and general instructions, oh yes the js link could be *very* useful and yes bdmurray does have one that works :) [23:53] dhillon-v10: something ubuntu-specific or that required changing the launchpad source code to change the stock replies would probably not be popular [23:53] mwhudson: ahh, didn't think of that :) you are right [23:54] hm, yes some of those replies are pretty generic [23:54] apart from the way that they all start "Thank you for taking the time to report this bug and helping to make Ubuntu better. " [23:54] but that's fixable i guess [23:54] mwhudson: :) yes, so what do you say, this is something that could be potentially useful especially for new users [23:54] dhillon-v10: all of this sounds like a fair amount of work, tbh [23:55] mwhudson: ahh, like how much, a lot or a lot lot lot [23:55] dhillon-v10: if you've not hacked on launchpad before, i'd find something smaller to start with [23:55] dhillon-v10: maybe "a lot", definitely not "a lot lot lot" :-) [23:56] mwhudson: I am working on that blueprint spec that we talked about the other day, have quite a bit of it figured out, just a little left on that one :) [23:56] mwhudson: * blueprint tacker [23:57] mwhudson: haven't been able to get in touch with Curtis though [23:58] dhillon-v10: curtis should be back online in a couple of days [23:58] (he just sent an email about his travel arrangements being disrupted by snow) [23:59] mwhudson: i figured he must have been pretty busy :) so in the mean time I decided to look up something else like this one, but if you think I shouldn't work on this one, I'll probably find a different task