[04:20] wgrant: Does @export_read_operation\n@operation_for_version('1.0') actually make sense? Since it seems it isn't exported for any of the versions [04:28] StevenK: The order matters. But I forget which way it should be [04:28] Why wouldn't it make sense? [04:30] * StevenK has switched to exported(), rather than the above on the interface [04:31] Which seems to export it for 1.0 and beta, even though I say as_of='1.0' [04:34] Oh, hah. It's exported for 1.0 and devel, but not beta. [04:42] wgrant: I'm not sure how to tell lazr.restful to keep its grubby mits off devel. Do you think I should bother? [04:50] StevenK: What are you doing? [04:50] security_contact? [04:51] wgrant: Yeah [04:53] StevenK: Why's that an operation? Isn't it an attribute? [04:55] wgrant: I've now made it an attribute [04:56] wgrant: But using exported(TextLine(...), as_of='1.0') has it exported for both 1.0 and devel. [04:57] StevenK: Right, that's as_of [04:57] wgrant: Oh, is there a different argument I should be using? [04:57] ie. from [04:58] Try exported(TextLine(...), ('beta', None), ('1.0', None)) [04:58] I think that will do what you want [04:58] (None means to use the default name; you can use a string instead to override it) [04:58] You think beta and 1.0? Rather than just 1.0? [05:03] wgrant: It doesn't love ('1.0', None) or (('1.0', None),) :-( [05:06] Huh, it seems it wants None to be a dict instead [05:08] And using ('1.0', {}) has it exported for devel, beta and 1.0. === 50UABNR34 is now known as wallyworld [05:08] :param versioned_annotations: A list of (version, param) 2-tuples, [05:08] with more recent web service versions earlier in the list and older === wallyworld is now known as Guest48627 [05:08] versions later in the list. The 'param' objects can either be a [05:08] string name for the field in the given version (None means to [05:08] use the field's internal name), or a dictionary. [05:08] So I had them the wrong way around, maybe. [05:09] I guess it's possible that just renames, rather than unexporting [05:09] Might have to check the source [05:10] [('1.0', None)] gives ValueError: need more than 1 value to unpack on the line for version, annotations in reversed(versioned_annotations): [05:11] StevenK: It's *versioned_annotations [05:12] Ah, so ('1.0', None) gives TypeError: 'NoneType' object is not iterable [05:21] ('1.0 [05:21] Bleh [05:21] ('1.0', [None]) == ValueError: Unrecognized annotation for version "1.0": "None" [06:42] wgrant: Why does bugtasksearch raise ValueError everywhere? :-( [06:42] Surely this isn't good for the API [06:44] I didn't write it, just moved it. But ValueError probably maps to 400 Bad Request anyway [06:44] self.assertEqual(400, response.status) [06:44] MismatchError: 400 != 500 [06:45] :( [06:45] BugSearchError or something? [07:35] wgrant, wallyworld_: https://code.launchpad.net/~stevenk/launchpad/proper-error-when-searchtasks-orderby/+merge/124609 [07:39] StevenK: s/BugSearchError/InvalidSearchParameters/, perhaps? [07:39] BugSearchError is possibly the worst exception name ever [07:40] Fair point [07:46] wgrant: http://pastebin.ubuntu.com/1210554/ [07:49] StevenK: Sounds sensible. [07:50] good morning [07:54] wgrant: Diff updated [07:57] wgrant: No +1 for me? [08:00] StevenK: You can't put that new test in an existing class? [08:01] wgrant: test_searchtasks_webservice.py is horrible [08:02] As it adding a new test class that is three times as long as the test :) [08:02] Like any good test class [08:07] wgrant: http://pastebin.ubuntu.com/1210571/ === almaisan-away is now known as al-maisan [08:37] rick_h__: I don't like the idea of json_dump_information_types in registry/enums. But if it has to stay, you could uppercase it. You should also use 'in PRIVATE_INFORMATION_TYPES' rather than 'not in PUBLIC_INFORMATION_TYPES' [08:54] Is there a standard unix command that works like cat but can be set to accept input at a low baud rate? [08:56] pv --rate-limit ? [08:56] I'll check it out, not installed by default [08:58] stub: pv - Shell pipeline element to meter data passing through [10:19] StevenK: yea, open to location suggestions. I had it in app/utilities, jcsackett suggested either registry/utilities or left in enums. [10:20] StevenK: and the whole method should be upper like a constant? not following that. Is there another method I can see as an example? [10:34] rick_h__: If it's a function, it's not an enum and doesn't belong there. [10:37] StevenK: right, it's a function. I'll look at going with jcsackett's other suggestion and add a utilities.py in registry to stick it in then. [10:39] rick_h__: utils.py, services, librarian, and archive{publisher,uploader} use that already === al-maisan is now known as almaisan-away === benji changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: benji- | Firefighting: - | Critical bugs: ∞ === benji changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: benji | Firefighting: - | Critical bugs: ∞ [13:59] benji: a small branch for your look when you get a sec please https://code.launchpad.net/~rharding/launchpad/move_into_utils/+merge/124678 [13:59] rick_h__: sure [14:12] rick_h__, I'm looking at the test timeout now. Will let you know if I turn up something. Or if I turn up nothing. [14:13] deryck: ty [14:18] rick_h_, I removed the registry mailman doc tests, all 4000 lines. I will not break the build because of them again [14:20] sinzui: hah, <3 hearing of dying doctests [14:27] sinzui: did you send out my bugtracker branch to land? i see it's been set to merged, but i don't have any info about it and i didn't send it out. [14:27] I did [14:27] sinzui: ok, thanks. [14:28] qastaging's db needs updating to qa work === matsubara-afk is now known as matsubara [15:33] deryck, I just confirmed your bugtraker fix is good [15:34] sinzui, my bugtracker? [15:34] sorry deryck, I meant to type jcsackett, I just confirmed your bugtraker fix is good [15:34] ack, np [15:35] sinzui: dig, thanks. === Ursinha` is now known as Ursinha === Ursinha is now known as Ursula === Ursula is now known as Guest90196 === Guest90196 is now known as Ursinha [16:16] jcsackett, do you have time to hangout to discuss criticals [16:16] sinzui: i do. [16:19] rick_h__, trying one more thing to see here, but if that bears no fruit, as the other things I've tried haven't, I at least have some suggestions. [16:23] deryck: ok, thakns for the heads up [16:29] sinzui: bug 629258 was where i saw it. [16:29] <_mup_> Bug #629258: Battery life estimation never comes around < https://launchpad.net/bugs/629258 > [16:39] jcsackett, https://bugs.launchpad.net/launchpad/+bug/393922 [16:39] <_mup_> Bug #393922: Links to +edit and +appoint on a translation group are always visible <403> < https://launchpad.net/bugs/393922 > [16:43] yay, we're ready for deploy once the deployment report updates. [16:43] * rick_h__ ducks [17:40] sinzui: ping [17:41] hi cjohnston [17:41] sinzui: I'm not quite sure what it is that sets the subscriber in my branch.. I see what the comment says, but I don't know what to remove. [17:42] Undo the launchpad.Admin changes because they have no-effect [17:42] ok [17:42] The methods deal with editing, so launchpad.Edit is correct. [17:42] your text revision is fine [17:43] sinzui: lifeless made the suggestion to make it to where only certain people could mark people essential, that way it still does the same thing with Summit that it used to do, just without the spam [17:43] cjohnston, per lifeless's comment, do we really needed essential if the summit site does not use it [17:44] jcsackett, well to do that, you would need to rewrite the python method in security.py [17:45] was that for me? [17:46] cjohnston, yes, sorry [17:47] cjohnston, who should be permitted to state attendance is essential? [17:47] So make it to where the drafter, approver, assignee and ~uds-organizers (or whatever team it is that is the meeting driver) [17:47] cjohnston, so Ubuntu's drivers cannot set this? [17:49] I'm not against that, but I don't have a way to define that ubuntu-drivers can for UDS, and ~team-y can for Conference Y without using the team that is the meeting driver [17:49] cjohnston, and what of the series release manager? [17:49] I'm fine with that as well, it just has to be able to scale across other groups that use summit... as in it can't be hard coded [17:50] I think you just want to remove the rule that lets the subscribe claim to be essential [17:50] user.inTeam(self.obj.person) or [17:51] The method other says the project drivers, the series drivers and the spec roles can say who is essential [17:52] ok, so essentially everyone that we already talked about [17:53] yes. I think the problem is that non-core developers were presuming they could be essential. [17:53] I think this change also works for all other projects. [17:55] ok [17:55] cjohnston, test will fail with this change because very few use a driver or assignee to subscribe [17:57] so then tests need to be changed too is what your saying? [17:58] cjohnston, I think you need to login as a different user to fix these tests: [17:58] lib/lp/blueprints/doc/sprint-meeting-export.txt [17:58] lib/lp/blueprints/stories/standalone/subscribing.txt [17:58] I don't understand 'login as a different user' [18:01] cjohnston, the tests are not logged in as a driver or as a user in the specification's role when setting essential, [18:02] per what we said above, the subscriber cannot set himself to be essential, so those tests will fail. [18:02] Either the test logs in as a different user, or the user used in the test must be made a driver or maybe the specification assignee [18:04] I may be misunderstanding, but any user should be able to be set as essential, only some users can set people as essential... so I don't see why the user must be made a driver/assignee... atleast in sprint-meeting-export.txt it doesn't seem to be testing marking essential, only exporting it. [18:05] ok.. i see line 41 in the subscribing.txt [18:06] cjohnston, you don't need a permission change then [18:06] you just want to change the text [18:06] the current tests say any user can mark themselves as essential [18:07] right.. I see that now.. I don't want any user to be able to mark themselves essential.. i want certain users to be able to mark anyone essential [18:09] then remove the line I suggested from EditSpecificationSubscription, then change the tests to show that a only a special person can set the flag [18:10] I did.. I just have to figure out how to rewrite the tests :-( [18:10] okay [18:12] cjohnston, Sample Person (~name12) is the maintainer of firefox so is an effective driver change [18:12] >>> browser.addHeader('Authorization', 'Basic carlos@canonical.com:test') [18:12] >>> browser.addHeader('Authorization', 'Basic test@canonical.com:test') [18:13] in subscribing.txt [18:14] line 28? [18:14] yes [18:14] ok [18:17] cjohnston, I see lots of failures [18:17] my suggestions are not enough [18:27] cjohnston, This diff shows the changes you can make to make the test pass. Carlos is subscribed, but non-essential. there is a essential is tested later in this same test using the right user: http://pastebin.ubuntu.com/1211548/ [18:28] cjohnston, I think my change and your change combined is good enough to land [18:28] ok.. cool.. thanks.. I'll apply it and push it up. [18:30] I will approve the Mp when you ping me cjohnston [18:30] I will land it too [18:30] thanks [18:41] sinzui: is that leaving the line 28 authorization as carlos? [18:44] cjohnston, yes [18:45] ok [18:50] sinzui: https://code.launchpad.net/~chrisjohnston/launchpad/part-essential/+merge/124559 [18:51] cjohnston, change the permission back to launchpad.Edit because the community is still eidting [18:51] admin if for celebrity teams only [18:59] sinzui: done [19:05] thanks sinzui.. when do you think it may land? [19:06] 4 hours + 12 to clear buildbot We might release it tomorrow [19:06] cjohnston, is there a bug for this branch? [19:06] sinzui: no, would you like one? [19:06] The has to be one...Lp will not accept the landing command [19:06] ok [19:09] sinzui: bug #1052130 [19:09] <_mup_> Bug #1052130: Make assigning participation essential limited to certain groups of users < https://launchpad.net/bugs/1052130 > [19:11] landing has started [19:11] thanks [19:30] sinzui: I have no idea what the failure email means, outside of that it failed [19:32] cjohnston, I don't think your branch is related to this. [19:33] ok [20:06] flacoste: morning [20:06] morning lifeless [20:06] lifeless: not too early for a catch-up? [20:07] flacoste: woke anyway, and then realised DNS for my domains is cactus and no mail for the last 10 hours anyway... not a good look. [20:07] So, digging into that, no chance of going back to sleep. [20:09] lifeless: ok, we can catch up later in the week anyway [20:11] flacoste: let me get this ns snafu un snafu'd [20:11] so e.g. I can get Janes reply to mail from me :) [20:11] and then I'm happy to catch up [20:27] ok, mail flowing again. [20:27] Grah, hates such things. [20:28] flacoste: hi [20:30] hi lifeless [20:30] can you hear me === benji changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: - | Firefighting: - | Critical bugs: ∞ [23:41] sinzui: ping [23:41] hi cjohnston [23:41] I think I may have figured out why it's failing [23:42] There seems to be one ( on line 655 of security.py, one ) on 656, and one ) on 657.. [23:42] I'm not seeing a second open ( [23:42] run make lint [23:43] it will report such errors. [23:44] lint is giving me an error about pocketlint not found.. hmm [23:44] cjohnston, push up a fix and if it makes sense I will land it [23:45] sudo apt-get install python-pocket-lint [23:45] It checks python, css html and javascript [23:46] installing ty [23:47] look at that, it passes now :-) [23:49] sinzui: https://code.launchpad.net/~chrisjohnston/launchpad/part-essential/+merge/124559 [23:51] fabulouso splendido. [23:51] off it goes [23:51] :-)