[12:04] BradB: text, not textarea [12:08] sabdfl: i dunno then, because value="" should work fine [12:09] Title: [12:09] not working [12:10] sabdfl: when you view source, are you seeing the value="blah"? [12:10] it works fine for me [12:10] yes, as above [12:10] it might be the collapsing fieldset that causes it [12:17] SteveA: ping [12:44] Merge to rocketfuel@canonical.com/cscvs--devel--1.0: fix default branch enabled changeste creation to merge changsets correctly, and disable aliased cvs repositories temporarily (patch-38) [12:46] still no stub! [12:49] stubless [12:49] SteveA: two things about your tales fix: 1. it breaks when value is an int, 2. it doesn't handle multiple selects (which was the hard-part of trying to shoehorn this in by-hand in tales) [12:49] :) [12:58] BradB: please add to the malone bug the behaviour you want from multiple selects [12:59] making it handle ints is easy enough [12:59] I guess you'd want it to behave nicely in the presence of a sequence object -- that is, match on any element of the sequence [01:00] SteveA: the bug already mentions that this thing should highlight the zero, one, or more values selected. [01:01] well, more specifically "When a user selects one or more of these values, submits the form, and then it's rerendered, I want the values the user selected to be shown as, well, selected in this widget." [01:02] what does the query part of the URL look like in this case? [01:02] or, more to the point, what does request.form look like? [01:04] SteveA: in short: request/htmlform:foo/selected/?value should return True whenever value is a selected value of that field. naturally, for multiple selects that could happen more than once on the same field. [01:04] so, what would you do in python code? [01:05] SteveA: i'm not writing any python code here, so nothing. [01:06] but for request['foo'] where foo is a multiple select, it might be a single value, or a list, depending on how many values are selected. [01:11] nighty [01:16] BradB: okay, looks like I have some code [01:17] phwoar [01:19] SteveA: i can't access this functional with python: either eh? i'm needing that right about now. [01:19] s/functional/functionality/ [01:20] BradB: in your email [01:20] should be faster than tla [01:21] heh [01:22] night all [01:23] see ya tomorrow sabdfl [01:24] BradB: and tomorrow, you'll also see how malone performs with 200,000 bugs in the db :-) [01:24] kthnxbye [01:24] hehe, cool === sabdfl is now known as sabdfl|away [01:25] how's the new code look, brad? [01:28] i'll try it in about 3 minutes, just finishing the another change on these search widgets [01:32] ok, applying now [01:33] er, i have to commit my current changes anyway, i guess, otherwise my diff's get all screwed up [01:34] not really [01:34] I mean, I haven't committed this [01:34] ah, ok [01:34] it is just a few lines of code to one module [01:35] you want me to commit it then? (even still i'll have to first commit my current changes anyway) [01:35] if it works, yes [01:35] ok [01:36] it'll take about 15 mins, at least, unfortunately [01:36] oh? [01:37] by the time i commit these current changes, patch, and get around to testing it [01:37] can't you just apply the patch, and test it now? [01:37] (and, of course, i run make check before committing, because there's no point doing a commit where all the tests don't pass) [01:38] who cares if it is in your own archive? [01:38] of course, make check before submitting a merge to pqm [01:38] SteveA: because it removes the self-containedness of a patch [01:38] but before every commit of your own? sounds a little sadistic to me. [01:39] I'd suggest running a subset of the tests that reflect what you've been working on [01:39] SteveA: as opposed to "oh, grab patch-55 where i added that...oh and patch-57 where i fixed what patch-55 broke) [01:39] the thing is, I need to go to bed very soon, and I'd like to be able to help you out with any problems the code causes you [01:40] ok, i'll patch now, and commit these two things at once [01:40] thanks -- practicality sometimes beats purity ;-) [01:43] seems to work. doing a bit more testing. [01:45] yeah, it seems to work. [01:46] cool [01:46] mail me about any problems, or file them in malone, and I'll look at it tomorrow [01:46] sure, thanks a lot [02:23] daf: event: product assignment edited [02:23] Malone bug #11 closed for package malone: Correct from & errors addresses [02:23] https://launchpad.ubuntu.com/malone/bugs/11 [02:23] Malone bug #9 closed for package malone: What is an "Owner" of a bug? [02:23] https://launchpad.ubuntu.com/malone/bugs/9 [02:24] Malone bug #9 closed for package malone: What is an "Owner" of a bug? [02:24] https://launchpad.ubuntu.com/malone/bugs/9 [02:24] Malone bug #8 closed for package malone: Title *and* summary *and* Description is too much [02:24] https://launchpad.ubuntu.com/malone/bugs/8 [02:24] Malone bug #13 closed for package malone: Comment incorrectly credited to "(none)" [02:24] https://launchpad.ubuntu.com/malone/bugs/13 [02:24] Malone bug #14 closed for package malone: Bug submitter should be automatically subscribed to bug [02:24] https://launchpad.ubuntu.com/malone/bugs/14 [02:24] Malone bug #15 closed for package malone: Title field on bug add form needs to be widened [02:24] https://launchpad.ubuntu.com/malone/bugs/15 [02:24] Malone bug #30 closed for package malone: Comment textarea needs to be larger [02:24] https://launchpad.ubuntu.com/malone/bugs/30 [02:24] Malone bug #33 closed for package malone: Bug subject line should include bug number [02:24] https://launchpad.ubuntu.com/malone/bugs/33 [02:33] does that mean it works? :P [02:33] I think so [02:34] what's with that first line? daf: event: ... [02:35] that was some debugging stuff I forgot to remove :) [02:36] ah, heh [02:47] Malone bug #35 closed for package malone: Person dropdown should be shortened [02:47] https://launchpad.ubuntu.com/malone/bugs/35 [03:39] Merge to rocketfuel@canonical.com/launchpad--devel--0: mostly bug search-related fixes (patch-801) === BradB is now known as BradB|away [09:11] Merge to thelove@canonical.com/bazaar-debian--debian--1.1: branch to the 1.1 version (patch-1) [09:43] anybody know where stub is? === sabdfl|away is now known as sabdfl === stub [~stub@dsl-246.248.240.220.dsl.comindico.com.au] has joined #launchpad === lulu [~lu@host217-37-231-28.in-addr.btopenworld.com] has joined #launchpad [10:14] morning all :o) === Kinnison [~dsilvers@host217-37-231-28.in-addr.btopenworld.com] has joined #launchpad [10:45] sabdfl: ping === ddaa [~ddaa@deep-thought.xlii.org] has joined #launchpad [11:02] heya people, i'm making *.pyc files in launchpad junk. [11:03] Since it's cache data and it's transparently generated, junk is the right category. [11:03] s/category/class/ [11:04] seems reasonable to me [11:04] Sounds sane. Occasionally people distribute proprietary code as .pyc files, but I doubt we would be touching junk like that. [11:05] stub: you see, that's even the term you use naturally ;-) [11:05] Actually, there is a use case for me when I'm trynig to clean up stuff when changing python version on the same source tree. [11:06] I need to figure out the important compiled stuff that's here. [11:06] Heh [11:07] sabdfl: I'm ready when you are. [11:07] ok === ddaa does the same to zope [11:21] Merge to rocketfuel@canonical.com/launchpad--devel--0: junk *.pyc (patch-802) [11:43] Merge to rocketfuel@canonical.com/buildbot--devel--0: junk *.pyc (patch-68) [11:45] Merge to rocketfuel@canonical.com/pyarch--devel--0.5: junk *.pyc and *.pyo (patch-53) [11:45] stub: who is authorised to merge to zope and sqlobject? [11:45] Just lifeless I believe [11:52] Merge to rocketfuel@canonical.com/sqlos--test--3.0: junk *.pyc and *.pyo (patch-4) [11:52] Ha, looks like he forgot to lock that one down :-) === cprov [~cprov@200.158.100.251] has joined #launchpad [12:14] lifeless: broken taxi again. [12:14] ../lib/importd/Job.py:138:mirrorTarget: exceptions.TypeError, importVersion() takes exactly 4 arguments (3 given) [12:19] Merge to rocketfuel@canonical.com/launchpad--devel--0: Database schema and sample data updates (patch-803) === debonzi [~debonzi@200.158.100.251] has joined #launchpad === carlos [~carlos@69.Red-80-33-181.pooles.rima-tde.net] has joined #launchpad [12:34] morning [12:35] carlos, morning [12:40] carlos: morning, how to run a page test individually in our current tree ? I mean, do you know where is the "pagetest" app refered on pagetests/README ? [12:41] cprov: I don't have any idea, I'm having problems with the tests (as I said yesterday by mail) [12:42] carlos: me too :( [12:43] cprov: I think that's "science fiction" [12:43] can you write such a script? [12:47] SteveA: I think yes .. test on page per shoot should be useful, isn't it ? [12:48] well... [12:48] you'd specify one page, or perhaps a story and page [12:49] if it is just one page, you get just that page [12:49] if you say a story and a page, you get the story up to that page. [12:52] SteveA: I see, the group of pagetests, the story, might be more useful in real cases, just as is described in that README, that "pagetest" is the solution, why did you say it is "science fiction" ? === elmo__ [~james@host217-37-231-28.in-addr.btopenworld.com] has joined #launchpad === elmo__ is now known as elmo === kiko [~kiko@200-206-134-238.async.com.br] has joined #launchpad [01:35] SteveA: ping [01:36] hello lu [01:36] hey Stevo :o) [01:36] SteveA: Elmo had a chat to me today about our 1.6Gig database. Apparently we need to "pack" it - and save history on a weekly basis. [01:36] cprov: the script to run just one pagetest might be "science fiction" -- that is, it is described well, but doesn't actually exist. [01:36] lulu: um... "pack it and lose history" I think [01:37] that is what packing actually does [01:37] SteveA: yes, but save history for a week? [01:37] and we could have a "button to press" to make this easy for us to do...... [01:37] we can remove history up until one week ago, yes [01:38] ther is a button to press to do this [01:38] but, it should actually be scripted instead [01:38] it will be easy to script once zeo is set up [01:38] SteveA: agreed - automated would be best..... [01:38] if you go to the true root of the site, using gentoo:whateverport/manage [01:39] SteveA: yes... [01:39] then you can click on "control_panel" and then "database" and then choose to pack it [01:39] put "7" in the "number of days of history to keep" place === lulu logs in [01:39] it takes a little while to process [01:39] once you ask it to pack [01:39] the site will still be running, though [01:41] one sec.... [01:45] SteveA: done === Kinnison raises his hand just in case we're having a meeting [01:53] SteveA: ? [01:55] hello carlos [01:55] SteveA: hi [01:55] SteveA: do we have a meeting now? [01:56] oh yeah [01:56] I was so caught up in writing code... [01:56] thanks for the reminder [01:56] let's have a launchpad meeting [01:56] who is here? === carlos is here [01:57] SteveA: ok, backing to the main target, do you think write the famous "pagetest" is useful now, at least for my task, or not ? === stub raises hand [01:58] cprov: it is a different task. [01:59] cprov: your main task is about making the diff output more useful. you can do that without even running a pagetest. Just keep a textfile of actual output and desired output with '...'s, and work on the diffing algorithm [01:59] cprov: I think you're here :-) [01:59] Merge to rocketfuel@canonical.com/launchpad--devel--0: moved tales stuff into webapp (patch-804) [01:59] SteveA: ok, I'll concentrate in "better output" [02:00] daf, debonzi, kiko, Kinnison, sabdfl ? [02:00] cprov: the 'pagetest' script could actually be quite trivial to write if you hack it. It could just call set a magic environment variable and call the main test.py. The test_pages.py script would see the environment variable and only run the specified story. [02:00] hey SteveA [02:00] SteveA, [02:01] BradB|away: ??? [02:02] let's start with rosetta [02:02] stub: maybe, I can't see it quite simple, like you ... but you might be right [02:02] env vars are evil [02:02] SteveA: I've just got lunch [02:02] carlos: how is the "get rosetta on the dogfood system" task going? === Kinnison is chez lunchpad :-) [02:03] SteveA: yesterday, daf imported the users into the dogfood database [02:03] SteveA: I think the remaining task is finish the .pot/.po import from gnome-applets and gnome-panel [02:03] and we are ready to move there [02:03] that is all that needs to happen before we can permanently turn off daf's rosetta alpha server? [02:03] what about changing the virtual hosting configuration? [02:04] I think so, the front page seems to be ready already [02:04] hmmm, not sure [02:04] when can we finish the pot/po import ? [02:04] cprov: It would work and be solid and future proof. Just ugly ;) [02:04] SteveA: it depends on daf, so I don't know. I don't have access to the server so I cannot do anything about it [02:05] where is daf? anyone know? [02:05] don't know [02:06] I just asked mako to pour a bucket of icy water over daf [02:07] meanwhile, how is the rest of rosetta going? [02:07] what work has been done since last week?> [02:07] X-) [02:07] Some UI improvements, code cleanups and functional test rewrites to fix them (I'm on it at this moment) [02:09] what about getting lots more people to use rosetta? [02:09] blocked until the dogfood movement [02:09] that's the big issue as soon as we have the dogfood done [02:09] hi guys [02:10] ok. I see no reason at all we can't have the dogfood stuff done today. Do you carlos, daf? [02:10] how is the password for foo.bar@ in the default database ? [02:10] morning [02:10] cprov: test [02:10] carlos: thanks [02:10] daf, sabdfl: morning [02:10] daf: how is the dogfood project going? carlos says two more things to do: po imports, and virtual hosting. [02:10] SteveA: not sure, daf? [02:10] daf, carlos, any reason not to have rosetta running on dogfood today, as per stevea's question? [02:10] SteveA: I did the user import last night [02:11] so I think everything is ready [02:11] greate [02:11] what about po imports and virtual hosting config? [02:11] everything except for those two things [02:12] how long do po imports take? when can you start? [02:12] are they doable today daf? [02:12] the hosting stuff is pretty easy [02:13] yes, you just need to make sure elmo will be available to do it for you [02:13] I'm pretty sure the imports can be done today too [02:13] I can start this morning [02:13] well, if I give elmo a diff, it should be pretty trivial [02:13] I'd like to see the dogfood stuff totally complete before I finish work today [02:13] so that I can try it out [02:13] Does this affect dogfood rollouts at all? [02:14] stub: don't think so, as there is nothing extra special about rosetta at this point [02:14] no extra external dependencies [02:14] daf, carlos: can you confirm that? [02:15] stub: are all database patches applied to the dogfood server? [02:15] All except the last one, which is being rolled out right now. [02:15] I don't think it affects the other dogfood stuff [02:15] stub: ok [02:15] Who handles the codebase updates? [02:15] ''cos whoever does forgot to restart the librarian last time [02:16] SteveA: If daf thinks it can be done, I agree [02:16] :-) [02:16] Kinnison: That would be me === Kinnison tsks stub :-) [02:16] ok. tomorrow, I want to have a session with daf and carlos to talk about what to do next with rosetta. [02:16] daf, carlos: okay? 12:30 UTC? [02:17] SteveA: it's ok for me [02:17] ok [02:17] as soon as the dogfood stuff is done today, you can get more people using rosetta [02:17] it could be later if it's better for daf [02:18] anything else to ask / report for rosetta? [02:18] ok, next, malone please! [02:18] SteveA: not rosetta specific but I will appreciate an answer to my mail about the tests [02:18] summary of work since last week, current activities, goals for the next week [02:19] carlos: ok [02:19] thanks [02:19] Bradb has made a ton of good improvements [02:19] i've been working on the bug assignment and status reports [02:20] i've got a big refactor of the bugmessage system waiting for stub's approval [02:20] stub, check private msg's [02:20] i'm also setting up the debbugs sync system [02:21] we should be able to test it a little today on zhongshan [02:21] do we have a plan on setting up a bugzilla watch for the launchpad bugzilla? [02:21] stub was to sort out auth for bug watches, or arrange for lp to not require auth from dogfood [02:22] stub: how it that going? [02:22] We need to implement authentication for bugwatches, which will have to be custom coded for each bugsystemtype. [02:23] do you think that's a big job? [02:23] can we get it going as a special case for our bugzilla for now? [02:23] So if someone defines a bugzilla bugsyste, they can enter the username and the password. The checkwatches.py then needs to use that to log in, and propogate the auth credentials to all bugs checked on that tracker [02:23] Coding hasn't started. [02:24] We can special case it, but most of the work is in the checkwatch cron stuff since it needs to know how o log in, and what credentials to propogate. Which involves me or whoever learning more about Bugzilla. [02:25] stub, I've done such systems before, if you need some bugzilla help. [02:26] the only tracker that requires it is our own launchpad bugzilla [02:26] we could just continue to close bugs in there without watches, till the auth stuff is done [02:26] I guess so, as the main point is to test out the watch system, [02:27] kiko: Ta. will do. [02:27] so, there's no point testing out a special case [02:27] we have plenty of watches that will come in from debbugs sync [02:27] sabdfl: So we won't support watches on other systems that require auth? (such as trackers that do it to stop spambots harvesting email addresses?) [02:28] we will in time, i'm just saying we shouldn't think that malone is unusable for our purposes without auth support in watches [02:29] any thoughts on how to allow malone to accept pre-formatted text? such as source code snippets, tracebacks, etc? [02:29] none from me [02:29] i have a similar issue though [02:30] debbugs sync basically means bring in a ton of mail messages [02:30] our message class is *sort of* like an rfc822 message [02:30] but we don't distinguish between headers and body [02:31] since we want email-into-malone, and debbugs sync, we need to make the Message class smarter in the way it displays those messages [02:32] ok, so it becomes a "sensible presentation please" issue, rather than trying to push extra structure into the database [02:32] I sketched out one possibility in the malone bug I opened on this issue. [02:32] number [02:32] ? [02:35] I'd like to point out something I added to TALES for page templates recently, at Brad's suggestion. [02:35] https://launchpad.ubuntu.com/malone/bugs/48 [02:35] Bug 45 [02:35] When you want to do selects or radio buttons or checkboxes in html forms, without using schemas and fields and widgets [02:36] you can use request/htmlform:form_field_name/selected/literalvalue [02:36] or use request/htmlform:form_field_name/selected/?variable_containing_value [02:36] to get the text "selected" if the form_field's value matches a particular value [02:37] Security: I'm starting work on the more flexible security code today. [02:38] this will allow you to use different permissions for different actions on an object, and grant different people those permissions depending on their relationship to an object. [02:38] So, for example, a Bug's owner would get particular rights that another Person wouldn't have. [02:39] Also, I've been slowly moving code out of canonical.lp. So far, most of it has ended up in canonical.launchpad.webapp [02:40] canonical.launchpad.webapp is for the machinery that helps to run launchpad under the hood [02:40] (or bonnet, for speakers of british english) [02:40] Anything more to talk about for malone? [02:41] sourcepacakge selection is crap and ambiguous. I need to talk to the soyuz group to see if it is fixable. [02:41] ok, let's talk about soyuz. [02:41] hello soyuz team [02:41] Hello [02:41] Mainly in that there is no way to reference a unique sourcepackage except by its integer key. [02:42] hey soyuz [02:42] SteveA: hmm, perhaps we can improve the situation for radio buttons also [02:42] daf: you can use "checked" instead of "selected" [02:43] soyuz: what's been happening? what is currently underway? [02:43] mainly cleanups and preparationf or dogfooding [02:44] (and I've myself been a bit hassled taking care of contracts and travel) [02:44] SteveA, one thing that keeps coming up is using the ZODB effectively in some soyuz features -- do we have a status update on how usable that is? [02:45] did salgado get any time with andrew to talk about doap? [02:45] kiko: I need to write up how to do that. I can do that today, as it is a small thing. [02:45] SteveA, thanks. [02:46] I speced with mark yesterday bits about karma that will be going to salgado; apart from that I don't think they spoke much. [02:46] I need to sit down with salgado to get him up-to-speed on what should be done in terms of moving code into FOAF, I've set it down for this afternoon when he comes in (he's still in classes this month) [02:47] ok. we should arrange that salgado and andrew talk on andrew's return, so that we can share the foaf and doap stuff around a bit [02:47] I think I said "doap" earlier when I meant "foaf" [02:47] any other soyuz news? what will happen during the next week? [02:48] Kinnison: how is your stuff going? [02:48] SteveA: I finally got to dump a load of stuff into launchpad over the past week [02:48] SteveA: I'm currently chez sabdfl and we've been discussing the next phase [02:49] I have some plans to rationalise Lucille's views before I get stub to integrate them [02:49] I think I've made too many [02:49] SteveA, essentially taking advantage of kinnison's lucille work and finishing off the malone and rosetta bits. [02:49] Kinnison: I'll throw an ftp server at elmo a bit later, btw [02:49] SteveA: excellent. I'm looking forward to starting on the upload handler === Kinnison has some notes to that effect that were made on the train this morning :-) [02:50] will you be working on that too? [02:50] Unless someone else gets assigned to help me; assume I'll pretty much be writing anything lucille-related [02:50] Kinnison: okay. I'll put it into RF then, under lucille [02:50] elmo has done some work on the upload checking stuff which I will get him to give me; but I think he's mega-busy being our sysadmin so I doubt he'll have much time to help [02:51] SteveA: What does it comprise? Is it just a couple of classes or is it an app or what? [02:51] okay/ [02:51] once Kinnison has uploads and archives working, the next bit is to integrate the build system to LP [02:52] kiko: would be nice to have some more concrete goals for the next week, just to keep me sufficiently pointy-headed ;-) [02:52] Kinnison: goal is to have a fully integrated system running on dogfood by the end of es-conf [02:52] SteveA, yeah, sorry, things have been a bit in flux for me. [02:52] sabdfl: Yep I may have to ask for another pair of hands though [02:52] SteveA: we, me and debonzi, are planning more some infrastructure improve on soyuz for this week, moving classes do launchpad/[db,zcml,browser,etc] [02:52] so i can upload a package to that, watch it build, get it published, see it in the archive [02:52] Kinnison: a couple of modules, depending on a very limited subset of zope3 [02:53] SteveA: lib/canonical/lucille/uploader/*.py then I think would be best [02:53] debonzi: thanks for you help getting things into shape, i appreciate that you are always willing to take on new work! [02:53] you have been great in terms of getting the code base up to spec with newer standards [02:53] sabdfl, thanks :) [02:53] Kinnison: there are hooks to do stuff when a client disconnects. each client gets a fresh uploads directory inaccessible to other clients. [02:53] SteveA: Cool; that was pretty much what elmo said [02:54] I need to iron a few kinks out of it, update elmo's tests, and write some minimal docs === Kinnison nods [02:54] but, it basically works in my sandbox now [02:55] excellent. [02:55] tested with something like dput or dupload? [02:55] no, just plan ftp client [02:55] I'll leave that to you [02:56] There is still an iandrew.py in canonical/launchpad [02:56] it seems to mostly contain pyarch interfaces === SteveA pings ddaa [02:56] yeah? [02:56] wassup? [02:56] be nice if these can be moved, perhaps into canonical/launchpad/interfaces/pyarch.py [02:56] BradB|away, SteveA: we currently can create new users via soyuz, for the record. we're wondering how auth/ will handle this, if at all? [02:56] SteveA: I think you should ask spiv. [02:57] ddaa: there's a file in launchpad called lib/canonical/launchpad/iandrew.py [02:57] does it look like pyarch stuff to you? === ddaa looks [02:57] if so, we should move it into lib/canonical/launchpad/interfaces/pyarch.py, as at least there the name of the module tells you what to expect inside it [02:58] kiko: it doesn't have much to do with creating new users. [02:58] I think it would be interesting to see what is the diff compared to lib/canonical/arch/interfaces.py [02:58] you can protect the ability to create new users by a particular permission [02:58] ha... the interfaces are not here any longer... [02:58] SteveA, that's what I'm talking about. what are our security levels. [02:59] SteveA: in any case, it's massively based on the zope-interface stuff I did a while ago. [02:59] right now, just permissions zope.Public and launchpad.AnyPerson. I'll write more about that once the system is in rocketfuel. [02:59] ddaa: so it is all pyarch stuff? [02:59] I cannot be positive. I don't know what is the delta. [03:00] I do not even know what has become of that interface file I wrote. [03:00] glancing through it, would you give it a "probably mostly pyarch" ? [03:00] I wonder if it is even used... [03:01] ha... actually that _is_ the interface file I wrote I while ago. [03:01] SteveA, thanks. [03:01] if it isn't even used, we should get rid of it from launchpad [03:01] until it is used [03:01] It was renamed in patch-410 on october 1st. [03:02] Then you should ask spiv. I have not been involved in working with that crack for something like 4 months. [03:02] ok, thanks ddaa [03:03] any other business for this launchpad meeting? [03:03] SteveA: it's probably "mostly pyarch", but actually I never quite understood the purpose of that interface file to start with. [03:04] ddaa: i think those are the bits of buttress [03:05] in other words, those are interfaces used for the system to know about all the arch tables in the db [03:05] id like to know who in the arch team is repsonsible for those [03:05] since it's call spiv, I'd say spiv :) [03:05] no [03:05] when we were restructuring, we each created a file iname.py [03:06] then moved classes into our own files [03:06] but it doesn't mean that you knew too much about that subsystem [03:06] the summary of the revision when it was renamed was "Move interfaces and database classes for buttress and librarian." [03:06] then the subsystem owners were supposed to move the classes to interfaces/*.py and database/*.py [03:06] as i understand it you are the owner of the buttress system, right? [03:06] arch-in-launchpad? [03:07] I do not think so. All I did was writing the arch/interfaces.py file a while ago. [03:07] I should be taking ownership of buildbot in the next weeks. [03:08] Frankly I have no idea of the current scope of buttress. [03:08] How urgent is determining the fate of this file? [03:09] this is why buttress is lying in pieces on the floor then [03:09] nobody has ownership === BradB|away is now known as BradB [03:09] yeah, I asked about this a while back and nobody was in charge then either. [03:09] hi BradB [03:09] hi [03:09] we have 4 arch people on the team, one of them will have to take on buttress [03:09] hello brad. can you skip through the log of the meeting, and see if you need to add anything? [03:10] argh, sorry, i forgot :( [03:10] will definitely catch up though === ddaa greps through the code [03:14] SteveA: A few to things I would add are: [03:15] I'm planning on doing three things today: 1. setting default search criteria, based on the person looking at the page [03:15] This means we need to get everyone setup properly as maintainers of their respective products, or they won't see anything by default. [03:15] 2. Bug paging. [03:16] 3. Smarter notification, namely Cc'ing assignees automatically. [03:17] Secondly, that for the code formatting, maybe we could do as I've seen other sites do and break the rules a bit and use for multi-line code/traceback snippets (even though the spec says it's meant for partial-line snippets, it might be the most natural thing to use in our case for multi-line) [03:17] sabdfl, SteveA, whomever: What do you think? [03:17] how does the message presentation tell when to use around something? [03:17] sabdfl: this stuff is used mainly in the (largely useless) arch/broker.py module [03:17] or do you mean that a person includes that? [03:18] SteveA: the user puts it in there. we might have a little note saying "put around code snippets" to somehow make it obvious. [03:18] And also in some places in the new database stuff and in cscvs [03:19] Probably, you should also ask "what about arch.broker". [03:19] BradB: as we'll be drawing stuff in from other bug tracking systems, I think we'll need to have some heuristics that understand how these things work in such other systems. [03:19] could be one such heuristi [03:19] ddaa: what is arch.broker? [03:19] BradB: i think we need to chat a bit about the reporting pages [03:19] BradB: we seem to have different ideas of how the system is likely to be used [03:20] Something lifeless had bob2 to write during the last arch sprint, when we were trying to work around the missing database interface. [03:20] i definitely think a paging system will be very useful [03:20] Mostly stub. [03:20] Not THE stub, stub as in "place holder code". [03:20] BradB, SteveA: I don't think we should be defining yet-another-markup-language. I'd rather just render everything in a fixed with font preserving whitespace [03:20] sabdfl: there's only meant to really be one main "reporting" page, and if anything the current links like "bugs assigned to me", or "bugs i submitted" would be "shortcuts" with the appropriate pre-selected search criteria. heck, we could even give the user custom searches. [03:21] stub: YAML? is in the spec, at least. [03:21] (like
, except allowing the browser to break lines)
[03:21]  yeah, basically.
[03:21]  stub, BradB: if we render it in a fixed-width font, I guess we could use python's textwrap to wrap it at a sensible line length
[03:21]  BradB: So we are allowing HTML? Or a subset of HTML?
[03:21]  and make the original plaintext available at a link if necessary
[03:22]  stub: we'll allow a few tags
[03:22]  So we are defining a new spec
[03:22]  sabdfl: I guess we should discuss the fate of that cruft during the sprint.
[03:22]  ddaa: ok
[03:22]  stub: we're defining the tags from the spec you're allowed to use, yeah.
[03:23]  How will this interact with incomming and outgoing emails?
[03:23]  stub: the rules will be no different
[03:24]  we might have to special-case lines that start with ">>> ", i dunno. we'll figure some of this out as we go along, no doubt.
[03:24]  stub: but, well, outgoing, i'm not sure.
[03:24]  we could give a choice to the user to have html formatted mail, i suppose.
[03:24]  I'd like to declare this launchpad meeting officially over.  Doesn't mean you have to stop discussing bug formatting though.
[03:25]  if you're importing comments from debbugs, you'll have to treat the formatting in those differently, no?
[03:25]  The rules are different. Text based email (from developers) is in a monospace font. The system takes that and displays some of it as monospace and some of it as proportional. The outgoing emails are probably the original that was sent. We have two different renderings, and the person sending the email can't see which is used until after the message appears on the web site.
[03:25]  sabdfl: same place, dogfood_dump.bz2
[03:25]  If we just use monospace for everything, there is no need for 
[03:25]  stub: eeee, that would hurt
[03:26]  Why? Email will be monospace anyway, which is what the bulk of messages will be read in.
[03:27]  stub: are you familiar with debian's bug tracking stuff? i'm not, but if it's good, we could just borrow ideas mostly from them. i don't think it's worth spending too much time brainstorming about problems that have already been solved by several other systems.
[03:27]  Malone bug #29 closed for package malone: Make maintainer assignees visible
[03:27]  https://launchpad.ubuntu.com/malone/bugs/29
[03:28]  BradB: I'm not familiar with debbugs.
[03:28]  Merge to rocketfuel@canonical.com/launchpad--devel--0: More work on functional tests reactivation (patch-805)
[03:29]  debbugs just shows emils in a monospace font
[03:29]  do the simplest thing that works.
[03:29]  that doesn't surprise me. i can't see DD's wanting HTML-formatted email.
[03:29]  BradB: quite
[03:30]  I agree with Steve
[03:30]  me too, that's why i said i don't want to spend much time on this one.
[03:30]  except that linkifying stuff automatically is very useful
[03:30]  maybe pre + textwrap?
[03:30]  the #NNNN feature of bugzilla is nice
[03:30]  yep
[03:31]  and http:/... should be turned into http:/...
[03:31]  I'd like it to read "bug 56" rather than "#56" though
[03:31]  except you can't do the strikethrough thing that Bugzilla does, because bugs are never closed, as far as I can tell
[03:31]  they just have their package assignements closed
[03:33]  BradB: Just do each line as a 
, or  or  or whatever
[03:33]  https://launchpad.ubuntu.com/malone/bugs/45
[03:33]  New Malone bug #50: "Add an option to comment why we do a status change", submitted by Carlos Perell=C3=B3 Mar=C3=ADn
[03:33]  https://launchpad.ubuntu.com/malone/bugs/50
[03:34]  erk, need to implement quoted-printable decoding
[03:34]  dilys: you need to learn nonascii chars :-)
[03:34]  daf: Its all in the email package just waiting for you to use it.
[03:35]  stub: yeah?
[03:35]  Yup
[03:35]  stub: I thought it was elsewhere in the standard library
[03:35]  stub: hm, come to think of it, i don't think we want to break lines for code anyway.
[03:35]  stub: we don't we just allow 
 around blocks of code and be done with it?
[03:35]  stub: also, I've noticed that Malone notification emails contain newlines in the subjects
[03:35]  s/we/why/
[03:36]  daf: Well, if you are hacking it you can just do 'foo'.decode('quopri').
=== debonzi -> lunch
[03:37]  BradB: It seems to much up CSS - someone sends an email without line breaks and it screws up the rendering. Nicer if the browser knows it should break lines I think (my opinion anyway)
[03:37]  SteveA: not sure if you said it already, but I suppose the meeting is over, right?
=== carlos wants to go to have lunch
[03:38]  stub: how does it muck up the CSS if it's only around code blocks anyway?
[03:38]  carlos: yes, it's over
=== kiko is now known as kiko-fud
[03:38]  ok
[03:38]  see you later
[03:38]  BradB: how do you propose detecting code blocks?
[03:38]  daf: by not doing that.
[03:38]  BradB: How do you detect a code block? How do you enforce people to use 80 column windows when editing their source?
[03:39]  daf: the user just puts a 
 in there.
[03:39]  eurgh
[03:39]  stub: you can't enforce sanity. "wrapping" code is equally insane.
[03:39]  I suppose that work
[03:39]  s
[03:39]  s/enforce sanity/enforce sane coding/
[03:40]  Well, if we are assuming sane code then the lines won't be split anyway because they won't be too long
[03:40]  New Malone bug #50: "Add an option to comment why we do a status change", submitted by Carlos Perell Marn
[03:40]  https://launchpad.ubuntu.com/malone/bugs/50
[03:40]  better
[03:40]  nice
[03:40]  carlos the trouble maker
[03:41]  daf: thanks :-)
[03:41]  stub: we're assuming occassionally insane code, but that most of the time people don't write 100-column wide code blocks.
[03:41]  carlos: no problem :)
[03:41]  carlos: thanks for finding my bug
[03:41]  stub: my name is a good UTF-8 betatesting thing :-)
[03:42]  Oh - we definitely want to avoid giving HTML tags meaning in messages, because people need to discuss bugs in HTML templates and pages and 
 is a pretty common string when discussing web development.
[03:43]  stub: are you saying if someone say "yeah so i was using a 
 tag and blah blah..."?
[03:44]  s,say,says, # still not sufficiently caffeinated
[03:44]  Yup.
[03:44]  stub: then they'd escape it, of course :)
[03:44]  that's a non-issue.
[03:45]  BradB: It is a major issue. Messages that come in via email cannot be proofed by the end user.
[03:45]  I suggest DTSTTW for now, file a bug on fancy formatting later
[03:46]  * for later
[03:46]  Is that welsh or an acronym?
[03:46]  Do The Simplest Thing That Works
[03:47]  stub: i don't think malone is going to support incoming mail for a first the first release anyway, so i still think using 
 is the simplest thing that works for now.
[03:48]  Pre in our template, sure. Not interpreting 
 in message body though.
[03:49]  stub: you're wanting to auto-detect code then?
[03:49]  No - just render the entire thing as 
.
[03:50]  ugh :)
[03:50]  that looks horrid though
[03:50]  It is all just plain test, and code is no different to ascii tables, bullet lists, whatever
[03:50]  it's hard on the eyes. reading an entire programming text, for example, in fixed-width font, would not be a pleasant thing.
[03:51]  stub: anyway, i have to get on to the three things i mentioned earlier. i'd say either 1. go with my/SteveA/daf's side (i think?) and allow 
 or 2. do it your way, and see if people accept it.
[03:52]  But it doesn't have surprises. The unusal cases (large blocks of documentation) are better catered for using HTML or PDF attachments rather than giving surprising results for the normal situation (people type stuff that looks correct and enter submit)
[03:52]  stub: ok, go for it that way then, if you want to make the change. if malone users don't like it, they'll be sure to let you know. :)
[03:52]  Sure. There is a bug open on it, because I didn't want to just go and implement my opinion even though I know it is right ;)
[03:53]  BradB: I think I'm with stub here
[03:54]  if there's going to be special formatting, it should probably be only if the user explicitly selects it
[03:55]  and rather than creating a little Malone-specific markup language, it would be better to use RST or a wiki-like syntax
[03:55]  and you also want a preview mode so that users can check their markup is ok
[03:55]  so not doing any special formatting is much simpler in the short term
[03:56]  Yup. Not sure how to do previews when the message comes in via email, but agree.
[03:56]  sabdfl: got a moment to chat about the bug reporting?
[03:56]  BradB: sure
[03:56]  sabdfl: what was your concern?
[03:57]  stub: something debbugs does for bug submissions is treating the beginning of the body as an extra set of headers -- Package, Severity, etc.
[03:57]  stub: possibly Malone could do something similar for comments
[03:57]  the form on the bug listing page...
[03:57]  stub: or, just not format email
[03:58]  each of those selectors is going to be horribly difficult
[03:58]  because that page has no sense of it's own context
[03:59]  sabdfl: what is its context?
[04:00]  i would have thought 1. the defaults come from things we know about the current user and if those aren't good enough 2. we have the most kickass widget (when it's fully implemented) for searching large collections of things so they can easily find something different than what we defaulted to.
[04:01]  Zope 3.1 (i think) will have this thing called "sources" which is meant for huge vocabs. I'm not sure what the scope of sources in Zope 3 are though (i.e. if they'll come with some really cool widget.) This is such a critical thing for all of Launchpad though, that maybe we want to take an active role in that owrk.
[04:12]  Merge to rocketfuel@canonical.com/launchpad--devel--0: utilities/rocketsync, mirror rocketfuel with rsync (patch-806)
=== kiko-fud is now known as kiko
[04:50]  Merge to rocketfuel@canonical.com/launchpad--devel--0: Message display in monospace (patch-807)
=== cprov [~cprov@200.158.100.251]  has joined #launchpad
[05:08]  carlos: ever get your test failure sorted out?
[05:10]  carlos: it sounds like a possible bug in LaunchpadFunctionalTestCase. you might want to override setUp and tearDown in your class and throw some pdb.set_trace()'s in there to follow what's going on.
[05:12]  BradB: no I did not got a solution yet
[05:13]  BradB: ok, as soon as I finish my current work I will try to debug it that way
[05:13]  thanks
[05:17]  Merge to rocketfuel@canonical.com/buildbot--devel--0: fix use of taxi.importVersion to pass required logger argument (patch-69)
[05:22]  Malone bug #22 closed for package malone: Bug assignments table bad UI
[05:22]  https://launchpad.ubuntu.com/malone/bugs/22
[05:23]  stub: so does "Open" mean "someone's working on this"?
[05:24]  I think so - Assigned might be a better name for it. 
[05:25]  Or 'accepted'
[05:25]  I like assigned
[05:25]  It's what Bugzilla uses, and is perhaps the most clear.
[05:26]  we can tell assigned by seeing if there is an assignee, so that is almost a second status.
[05:26]  At the moment, a bug can be open without having an assignee so it might not be a good idea to use that.
[05:27]  stub: any status that is implicit by having someone assigned though is a second status. we want to have something that marks these as saying "someone's assigned to this bug" so that we can search for the bugs that don't have someone assigned.
[05:27]  what does "Open" mean then?
[05:28]  if it means Accepted, then well... :)
[05:28]  At the moment, I'm not sure :-(
[05:29]  why don't we have New, Accepted, Assigned and Closed then? (ugh, I hate Closed, it's so unclear)
[05:29]  Merge to rocketfuel@canonical.com/launchpad--devel--0: Malone polish (patch-808)
[05:30]  'in progress', 'pending', 'deferred' ?
[05:30]  stub: those seem less clear
[05:30]  well, deferred would be an addition to what i proposed.
[05:30]  New, Accepted, Deferred, Assigned and Closed.
[05:31]  New, Accepted, Deferred, Assigned, Fixed, Rejected, perhaps
[05:32]  I personally like an 'in progress' indicator, but people rarely use it so I don't know if we can include it
[05:32]  That last is sounding good.
[05:32]  I'll make the change and let people holler if it turns out to be unclear.
[05:33]  It can't be worse than what we currently have, that's for sure.
[05:33]  sabdfl or the others who speced this might know more about why it is like it currently is.
[05:33]  :)
[05:33]  sabdfl: can I go ahead and make this status change?
[05:33]  (for assignments)
[05:35]  Merge to rocketfuel@canonical.com/launchpad--devel--0: Add in checking of upload stuff from James (patch-809)
[05:35]  Open says "This bug has been reviewed and accepted by the maintainer, and is still open." which is recursive.
[05:38]  :-)
[05:40]  I think we can do without 'Assigned' as a status. Search forms could still list it with the real statuses and allow searching on it if they are trying to save screen real estate
[05:44]  Also, it we add 'Accepted' as a status we need to ensure that it can only be set if there is an assignee. We need to think through the workflow implications of adding 'Accepted' (eg. if we implement it as a status, changing the assignee should reset the status to 'open'. This might get annoying if a bug is passed back and forth between two developers, and they just won't bother 'accepting' the bug. Hmm...)
[05:45]  stub: Accepted can be set without an assigned.
[05:45]  Accepted just means the bug was accepted, i.e. "ah yes, this is indeed a bug"
[05:45]  Oh... I was thinking the assignee accepted the work
[05:45]  :-)
[05:46]  having the assigned status in there leaves no room for confusion
[05:46]  Bed time for me I think ;)
[05:46]  there may indeed be some workflow considerations for statuses though, but that doesn't change the need for them
[05:48]  Assigned status sounds like 'in progress'. Note that the bug might be assigned to someone when it is 'NEW' to be evaluated, so an 'Assigned' status seems unclear.
[05:49]  it's sort of a six-of-one, half dozen of the other, i guess.
[05:50]  plone's collector uses in-progress, i think, whereas bugzilla uses assigned.
[05:50]  Mmm.... I'm tired so I don't get to make any decisions atm ;)
[05:50]  I'm sure Mark will have an opinion though ;)
[05:54]  sabdfl: btw, "Quick Searches" like at http://plone.org/collector is what i had in mind for making the assigned and created by reports go away.
[05:54]  ok
[05:55]  stub: before you crash
[05:55]  do you have an answer for me on the bugmesage refactoring?
[05:57]  sabdfl: can i go ahead and change assignment statuses to New, Accepted, Deferred, Assigned, Fixed, and Rejected?
[05:58]  no dude
=== SteveA goes to work in a cafe.  too cold at home.
[05:59]  (after a starmerge that is)
[05:59]  sabdfl: the statuses as they are currently are preventing me from getting work done. i want to reject bugs, but i can't. i want to say i fixed a bug, but i can't.
[06:00]  sabdfl: Looks fine except you need to reset the DEFAULT value on the Message table's primary key. See archives/patch-2-11-0.sql for an example, or we can work on the patch in the pending directory
[06:00]  sabdfl: and if you asked all 8-10 LP'ers what "Open" on a bug means, you'd almost surely get 8-10 different answers. :)
[06:00]  BradB: we spent a lot of time reducing the number of states on bugassignment status
[06:01]  malone has states on assignment and infestation
[06:01]  sabdfl: why spend a lot of time on wanting to do that?
[06:01]  we will also introduce a state on the bug itself
[06:01]  the risk is that we get into the same message that bugzilla is in
[06:01]  where there are too many different knobs
[06:01]  and people don't know how to use them
[06:01]  BradB: because i'm a simplicity fascist
[06:02]  so don't go undoing all that good work
[06:02]  sabdfl: so am i :) i'm a usability fascist. i can't help but think about me here, because i'm using malone to try and do my job.
[06:02]  sabdfl: I find the fact that a bug doesn't have a status seriously confusing, and I suspect other people will too
[06:02]  daf: yes, that's going to be a usability thing we have to work out
[06:03]  sabdfl: ok, you're aware of it then
[06:03]  what do you mean you don't know how to reject bugs? 
[06:03]  Are the ftests currently disabled?
[06:03]  sabdfl: the way it's currently setup, an infestation is *required* to fix a bug.
[06:03]  no it isn't
[06:03]  sabdfl: yes, it is. because otherwise i have to say it's "Closed", which is not saying that it's "Fixed".
[06:04]  right
[06:04]  sabdfl: and our users are saying it's confusing. why are the designers right and the users wrong?
[06:04]  the designers accept it's not very usable
[06:05]  but the quick fix you are proposing might likely make the situation worse
[06:05]  BradB: The 'Closed' vs. 'Fixed' might not be an issue, as there is a priority WONTFIX that can be used to flag bugs that will be open forever.
[06:05]  if you want to change the states you'll need to walk me through it carefully
[06:05]  right
[06:05]  wontfix says "yes this bug is open but i won't fix it"
[06:06]  sabdfl, stub: there needs to be one column that tells me the "health" of this bug. status is it.
[06:07]  BradB: i've been toying with the idea of a status on the bug itself
[06:07]  but think about it: whatever status is there has to apply to EVERY context where that bug is found
[06:07]  upstream, and in all distro's
[06:08]  not upstream, just distros
[06:09]  eeg, brain starting to hurt
[06:10]  i want simple, simple, simple. i don't want to be made to think when it comes to the mindless task of saying "i fixed this" or "nope, sorry dude, this isn't a bug".
[06:10]  sabdfl: some bugs are just wrong, and it should be simple to deal with them
=== BradB thinks
[06:13]  i'm just wondering if in fact infestations carry the more pivotal role, and package/product assignments are just things we do in the background, to ensure the bug gets in the relevant maintainer's face.
[06:14]  I think the problem lies in the fact that Malone represets related problems in different areas as one bug where other bug systems would represent them as many
[06:14]  that's a very clean model
[06:14]  but it doesn't make for an easy interface
[06:17]  sabdfl: in response to your earlier comment about how a "Fixed" on an assignment would be problematic because it spans distro releases, well, yes, we want to be able to say that.
[06:18]  people like to be able to say "I closed bug #123", even if it's only fixing the problem in one package
[06:18]  we have several options
[06:18]  sabdfl: it makes sense to me to say "Fixed" on apache 2.0.52, but also "Fixed" on apache.
[06:18]  I can't see people putting "changed status of packageassignment to foo of bug #12345 to closed" in changelogs
[06:18]  one way is to come up with a neat way of saying "i closed #123 in ubuntu/firefox[/warty] "
[06:19]  the other is to treat each assignment as a distinct #
[06:19]  so closing #123 would mean closing an assignment
[06:20]  sabdfl: the first one is what i'm suggested with my status changes. the second suggestion would make my life more difficult (and everytime I say "my" and refer to "me" here WRT usability, i'm really referring to my opinion of what the majority of Malone users will think about it)
[06:21]  BradB: you don't need additional statuses for the first
[06:21]  sabdfl: you do, because you need to be able to say "i fixed #123"
[06:21]  sabdfl: or "nope, #123 is not a bug"
[06:21]  sabdfl: or "i'll fix #123, but not yet"
[06:22]  "i'l fix #123 but not yet" would be: leave assignment status OPEN set priority LOW
[06:23]  "nope #123 is not a bug" would depend, if it's not a bug HERE then close the assignment, if it's not a bug ANYWHERE then close the assignment and MAYBE put something else on the bug status itself
[06:24]  "i fixed 123" would be "set bugassignment for 123 to CLOSED"
[06:24]  sabdfl: your solution communicates neither 1. that it was fixed, nor 2. that it was rejected.
[06:25]  sabdfl: If I have a status "Fixed" an an assignment, there can be no misinterpreation of what that means. OTOH, what is the argument /against/ having "Fixed" that is somehow alleviated by only having "Closed"?
[06:26]  maybe we can have FIXED and REJECTED
[06:26]  so it goes NEW, OPEN, REJECTED and FIXED
[06:27]  can we change OPEN though? i think it communicates very little information. if it means "Accepted" why make the user try and think that one through to arrive at that conclusion, when we could have just called it "Accepted" in the first place? :)
[06:28]  to me, OPEN implies that no decision has been made on this one, e.g. even a decision on whether or not it's a bug.
[06:29]  right
[06:29]  NEW, ACCEPTED, REJECTED, FIXED
[06:29]  particularly since we have its opposite, REJECTED
[06:29]  ok, cool, that's a good start.
[06:29]  i'll make that change and we can see how users like it. sound good?
[06:30]  Just pretty please make sure the numerical representation of 'FIXED' is the same as 'CLOSED', or if you need to change it make sure I do a database patch to update the existing assignments ;)
[06:31]  stub: i'll make it the same. at worst, it's a one-line update anyway.
[06:31]  Yer. I just don't want to roll out onto dogfood and reject all our closed bugs ;)
[06:32]  an update may be required actually, since i want them numbered 1-4 in the order sabdfl mentioned above
[06:32]  and Closed is currently 3, i believe
[06:32]  either way, it'll be sorted out
[06:33]  ok. Just stick a patch in database/schema/pending (or a rude note) so I don't forget ;)
[06:33]  yes, will do, thanks
[06:38]  BradB: i'd like to get the infestation foo working well, before we start to mess more with the model
[06:38]  in other words i'd like to see how slick we can make it by integrating properly into the workflow
[06:38]  so, for example, we get it so a package upload can tell malone which bugs it fixes, and have it automatically create the "fixed" infestation, and close the assignment
[06:39]  i'm happy with the NEW, ACCEPTED, REJECTED, FIXED change, but would like to minimise other state diagram changes
[06:40]  sabdfl: yes, i'm happy to go with that change now, since it allows is to do things we can't currently do and continue to solicit more user feedback.
[06:40]  ok
[06:40]  don't go 1,2,3,4
[06:41]  Fixed will be 3, I think.
[06:41]  NAFR
[06:41]  i've migrrated other things to 10, 20, 30, 40...
[06:41]  ok
[06:41]  so we can more easily add intermediate values in a sensible sort of sort order
[06:41]  stub: ok, so i'll be giving you a migration script :)
[06:50]  New Malone bug #51: "Rosetta translations statistics", submitted by Daniel Debonzi
[06:50]  https://launchpad.ubuntu.com/malone/bugs/51
[07:01]  stub: still around?
[07:01]  yup
[07:01]  ok, i'm still trying to get a dump of the dogfood db
[07:01]  Kinnison has made a few attempts, but I can't import them into my local machine for some reason
[07:01]  i really need this today
[07:03]  You can't import the dumps directly due to a limitation in PostgreSQL (probably a simple fix, but nobody has bothered. Might be a good bounty). It will fail because it dumps objects in the order they were created, which screws up when column constraints are added after the tables or views altered.
[07:04]  To load the dump, you need to change the order that the objects are created by using pg_restore -l and pg_restore -L
[07:05]  (pg_restore -l to get a list of stuff in the dump to a file, edit the file, use pg_restore -L to restore using your specified order)
[07:06]  There are examples in 'man pg_restore' in the EXAMPLES section
[07:07]  Alternatively, do your tests on mawson. Use 'createdb -E UNICODE --template=launchpad_dogfood_20041117 sabdfl_test' to duplicate the database.
[07:09]  i need to get the data into my own db so i can massively vchange it and run lp against it
[07:09]  stub: please make this easy for me. produce a blob somewhere that i / we can just pqsl -d lp_dev -f xxx 
[07:11]  Oh - quickest way of doing it in our case is to load trusted.sql into the database before restoring the backup. That should sort out the dependancies (in our case)
[07:12]  I'm having net difficulties at the moment (nameservers seem screwed) 
=== BradB is now known as BradB|lunch
[07:24]  night all :o)
[07:25]  lulu: night
[07:25]  lulu, night
[07:25]  night guys :o)
=== lulu [~lu@host217-37-231-28.in-addr.btopenworld.com]  has left #launchpad [] 
[08:02]  BradB|lunch: the set_trace suggestion does not works, it just breaks the test and I'm not able to debug it
[08:19]  Merge to rocketfuel@canonical.com/launchpad--devel--0: Added support to change the fuzzy flag explicity by the translator. We have now all basic features to translate an application with Rosetta (finally) (patch-810)
=== Kinnison waves
[08:27]  any css specialist around?
=== BradB|lunch is now known as BradB
[08:37]  carlos: I don't get it. What happens when you put a set_trace() in the setUp method of your class exactly?
[08:38]  Error in test testPoExportAdapter (canonical.rosetta.ftests.test_poexport.POExportTestCase)
[08:38]  Traceback (most recent call last):
[08:38]    File "/home/carlos/Work/dists/launchpad/lib/canonical/rosetta/ftests/test_poexport.py", line 156, in setUp
[08:38]      pdb.set_trace()
[08:38]    File "/usr/lib/python2.3/pdb.py", line 992, in set_trace
[08:38]      Pdb().set_trace()
[08:38]    File "/usr/lib/python2.3/bdb.py", line 52, in trace_dispatch
[08:38]      return self.dispatch_return(frame, arg)
[08:38]    File "/usr/lib/python2.3/bdb.py", line 80, in dispatch_return
[08:38]      if self.quitting: raise BdbQuit
[08:38]  BdbQuit
[08:39]  I don't have any chance to debug it, I think it's because the stdin/stdout are not connected to my terminal
[08:39]  carlos: what exactly does your setUp look like?
[08:39]  import pdb
[08:40]  pdb.set_trace()
[08:40]  carlos: oh, hm, maybe it's because when i was doing that, I was running one test at a time or something
[08:40]  and then a call to super
[08:40]  BradB: yes, I suppose that's the difference
[09:01]  Merge to rocketfuel@canonical.com/launchpad--devel--0: Moved rosetta/sql.zcml to the common infrastructure (patch-811)
[09:25]  Bug 1948 resolved: scripts to dump/restore user information from/to Launchpad DB
[09:25]  https://bugzilla.warthogs.hbd.com/bugzilla/show_bug.cgi?id=1948
[09:28]  Bug 1947 resolved: Implement cookie-based authentication for launchpad
[09:28]  https://bugzilla.warthogs.hbd.com/bugzilla/show_bug.cgi?id=1947
[09:29]  Bug 2076 resolved: Login status does not work in public pages
[09:29]  https://bugzilla.warthogs.hbd.com/bugzilla/show_bug.cgi?id=2076
=== kiko [~kiko@200-206-134-238.async.com.br]  has joined #launchpad
[09:31]  tv time
[09:31]  later
=== kiko [~kiko@200-206-134-238.async.com.br]  has joined #launchpad
=== salgado [~salgado@200-206-134-238.async.com.br]  has joined #launchpad
[09:41]  Merge to rocketfuel@canonical.com/launchpad--devel--0: missed clausetables from malone/bugassignment (patch-812)
=== kiko [~kiko@200-206-134-238.async.com.br]  has joined #launchpad
[09:44]  cprov: any news on the pagetest diff fix?
[09:45]  I'm fixing tests that broke from my bug status changes, and with all the false diff output it's hell.
=== kiko [~kiko@200-206-134-238.async.com.br]  has joined #launchpad
=== kiko [~kiko@200-206-134-238.async.com.br]  has joined #launchpad
[09:46]  BradB: sorry, but not yet, I can't see any smart way to handle the returned diff w/o lost information
=== kiko [~kiko@200-206-134-238.async.com.br]  has joined #launchpad
[09:47]  BradB: just parse the data in test_on_merge should be the easiest way, but doesn't produce good results 
[09:48]  cprov: test_on_merge has nothing to do with this. It's a bug in the page test thing.
[09:48]  BradB: diff has no option (or I didn't found an appropriated)  to help me 
[09:48]  cprov: it wouldn't
[09:49]  the key is to chop out stuff like:
[09:49]  -...
[09:49]  +foo
[09:49]  +bar
[09:49]  +baz
[09:49]  i.e. when the *only* expected output was an elision, that's a decoy
[09:49]  which is what i was saying yesterday
[09:50]  cprov: have you written the test for this first? that's probably the best way to get thinking about how to solve the problem.
[09:50]  BradB: the test page works in the correct way verifying the page, i.e., the problem is just the returned output, I think ...
[09:50]  cprov: exactly
[09:50]  BradB: of course I wrote
[09:52]  BradB: the diff output style is problem, may we have better "on-the-fly" info 
[09:52]  cprov: i don't get it: what's hard about chopping out the diffs that look like:
[09:52]  -...
[09:52]  +blah
[09:52]  then?
[09:53]  BradB: since 

...

is different than ... , can you see my point ? === SteveA [~steve@adsl-213-190-44-43.takas.lt] has joined #launchpad [10:00] cprov: yeah, hm === salgado [~salgado@200-206-134-238.async.com.br] has joined #launchpad [10:01] SteveA, quick question for you :) [10:01] BradB: I can't simply "ignore lines w/ PATTERN(..., +blah, +baz", what is also something wierd to do w/ unified diff format [10:02] SteveA, should I move the app component classes from lanchpad/soyuz to somewhere else? [10:02] SteveA, if yes, where? === salgado [~salgado@200-206-134-238.async.com.br] has joined #launchpad [10:03] can you give me an example of what you mean? [10:04] SteveA, yes... I have for exaple DistroReleaseSourceApp that is used as the context inside the zpt [10:05] I have one like this for each soyuz page [10:06] I saw a lot of malone stuff was moved to launchpad/database for example but I don't think this is the place for app components [10:07] Im just trying to follow the standard moving the right things to launchpad/database launchpad/browse launchpad/zcml [10:08] debonzi: I'll take a look in a min [10:09] SteveA, maybe they should be keeped in soyuz directory as it is now but I whould like to have your opnion.. thanks [10:12] well... [10:12] I'm looking at distroapp.py [10:12] right [10:12] there are some unused imports, incidentally [10:12] SteveA, are there? Ill check them [10:13] there is definitely database code in there, in the sense that it is doing ad-hoc selects [10:13] and, that won't get caught by the security stuff [10:13] so, we should refactor these so that they are methods on classes in canonical/launchpad/database [10:13] and then the code in distroapp.py would call those [10:14] SteveA, are you saying that I *can't* have select inside the app component classes ? [10:14] basically, the code should be calling only methods on the interface of the objects it gets in its __init__ method [10:14] or of utilities it gets [10:15] right, you shouldn't have those. a select is database code, so it should be in the database area [10:15] but, the code as a whole is really functioning as an adapter of (for example) a distribution [10:15] I think it might require a bit more thinking and talking to work out what's best to do here [10:16] can we have a meeting about it, say tomorrow, with maybe celso and kiko too? [10:16] then we can all discuss it and decide what's best to do [10:16] SteveA, would be nice as long as we have this kind of things in some other places too [10:16] SteveA, for me its perfect [10:17] what time? I have a rosetta meeting at 12:30 UTC [10:17] after it is to late for you? [10:17] s/to/too [10:17] I am two hours ahead of UTC [10:17] we could say 16:00 UTC, perhaps? [10:18] or 16:30 [10:18] how about 16:30 ? [10:18] For me its ok [10:18] cprov: how about you? [10:18] cprov: yes [10:18] ok, great [10:18] please mention to kiko [10:19] SteveA, I will .. thanks a lot [10:19] thanks for bringing this up debonzi [10:19] and, perhaps you can remove the unused imports? [10:20] there is actually a tool to help with this somewhere [10:20] SteveA, yes.. Ill check all of them [10:20] in the zope3 utilities I think [10:20] sourcecode/zope/utilities/importchecker.py [10:20] SteveA, cool :) [10:20] it isn't perfect, but it is helpful [10:26] SteveA: any remarks related to zope.app.tests.test ? parsing unified diff format looks crap ...I'm kind of lost on it [10:27] cprov: I'm currently getting the ftp server ready to check in, so I can't look right now [10:28] SteveA: ok, let me know when you have time ... tks anyway :) [10:29] cprov: what's the name of the z3 method that compares expected to actual? I'm wondering if you can somehow only diff the bits that it says aren't equal, rather than diffing the entire input against the entire output [10:32] BradB: I wonder too, it seems to be not z3 ... at least not in zope.app.tests.test, its a great idea [10:34] lib/zope/testing/doctest.py [10:35] yeah, was just about to say... [10:38] SteveA: difflib ? ok, maybe we can have luck in that way [10:41] cprov: i think that the first thing that needs to be done would probably be to make sure there's a little method in the elision-aware machinery that knows how to return *only* the chunks that were truly different. at that point, the problem virtually solves itself. remember though, that elision is just a flag passed to this machinery, so that sometimes a "..." can literally mean a "...", which is why this fix needs to be fairly d [10:41] eep in the machinery. === ddaa [~ddaa@deep-thought.xlii.org] has left #launchpad [] [10:45] um [10:45] can a '...' literally mean a '...' ? [10:45] i believe so [10:45] I mean, sure, '...' will match '...' and also '......' [10:45] and also '.' [10:46] "ellipsis": r""" [10:46] If the ellipsis flag is used, then '...' can be used to [10:46] elide substrings in the desired output: [10:46] >>> print range(1000) #doctest: +ELLIPSIS [10:46] [0, 1, 2, ..., 999] [10:46] cprov: the first thing I'd do is prepare a text file of sample input, one of comparison input, and one of desired diff output [10:46] cprov: he said he's already written the tests [10:46] then write the test that shows what you'd like to happen [10:47] if so, great! === carlos [~carlos@69.Red-80-33-181.pooles.rima-tde.net] has joined #launchpad [10:54] SteveA: BradB: can it be a real/current (small one) launchpad test ? keeping the things near of our work ? [10:54] cprov: basically it comes down to OutputChecker.check_output sucking, I think. [10:55] cprov: it should probably just be a few simple five line examples, demonstrating in an easy-to-digest way the edge cases that are proven to behave correctly. [10:55] BradB: I think too [10:56] BradB: ok [10:58] BradB: I need to go ... if you have some other idea, please write an email to me [11:14] Merge to rocketfuel@canonical.com/launchpad--devel--0: added ftp server. added annotation-in-zodb support. (patch-813) [11:24] >>> from canonical.launchpad.interfaces import IZODBAnnotation [11:24] >>> IZODBAnnotation(some_bug)['soyuz.todolist'] = "Here is my todo list for some_bug" [11:25] >>> del IZODBAnnotation(some_bug)['soyuz.todolist'] [11:25] >>> 'soyuz.todolist' in IZODBAnnotation(some_bug) [11:25] False [11:26] >>> IZODBAnnotation(some_bug).get('soyuz.todolist') [11:26] None [11:26] >>> IZODBAnnotation(some_bug)['soyuz.todolist'] = "Here is my todo list for some_bug" [11:26] >>> print IZODBAnnotation(some_bug)['soyuz.todolist'] [11:26] "Here is my todo list for some_bug" [11:26] === SteveA notes that the soyuz team is not here === SteveA goes to bed [11:35] hm, why do we want to store that in the ZDOB? [11:35] ZODB even === carlos [~carlos@69.Red-80-33-181.pooles.rima-tde.net] has joined #launchpad === elmo [~james@george.kkhotels.co.uk] has joined #launchpad