[00:17] intellectronica: I think it would be nice if windmill tests just pushed a config value that made canonical_url return the correct port and scheme. [00:17] abentley: yeah, or they could even just decorate canonical_url to do the transformation [00:19] That could work too. [00:19] abentley: actually, i think the best solution is to simply have another canonical_url in the testing package, and just import it from there. that's a bit more explicit than modifying the behaviour behind the user's back [00:20] intellectronica: The behaviour of canonical_url is already customized in a testing context-- I think it's not surprising. [00:21] you're right, i didn't consider that it's already modified [00:21] anyway, add that to the bug. it's too late for me to fix it now but i prolly will tomorrow morning [02:32] mwhudson: feel like reviewing my branch? [02:33] thumper: sure [02:34] * thumper sends it in [02:48] who wants to review a windmill fix? it's a very easy review [02:49] gmb: awake? [02:51] mwhudson: review? it's pretty much just moving code around without change [02:51] intellectronica: ok [02:52] mwhudson: https://code.edge.launchpad.net/~intellectronica/launchpad/fix-test-mark-duplicate/+merge/13682 [02:53] mwhudson: http://pastebin.ubuntu.com/297931/ if you don't want to wait for the diff to generate [02:55] looking [02:55] mwhudson: all the patch does is take the test, move it to the directory up one level, and make the test function a method of a new proper test suite [02:57] intellectronica: done [02:58] mwhudson: danke [03:35] thumper: what's the difference between test_linked_to_development_package and test_linked_to_dev_package ? [03:35] ? [03:35] where? [03:37] thumper: in your branch, lib/lp/code/model/tests/test_branch.py [03:37] line number? [03:37] 489 & 506 [03:38] they look like different ways (yay, sigh) of saying the same thing [03:38] not quite [03:38] one uses the RELEASE pocket [03:38] so it is the dev focus [03:38] the other uses the backports pocket [03:38] so it definitely isn't [03:39] thumper: not that test [03:41] arse [03:41] it is [03:41] I thought I looked for a test that said that [03:41] grr [03:41] I can remove the duplicate [03:42] soyuz's confusatron field creeps into code :( [03:42] thumper: thanks [04:22] thumper: branch reviewed [04:22] thansk [04:24] aaaaaaaaaaaaaaaaaaaarrrrrrrrrrrrrrrrgggggggggggggggghhhhhhhhhhhhhhhhh [04:24] * thumper was reading wrong class [04:24] thumper: ? [04:26] lazr-js TextAreaEditorWidget [04:28] mwhudson: I've fixed the accept_empty bit [04:28] mwhudson: and I can live with the style id as we don't yet have descriptions for merge proposals [04:46] ohh [04:48] bugger [04:49] thumper: it sounds like you're js hacking! [04:49] mwhudson: look at the priv msg [04:49] mwhudson: that is public [04:49] hm? [04:50] thumper: oh [04:50] bugger [04:50] yeah [04:50] * thumper is fixing [05:01] mwhudson: there is a branch that simply moves the bmp registant ready :) [05:02] will loading the page do nasty things to my browser? [05:02] no [05:03] thumper: inline reviewing seems to have gone away [05:03] sometimes, and I don't know why [05:04] "yay" [05:29] mwhudson: any idea why this test doesn't fail? https://pastebin.canonical.com/23598/ [05:32] thumper: wouldn't that only fail after you've fixed the bug? [05:32] mwhudson: which I have [05:32] thumper: oh [05:32] then i don't know [05:32] mwhudson: I was changing the test to show that it is fixed [05:33] bum [05:33] maybe extract_text is full of crack? [05:33] mwhudson: the web ui shows the right thing [05:33] it shouldn't be [05:33] I wrote it :) [05:34] heh heh [05:34] mwhudson: I found it [05:34] mwhudson: I'm editing the wrong buffer [05:34] right file [05:34] wrong branch [05:34] D'oh [05:34] lolz [05:41] just did it again for the fix :( [05:46] mwhudson: want to review the v.small fix? [05:47] thumper: sure [05:49] mwhudson: just waiting on the diff [05:51] mwhudson: you should have it now [05:52] thumper: please get spm to cowboy the template fix? === jtv changed the topic of #launchpad-reviews to: on call: jtv || reviewing: — || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ === jtv changed the topic of #launchpad-reviews to: on call: jtv || reviewing: danilo || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ === allenap changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: danilo, - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ [09:47] Morning jtv :) [09:47] allenap: morning! [09:47] allenap: oh, I already did danilo's. All the other ones on the queue were for me. :-) === jtv changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: —, — || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ [09:50] jtv: Okay, I'll do yours then. There's one from jelmer too, for launchpad-cscvs, but I think I might leave that for someone who's more familiar with vcs stuff than me. [09:50] allenap: I can try that one then. Hadn't seen it appear. === allenap changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: —, jtv || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ [10:18] jtv: may I bother you with an MP having an overly long diff? 1000 lines, but mostly mechanical changes. Only ~130 lines are "real" changes. [10:19] adeuring: ok [10:19] jtv: thanks! === jtv changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: adeuring, jtv || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ [10:20] adeuring: it's the new-attempt one? [10:21] jtv: no, this branch: lp:~adeuring/launchpad/hwdb-build-udev-device-list-2 . Need to write the mp [10:33] jtv: https://code.edge.launchpad.net/~adeuring/launchpad/hwdb-build-udev-device-list-2/+merge/13695/comments/35227/+reply [10:34] erm, scrap that "+reply"; want to add the test command and the "make lint" output [10:34] adeuring: ok [10:37] jtv: https://code.edge.launchpad.net/~adeuring/launchpad/hwdb-build-udev-device-list-2/+merge/13695 , that's what i menat. [10:37] adeuring: I had arrived there yes, thank you :) [10:43] adeuring: I do think it's a bit ugly to do self.devices = devices = {} [10:43] jt: why? [10:43] The "shorthand" of saying devices instead of self.devices doesn't even save you much here. [10:44] well it saves one word -- "self" ;) But I'll remove the local variable [10:44] When I read that line, I have to worry: do you really mean two references to the same dict, or is it a mistake? [10:44] Thanks. [10:48] adeuring: in the hwdb_submission_processing test, SubmissionParserFakedBuildDeviceList is a bit long as a name. How about MockSubmissionParser? [10:48] jtv: Sure [10:49] Good testing technique, btw. I sometimes use the real object and just inject a callable mock object in place of a method, but if you can get away with something short and sweet like this, great. [10:51] jtv: the problem with mock ojbects here is that it such data would probably look quite ugly and convoluted. The test file has many examples of this ;) [10:53] adeuring: in test_processSubmission_buildDeviceList_failing it might be useful though. [10:53] jtwhy? [10:53] def no(*args, **kwargs): [10:53] return False [10:53] #... [10:53] parser.buildDeviceList = no [10:54] adeuring: that saves you a lot of long identifiers (though "no" may be a bit too short :-) [10:55] jtv: question is what sort of test styles we prefer. I another review I got the recommendation to avoid monkey-patching ;) [10:56] jtv: personally, I don't mind much, btu we should be consistent ;) [10:56] adeuring: IMHO, only when there's a clear winner among the options. :-) [10:57] jtv: well, as I said, I really don't mind. So, you think I should use a method like "nyet(...)"? [10:57] ...oder "nein()" [10:58] adeuring: in this case I think it's justified. [11:00] jtv: OK, changed..... [11:02] adeuring: approved [11:02] jtv: thanks! [11:02] macht nix === jtv changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: —, jtv || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ [12:08] jtv, allenap: https://code.edge.launchpad.net/~leonardr/lazr.restfulclient/264098-eq-ne/+merge/13697 [12:10] leonardr, jtv: I can take that. === allenap changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: —, leonardr || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ === matsubara-afk is now known as matsubara [12:24] allenap: thanks, some very nice suggestions there. And the one hard-to-document parameter turned out to be unused. :) [12:25] jtv: Woohoo :) [12:38] leonardr: You have tests for recipe.__hash__(), but there is nothing in the diff that defines the __hash__ method. [12:39] allenap: i'm using the default python object implementation [12:39] it was the only way i could think of to show that these two python objects were different [12:39] but i'm probably missing something obvious [12:39] leonardr: Okay. You could say recipe is recipe2 and expect False. [12:39] ok [12:39] that's nice and obvious [12:40] jtv: got another one for you ;) https://code.edge.launchpad.net/~danilo/launchpad/bug-455771/+merge/13699 (diff should be regenerated any minute now) [12:40] give them a finger and they want the whole hand... [12:46] jtv: that's how it works :) [12:46] jtv: anyway, the diff is there now [12:46] sigh. Coming... [12:46] (for the public record: not serious :) === jtv changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: danilo, leonardr || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ [12:50] danilos: I'm too lazy to look it up, but you have a conditional top-portlet now. Won't that upset your layout when the div is not shown? === allenap changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: danilo, - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ [13:06] jtv: nope [13:07] danilos: too late; it's already in the mp. :-P [13:16] jtv, allenap: and now, https://code.edge.launchpad.net/~leonardr/lazr.restfulclient/verbose-http-error/+merge/13702 [13:16] leonardr: sorry, I'm just eod'ing (and in standup) [13:17] np === jtv changed the topic of #launchpad-reviews to: on call: allenap || reviewing: — || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ [13:20] allenap: bowing out. Have a good one! === mrevell is now known as mrevell-lunch === mrevell-lunch is now known as mrevell [13:50] allenap, can you look at the branch i linked above? === jamalta_ is now known as jamalta === gary_poster is now known as gary_poster-spri === gary_poster-spri is now known as gary-sprint === abentley1 is now known as abentley [15:00] jtv: Cheerio :) I'll review your bug #417968 branch now. [15:00] Bug #417968: Auto-approver: pathless template with unique name === allenap changed the topic of #launchpad-reviews to: on call: allenap || reviewing: jtv || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ === EdwinGrubbs changed the topic of #launchpad-reviews to: on call: allenap, Edwin || reviewing: jtv || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ === salgado is now known as salgado-sprint [15:57] allenap, edwin: please review https://code.edge.launchpad.net/~leonardr/lazr.restful/fix-media-type-misspelling/+merge/13711 [15:59] leonardr: I'm on it. === allenap changed the topic of #launchpad-reviews to: on call: allenap, Edwin || reviewing: jtv&leonardr, - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ [16:07] leonardr: r=me === allenap changed the topic of #launchpad-reviews to: on call: allenap, Edwin || reviewing: jtv, - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ === salgado is now known as salgado-lunch === matsubara is now known as matsubara-lunch [16:44] allenap: and the follow-up: https://code.edge.launchpad.net/~leonardr/lazr.restfulclient/fix-media-type-misspelling/+merge/13715 [16:44] leonardr: Okay. === allenap changed the topic of #launchpad-reviews to: on call: allenap, Edwin || reviewing: leonardr, - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ [16:46] EdwinGrubbs: Do you have much VCS-fu? There's a proposal from Jelmer for launchpad-cscvs, https://code.edge.launchpad.net/~jelmer/launchpad-cscvs/converted-from/+merge/13542 [16:51] allenap, Were I you I'd politely ask abentley to review that one. [16:52] jml: Okay. [16:53] abentley: Please can you have a look at Jelmer's launchpad-cscvs proposal, https://code.edge.launchpad.net/~jelmer/launchpad-cscvs/converted-from/+merge/13542 :) [16:53] jml, allenap: rockstar volunteers. [16:53] allenap, I can take it. I'm one of the few who have actually braved cscvs. [16:53] And I like abentley too much to expose him to that. [16:53] rockstar: Awesome :) [16:54] rockstar, yay [16:59] leonardr: r=me, with a question/suggestion. === allenap changed the topic of #launchpad-reviews to: on call: Edwin || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ [17:00] that's not a bad suggestion === deryck is now known as deryck[lunch] === gary-sprint is now known as gary-lunch === salgado-lunch is now known as salgado === salgado is now known as salgado-sprint === matsubara-lunch is now known as matsubara [17:15] allenap: I don't think I'm qualified to review that. [17:17] EdwinGrubbs: Sorry, rockstar took it already, shortly after I asked you. [17:17] EdwinGrubbs: I should have said something :( [17:17] allenap: well, I was having networking issues anyway. === beuno is now known as beuno-lunch === gary-lunch is now known as gary-sprint [17:57] jml, are you around? [17:58] leonardr, yes. [17:58] leonardr, how can I help? [17:58] i'd like your opinion on a branch i've written to address bug 319432 [17:58] Bug #319432: RelativeURIError when trying to access an redacted object [17:59] i'm writing an mp now [18:00] leonardr, my opinion is always available :) === deryck[lunch] is now known as deryck [18:03] jml: https://code.edge.launchpad.net/~leonardr/lazr.restfulclient/319432-redacted/+merge/13716 === beuno-lunch is now known as beuno === leonardr is now known as leonardr-lunch === maxb_ is now known as maxb === leonardr-lunch is now known as leonardr [19:06] edwin, would you look at https://code.edge.launchpad.net/~leonardr/lazr.restfulclient/319432-redacted/+merge/13716 ? [19:52] beuno: you around for some ui questions? [19:53] bac`, sure [19:53] beuno: great. i'm working on bug 419742. (hey i like my jaunty little reverse grave.) [19:53] Bug #419742: downloads page should include some data about the releases [19:54] salgado had made some changes coming up with http://launchpadlibrarian.net/30906325/download.png [19:55] i've been trying to work in poolie's other comments and have gotten this: [19:55] http://people.canonical.com/~bac/download.png [19:55] beuno: i was hoping you could give me some ideas if i'm on the right track [19:56] * beuno looks [19:57] beuno: i've made the 'release notes' optional, added 'changelog' and made it optional and collapsible, and moved the date out there to the right. [19:57] oh, added more vertical separation between the sections [19:58] vertical separation == awesome [19:58] unbolded "Release notes:" [19:58] the label/value there is unclear [19:58] for RN? [19:58] yes [19:58] you mean you want the bold back? [19:59] what do you think about the twisty hanging out to the side of changlog? [19:59] well, it seems to be the standard everywhere else, so yes for the bold [19:59] ok, RN and CL [20:00] so, I like the idea [20:00] it used to say "There are no release notes" but i just got rid of the section if they aren't there [20:00] that's great [20:00] cool [20:00] the changelog, we don't show any of it, right? [20:00] not unless they twist [20:00] then it slithers in [20:01] and you're ok with the release date hanging out to the side of the h2? [20:01] ok, so it's not really "the full changelog" as much as the "the changelog" [20:02] I like what you did there in the h2, yes. I'd like to see it in staging with real data, but it's nice [20:02] beuno: oh, right. i c-n-p that part. didn't notice the text [20:02] beuno: great. i'll ask poolie later if this meets his concerns === bac` is now known as bac [20:03] bac`, I'd just say "> Changelog" [20:03] ok [20:04] I don't know about the date on the right though [20:04] seems too disconnected [20:04] and [20:04] infally [20:04] the "add download for release" is odd [20:04] why not just below each release? [20:05] ok a '(+) Add download file' to the right below the table [20:05] yes, right-aligned [20:05] and you win [20:06] great! thanks for the suggestions === danilos is now known as danilo-afk [20:12] beuno: what would you think about putting each release into a portlet to give them more separation from one another? [20:13] bac, it sounds good. Can you mock it up cheaply so we can look at it? [20:13] done. let me snap it and scp [20:14] http://people.canonical.com/~bac/download2.png [20:14] * beuno waits [20:15] this does not have the first one marked as 'top-portlet' as that will require some reorganization of the template === sinzui changed the topic of #launchpad-reviews to: on call: Edwin || reviewing: - || queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com/ [20:18] EdwinGrubbs: do you have time to review https://code.launchpad.net/~sinzui/launchpad/package-link-validation-2/+merge/13727 [20:18] sinzui: sure [20:37] sinzui: I don't understand what it means that "the distroseries should also be linked". Is that a link on the page, or should the distroseries be linked with the productseries in the db? [20:54] sinzui: I get an error when I try to link "mozilla-firefox" on this page https://launchpad.dev/firefox/trunk/+ubuntupkg [20:55] sinzui: Even if the error is correct, the message should be on the field instead of having two errors above the form. [21:03] ha [21:03] EdwinGrubbs: I bet the example is bad sample data [21:04] EdwinGrubbs: on edge +ubuntupkg has a table listing the distroseries and sourcepackage, but they are not linked. You need to hack the URL to see the object that the series is linked too [21:06] EdwinGrubbs: https://launchpad.dev/firefox/+packages [21:06] ^ See, that is why this view is broken, you just tried to create a duplicate link. Another series (0.9) is already the source pacakge [21:08] EdwinGrubbs: did you notice that the error message had a link to the package: https://launchpad.dev/ubuntu/hoary/+source/mozilla-firefox [21:08] ^ That shows that 1.0 is in fact the upstream for mozilla-firefox [21:10] EdwinGrubbs: So for trunk cannot be the upstream for warty or hoary because those SPs are already linked. You can make grumpy Frozen there by making it the currentseries, then you can try to link trunk to mozilla-firefox [21:17] sinzui: It still seems like PackagingAddView.validate() should use setFieldError() instead addError(), or the separate "There is 1 error" message shouldn't appear. [21:18] EdwinGrubbs: I think you are right [21:20] EdwinGrubbs: my last addition to the base class does use setFieldError. The original code did not. I can quickly fix the whole class [21:21] EdwinGrubbs: oh I see [21:21] EdwinGrubbs: This is a bit tricky [21:22] EdwinGrubbs: In the base class we do not know if there error is the series or the sourcepackage. In the new class, we know for certain that the error is sourcepackage. [21:23] EdwinGrubbs: I could verify if the default_distroseries is not None and choose setFieldError() [21:25] ok [21:27] sinzui: It also seems strange to me to call packaging_util.packagingEntryExists(), when a single call to Packaging.selectOneBy() would allow you to make both checks, and it would allow you to say which productseries is already linked to the source package. [21:27] It is not [21:27] There are two issues and one is easier to fix than the oser [21:27] other [21:28] sinzui: can there be multiple packaging entries for the same sourcepackagename and distroseries? [21:29] The specific match probably means the *you* made a mistakes and you can fix it. The other error is someone else and you may want to investigate before making the chage [21:29] No, but there are 81 in production [21:30] Users trying to fix the data from the dsp, sp, p, or ps views are getting oopes as they struggle to fix the data [21:31] EdwinGrubbs: a hack was put in place two years ago where we recognised this happens, but we only show the last one. this compounded the error because you cannot see the shadowed link to know it exists. the user is trying to add the link when he should be deleting the one he is seeing [21:31] Except we never wrote code to delete a link to an SP [21:32] There are a lot of oops that revolve around the the root cause that we let multiple links be created [21:33] EdwinGrubbs: when this branch lands, it will not be possible to create a duplicate link, We can then fix the schema to not allow it to happen. My next branch is to allow the deletion on links to SPs [21:34] sinzui: is there a bug open to add a unique constraint on (distroseries, sourcepackagename) on the packaging table? [21:34] Yes, it is on our list of bugs in progress that we review every morning [21:35] https://bugs.edge.launchpad.net/bugs/196774 [21:35] Bug #196774: It shouldn't be possible to link multiple productseries to a sourcepackage in a given distroseries [21:35] doh [21:35] sinzui: ok, that answers my questions. I'll send off the review in a sec. There are just minor style issues. [21:36] okay. === EdwinGrubbs is now known as Edwin-food === salgado-sprint is now known as salgado-afk [22:16] alright! [22:16] Edwin-food: add https://code.edge.launchpad.net/~sidnei/lazr-js/yui-3.0.0/+merge/13737 to your queue when you get back [22:18] uhm. i don't know how to get a proper diff i fear. === matsubara is now known as matsubara-afk === Edwin-food is now known as EdwinGrubbs [23:01] EdwinGrubbs: ok, ignore that mp, take this one: https://code.edge.launchpad.net/~sidnei/lazr-js/yui-3.0.0-redux/+merge/13743 [23:02] sidnei: what happened? [23:02] EdwinGrubbs: the order i merged the two base branches made it hard to generate a meaningful diff [23:02] EdwinGrubbs: this one has a link to a paste with the right diff. === EdwinGrubbs changed the topic of #launchpad-reviews to: on call: Edwin || reviewing: sidnei || queue: [] || This channel is logged: http://irclogs.ubuntu.com/ [23:12] sidnei: how did you create the diff? I would like one that ignores whitespace changes, so I can focus on what really changed. [23:13] EdwinGrubbs: bzr diff -rancestor:../jstestdriver-support [23:13] EdwinGrubbs: and then prune the 10k lines of the new YUI :) [23:14] and the yui-patch.js file, which is copied verbatim from upstream jstestdriver [23:14] i guess i need --diff-options [23:22] ugh [23:25] yeah, ugh :( [23:34] sidnei: don't worry about getting a new diff, I see why diff was showing me more lines than I thought it should. You moved some javascript from the top of the file to the bottom. I'll handle that change. [23:34] ok, thanks! [23:39] EdwinGrubbs: i need to go to a funeral, but will be back in a bit. have fun! [23:39] sidnei: I'm sorry to hear that. [23:40] EdwinGrubbs: yeah. not a close person, but it sucks anyway. im happy as long as isn't mine *wink*