/srv/irclogs.ubuntu.com/2010/02/07/#launchpad-dev.txt

mwhudsonmorning18:40
mwhudsonoh yes19:54
mwhudsonchr this week19:54
=== 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
mwhudsonjpds: hi20:07
jpdsmwhudson: '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:08
mwhudsonjpds: hmm20:09
mwhudsonjpds: where is the corresponding browser code?20:10
mwhudsonoh lp.registry.browser.distributionmirror20:11
mwhudsonjpds: well, you don't do anything with the view20:14
mwhudsonthere's nothing in the test to make it look like a POST20:14
jpdsmwhudson: Hmm, OK, all the other +edit seem to be doing the same thing.20:15
jpds+edit tests*20:16
mwhudsonjpds: ah, you need 'field.actions.something' in the dict20:16
mwhudsonlike dict['field.actions.save'] = 'Save'20:17
mwhudsonto cargo cult from another test20:17
jpdsmwhudson: Oh, that's what I was missing, thanks!20:18
mwhudsonjpds: np20:18
mwhudsonjpds: i hope you're enjoying hacking launchpad :-)20:18
jpdsmwhudson: When it works, when it works. :) http://people.canonical.com/~jpds/2010-02-07-170142_1280x800_scrot.png20:19
mwhudsonjpds: doesn't mean that much to me, but cool :-)20:20
mwhudsonwgrant: how in-progress is https://bugs.edge.launchpad.net/launchpad-code/+bug/509892 really?22:34
mupBug #509892: Store upload log for SourcePackageRecipeBuilds <wellington> <Launchpad Bazaar Integration:In Progress by wgrant> <https://launchpad.net/bugs/509892>22:34
mwhudsonwgrant: is there a branch?22:34
Ursinhamwhudson: hi22:54
mwhudsonUrsinha: hello22:54
Ursinhamwhudson: yet about the tagging script.. :) I had a little chat with abentley about how to solve that problem of branches without branch-nick property set22:55
mwhudsonUrsinha: ok22:55
Ursinhahe suggest that instead of monitoring revisions on devel/db-devel branches, I could watch for new merged branches22:55
Ursinhamwhudson: but I couldn't find a way of doing tht22:56
Ursinha*that22:56
thumpermorning22:56
mwhudsonthumper: AKL?22:56
thumperyep22:56
mwhudsonthumper: 'grats, i guess22:56
thumperI have fruit toast and a flat white22:56
mwhudsonthumper: domestic lounge?22:57
thumperyep22:57
mwhudsonUrsinha: hmm22:57
Ursinhamwhudson: I mean, I don't know how to ask launchpad for the latest merged branches, is that I way?22:57
thumperUrsinha: are you doing the tag qa stuff?22:57
mwhudsonthumper: i liked that lounge, the one time i've been there so far22:57
Ursinhathumper: yes22:57
Ursinhatrying to :)22:57
mwhudsonUrsinha: yeah, i don't think there is a direct way22:57
thumperUrsinha: jml has a script that you should see22:57
mwhudson(we don't record when branch status changes happen)22:57
Ursinhathumper: what does the script do?22:58
thumperworks out which branches are on devel but not edge, and db-devel but not staging22:58
thumpermaybe revisions, not branches22:58
Ursinhathumper: so, here's the problem22:58
thumperwe do track date_last_modified on branches22:59
thumperand when something is marked as merged, that is set22:59
thumperso while not perfect, it is something22:59
mwhudsontbh22:59
Ursinhathumper: 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 set22:59
mwhudsonprobably the most reliable way of doing this currently is subscribing to the branches and parsing the emails22:59
mwhudsonthough that only works if there's a merge proposal i guess...23:00
thumperUrsinha: you are right, no easy way right now23:00
mwhudsonthumper: it's sunny in dunedin, i can tell from the cricket :-)23:00
thumpercool23:00
Ursinhathumper: I'd love suggestions :)23:00
Ursinhathumper: first I thought that getting the branch-nick from the revision would work23:01
Ursinhabut some doesn't have the branch-nick property set23:01
thumperUrsinha: often works but not always23:01
Ursinhathumper: yeah, I realized that23:01
mwhudsoni guess we want a richer hook in the scanner really23:01
thumperthere should always be a branch nick I thought23:01
thumpermwhudson: richer hook to do what?23:01
Ursinhathumper: what sets the branch nick?23:01
mwhudsonthumper: be notified when a branch is marked as merged23:02
thumperUrsinha: the branch command, or explicitly setting the nick23:02
thumpermwhudson: there is an event that is fired for that23:02
Ursinhathumper: hmm, nice23:02
mwhudsonthumper: yeah, but it's in process only23:02
mwhudsonsomething like http://code.google.com/p/pubsubhubbub/ might be cool23:02
thumperhmm...23:03
thumpermwhudson: I was also thinking web-hooks23:03
mwhudsonor xmpp or whatever23:03
thumpermwhudson: although that may not do exactly what we want23:03
thumperwebhooks wouldn't be too hard to write23:03
Ursinhathumper: how would I use that?23:03
mwhudsonUrsinha: so first, fix launchpad!23:03
mwhudson:-)23:04
thumperheh23:04
Ursinhalol23:04
thumperUrsinha: well, we'd have to write it first23:04
thumperbut then you would be able to connect a web hook to a branch23:04
mwhudsonUrsinha: http://timothyfitz.wordpress.com/2009/02/09/what-webhooks-are-and-why-you-should-care/23:04
thumperUrsinha: what mwhudson said23:04
mwhudsonwe'd have to offer project wide subscriptions or something23:04
mwhudsonif you could subscribe to attribute changes on all branches already you could do it by parsing email23:05
Ursinhamwhudson: hmm, that's cool23:05
Ursinha(the link, I mean)23:06
mwhudsonyeah, it's a cool idea23:06
mwhudsoni guess it doesn't solve your immediate problem though...23:07
mwhudsoninteresting bunch of people in the commenters23:09
mwhudsonsimon willison makes the point that had occurred to me...23:09
mwhudsoni'd probably want to write the webhook pinger in twisted23:09
thumpermwhudson: well, structural subscriptions for branches was never really delivered23:10
mwhudsonthumper: yah23:11
thumpers/really//23:11
Ursinhamwhudson: when subscribed to a branch, what changes do I get?23:11
thumpermwhudson: I would have thought a job to do the webhooks23:11
thumperUrsinha: it depends what you ask for23:12
mwhudsonthumper: i guess using aaron's twisted runner :-)23:12
thumperUrsinha: you can ask for all revision mail23:12
Ursinhathumper: what can I ask for :)23:12
Ursinhaah23:12
mwhudsonUrsinha: you can get notification of status updates for sure23:12
thumperUrsinha: you can get revision email without diffs if you like23:12
thumperUrsinha: and status updates for when merged23:12
Ursinhathumper: 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:13
Ursinhathumper: or, how hard would it be to implement a way to getting branches by date_created?23:15
thumperUrsinha: with that structural subscriptions stuff that we haven't written yet23:15
thumperUrsinha: probably not too hard23:15
thumperthumper: although I feel that adding lots of optional fields to getBranches is getting a little icky, but may be the only way23:16
thumpermwhudson: thoughts?23:16
mwhudsonthumper: "it would be nice if we could expose branchcollection through the api"23:16
mwhudsonuntil then, lots of optional fields to getBranches isn't so bad i guess23:17
thumpermwhudson: we don't have an adaptation method in the api23:17
thumpermwhudson: although gary was keen to hear more about the idea23:17
thumpermwhudson: so something may happen23:17
* thumper crosses fingers23:17
mwhudsonyeah, jml was vaguely optimistic at lca about it23:18
Ursinhathumper: when you say it's probably not hard, you mean it could be done in a near future? :)23:20
thumperUrsinha: it could be done in less than 30 minutes23:21
Ursinhaholy crap23:21
thumperUrsinha: most of that is writing the test23:21
thumperUrsinha: the code to do it is trivial23:21
thumperUrsinha: if you know where to look23:21
Ursinhathumper: really? can you do that? :)23:21
thumpernot right now... my brain is fuzz23:21
Ursinhathumper: I can find you coffee if you want :)23:22
thumperUrsinha: file a bug, assign it to me, and I'll get it done first as a priority for you23:22
mwhudsonmy brain is not so fuzzy but i don't know how to do it :-)23:22
Ursinhathumper: thank you very much a bazillion times23:23
thumpermwhudson: I've created the branch already23:23
thumperI'll see what I can get done in the next 10 minutes before boarding23:23
* thumper violates kanban even more23:23
Ursinhathumper: that's ninja23:25
thumpermwhudson: do you know how to pass a date into the API?23:25
* thumper tries just setting as datetime23:26
mwhudsonthumper: no23:26
thumperUrsinha: would a modified_since be enough for you?23:26
thumperUrsinha: we don't currently expose the created since through the collection23:27
Ursinhathumper: hm23:38
thumperUrsinha: well, tough that is what you are getting :)23:38
Ursinhathumper: haha23:38
Ursinhathumper: well, modified_since should work, I guess23:38
Ursinhathumper: if I create a branch today, that modified_since would be today, right?23:39
thumperyep23:39
Ursinhathumper: so awesome23:39
* thumper is just finishing off the test23:40
thumperboarding call expected in < 5 minutes23:40
thumperTypeError: datetime.datetime(2010, 1, 1, 0, 0, tzinfo=<UTC>) is not JSON serializable23:41
thumperarse23:41
dhillon-v10mwhudson: hi there :)23:41
* thumper tries something else23:41
Ursinhathumper: bug 51860723:42
mwhudsondhillon-v10: hi23:42
mupBug #518607: Add a way of searching for branches by date_created using the API <Launchpad Bazaar Integration:New> <https://launchpad.net/bugs/518607>23:42
dhillon-v10mwhudson: 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 possible23:44
mwhudsondhillon-v10: well, there's already the faq system in the answers application23:45
thumperboarding now23:45
thumperUrsinha: branch being pushed23:45
mwhudsoni guess you could convert-to-bug and answer with a faq at the same time23:45
mwhudsonthumper: are you working tomorrow?23:45
thumpermwhudson: probably partially23:46
Ursinhathumper: <323:46
mwhudsonthumper: ok23:46
thumperI have to go now, but will try to sumbit for review in CHC23:46
Ursinhathanks thumper :)23:46
dhillon-v10mwhudson: this was more off in malone, so bug triagers can easily refer to them when needed23:47
mwhudsondhillon-v10: ah23:47
Ursinhathumper: have a nice flight23:47
mwhudsondhillon-v10: this rings faint bells, have you searched the tracker?23:47
dhillon-v10mwhudson: please reword that? do you mean looking for a duplicate bug23:48
mwhudsondhillon-v10: i mean, i think there is a bug asking for this already23:48
mwhudsonhttps://bugs.edge.launchpad.net/malone/+bug/3065523:48
mupBug #30655: stock replies would be nice <feature> <ubuntu-qa> <Launchpad Bugs:Triaged by dhillon-v10> <https://launchpad.net/bugs/30655>23:48
mwhudsonoh i see, you commented on it a few days ago :-)23:48
dhillon-v10mwhudson: :)23:49
dhillon-v10mwhudson: that's precisely it, you are pretty fast at searching bugs :)23:49
mwhudsondhillon-v10: well, it sounds sane to me23:50
mwhudsondhillon-v10: i'd suggest talking to someone in the malone team, and also looking at the faqs in answers23:51
mwhudson(as that is the most similar functionality we have today)23:51
mwhudsondhillon-v10: i think we'd want something that a project or distro admin/bug supervisor could edit23:52
mwhudsondhillon-v10: and then 'a stock reply' link could pop up a javascript overlay that would allow selecting an answer23:52
mwhudson(i think bdmurray has a greasemonkey script that does something like this already?)23:52
dhillon-v10mwhudson: 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
mwhudsondhillon-v10: something ubuntu-specific or that required changing the launchpad source code to change the stock replies would probably not be popular23:53
dhillon-v10mwhudson: ahh, didn't think of that :) you are right23:53
mwhudsonhm, yes some of those replies are pretty generic23:54
mwhudsonapart 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
mwhudsonbut that's fixable i guess23:54
dhillon-v10mwhudson: :) yes, so what do you say, this is something that could be potentially useful especially for new users23:54
mwhudsondhillon-v10: all of this sounds like a fair amount of work, tbh23:54
dhillon-v10mwhudson: ahh, like how much, a lot or a lot lot lot23:55
mwhudsondhillon-v10: if you've not hacked on launchpad before, i'd find something smaller to start with23:55
mwhudsondhillon-v10: maybe "a lot", definitely not "a lot lot lot" :-)23:55
dhillon-v10mwhudson: 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
dhillon-v10mwhudson: * blueprint tacker23:56
dhillon-v10mwhudson: haven't been able to get in touch with Curtis though23:57
mwhudsondhillon-v10: curtis should be back online in a couple of days23:58
mwhudson(he just sent an email about his travel arrangements being disrupted by snow)23:58
dhillon-v10mwhudson: 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 task23:59

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