/srv/irclogs.ubuntu.com/2012/09/17/#launchpad-dev.txt

StevenKwgrant: Does @export_read_operation\n@operation_for_version('1.0') actually make sense? Since it seems it isn't exported for any of the versions04:20
wgrantStevenK: The order matters. But I forget which way it should be04:28
wgrantWhy wouldn't it make sense?04:28
* StevenK has switched to exported(), rather than the above on the interface04:30
StevenKWhich seems to export it for 1.0 and beta, even though I say as_of='1.0'04:31
StevenKOh, hah. It's exported for 1.0 and devel, but not beta.04:34
StevenKwgrant: I'm not sure how to tell lazr.restful to keep its grubby mits off devel. Do you think I should bother?04:42
wgrantStevenK: What are you doing?04:50
wgrantsecurity_contact?04:50
StevenKwgrant: Yeah04:51
wgrantStevenK: Why's that an operation? Isn't it an attribute?04:53
StevenKwgrant: I've now made it an attribute04:55
StevenKwgrant: But using exported(TextLine(...), as_of='1.0') has it exported for both 1.0 and devel.04:56
wgrantStevenK: Right, that's as_of04:57
StevenKwgrant: Oh, is there a different argument I should be using?04:57
wgrantie. from04:57
wgrantTry exported(TextLine(...), ('beta', None), ('1.0', None))04:58
wgrantI think that will do what you want04:58
wgrant(None means to use the default name; you can use a string instead to override it)04:58
StevenKYou think beta and 1.0? Rather than just 1.0?04:58
StevenKwgrant: It doesn't love ('1.0', None) or (('1.0', None),)  :-(05:03
StevenKHuh, it seems it wants None to be a dict instead05:06
StevenKAnd using ('1.0', {}) has it exported for devel, beta and 1.0.05:08
=== 50UABNR34 is now known as wallyworld
wgrant    :param versioned_annotations: A list of (version, param) 2-tuples,05:08
wgrant        with more recent web service versions earlier in the list and older05:08
=== wallyworld is now known as Guest48627
wgrant        versions later in the list. The 'param' objects can either be a05:08
wgrant        string name for the field in the given version (None means to05:08
wgrant        use the field's internal name), or a dictionary.05:08
wgrantSo I had them the wrong way around, maybe.05:08
wgrantI guess it's possible that just renames, rather than unexporting05:09
wgrantMight have to check the source05:09
StevenK[('1.0', None)] gives ValueError: need more than 1 value to unpack on the line for version, annotations in reversed(versioned_annotations):05:10
wgrantStevenK: It's *versioned_annotations05:11
StevenKAh, so ('1.0', None) gives TypeError: 'NoneType' object is not iterable05:12
StevenK('1.005:21
StevenKBleh05:21
StevenK('1.0', [None]) == ValueError: Unrecognized annotation for version "1.0": "None"05:21
StevenKwgrant: Why does bugtasksearch raise ValueError everywhere? :-(06:42
StevenKSurely this isn't good for the API06:42
wgrantI didn't write it, just moved it. But ValueError probably maps to 400 Bad Request anyway06:44
StevenK    self.assertEqual(400, response.status)06:44
StevenKMismatchError: 400 != 50006:44
wgrant:(06:45
StevenKBugSearchError or something?06:45
StevenKwgrant, wallyworld_: https://code.launchpad.net/~stevenk/launchpad/proper-error-when-searchtasks-orderby/+merge/12460907:35
wgrantStevenK: s/BugSearchError/InvalidSearchParameters/, perhaps?07:39
wgrantBugSearchError is possibly the worst exception name ever07:39
StevenKFair point07:40
StevenKwgrant: http://pastebin.ubuntu.com/1210554/07:46
wgrantStevenK: Sounds sensible.07:49
adeuringgood morning07:50
StevenKwgrant: Diff updated07:54
StevenKwgrant: No +1 for me?07:57
wgrantStevenK: You can't put that new test in an existing class?08:00
StevenKwgrant: test_searchtasks_webservice.py is horrible08:01
wgrantAs it adding a new test class that is three times as long as the test :)08:02
StevenKLike any good test class08:02
StevenKwgrant: http://pastebin.ubuntu.com/1210571/08:07
=== almaisan-away is now known as al-maisan
StevenKrick_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:37
stubIs there a standard unix command that works like cat but can be set to accept input at a low baud rate?08:54
maxbpv --rate-limit ?08:56
stubI'll check it out, not installed by default08:56
StevenKstub: pv - Shell pipeline element to meter data passing through08:58
rick_h__StevenK: yea, open to location suggestions. I had it in app/utilities, jcsackett suggested either registry/utilities or left in enums.10:19
rick_h__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:20
StevenKrick_h__: If it's a function, it's not an enum and doesn't belong there.10:34
rick_h__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:37
StevenKrick_h__: utils.py, services, librarian, and archive{publisher,uploader} use that already10:39
=== 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: ∞
rick_h__benji: a small branch for your look when you get a sec please https://code.launchpad.net/~rharding/launchpad/move_into_utils/+merge/12467813:59
benjirick_h__: sure13:59
deryckrick_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:12
rick_h__deryck: ty14:13
sinzuirick_h_, I removed the registry mailman doc tests, all 4000 lines. I will not break the build because of them again14:18
rick_h__sinzui: hah, <3 hearing of dying doctests14:20
jcsackettsinzui: 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
sinzuiI did14:27
jcsackettsinzui: ok, thanks.14:27
sinzuiqastaging's db needs updating to qa work14:28
=== matsubara-afk is now known as matsubara
sinzuideryck, I just confirmed your bugtraker fix is good15:33
derycksinzui, my bugtracker?15:34
sinzuisorry deryck, I meant to type jcsackett, I just confirmed your bugtraker fix is good15:34
deryckack, np15:34
jcsackettsinzui: dig, thanks.15:35
=== Ursinha` is now known as Ursinha
=== Ursinha is now known as Ursula
=== Ursula is now known as Guest90196
=== Guest90196 is now known as Ursinha
sinzuijcsackett, do you have time to hangout to discuss criticals16:16
jcsackettsinzui: i do.16:16
deryckrick_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:19
rick_h__deryck: ok, thakns for the heads up16:23
jcsackettsinzui: bug 629258 was where i saw it.16:29
_mup_Bug #629258: Battery life estimation never comes around <apport-bug> <apport-collected> <i386> <maverick> <metabug> <natty> <patch> <DeviceKit-Power:Fix Released> <gnome-power:Invalid> <One Hundred Paper Cuts:Invalid> <System76:Fix Released> <Release Notes for Ubuntu:Fix Released> <Upower:Fix Released> <upower (Ubuntu):Fix Released> <upower (Ubuntu Maverick):Won't Fix> < https://launchpad.net/bugs/629258 >16:29
sinzuijcsackett, https://bugs.launchpad.net/launchpad/+bug/39392216:39
_mup_Bug #393922: Links to +edit and +appoint on a translation group are always visible <403> <lp-translations> <Launchpad itself:Triaged> < https://launchpad.net/bugs/393922 >16:39
deryckyay, we're ready for deploy once the deployment report updates.16:43
* rick_h__ ducks16:43
cjohnstonsinzui: ping17:40
sinzuihi cjohnston17:41
cjohnstonsinzui: 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:41
sinzuiUndo the launchpad.Admin changes because they have no-effect17:42
cjohnstonok17:42
sinzuiThe methods deal with editing, so launchpad.Edit is correct.17:42
sinzuiyour text revision is fine17:42
cjohnstonsinzui: 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 spam17:43
sinzuicjohnston, per lifeless's comment, do we really needed essential if the summit site does not use it17:43
sinzuijcsackett, well to do that, you would need to rewrite the python method in security.py17:44
cjohnstonwas that for me?17:45
sinzuicjohnston, yes, sorry17:46
sinzuicjohnston, who should be permitted to state attendance is essential?17:47
cjohnstonSo make it to where the drafter, approver, assignee and ~uds-organizers (or whatever team it is that is the meeting driver)17:47
sinzuicjohnston, so Ubuntu's drivers cannot set this?17:47
cjohnstonI'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 driver17:49
sinzuicjohnston, and what of the series release manager?17:49
cjohnstonI'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 coded17:49
sinzuiI think you just want to remove the rule that lets the subscribe claim to be essential17:50
sinzui    user.inTeam(self.obj.person) or17:50
sinzuiThe method other says the project drivers, the series drivers and the spec roles can say who is essential17:51
cjohnstonok, so essentially everyone that we already talked about17:52
sinzuiyes. I think the problem is that non-core developers were presuming they could be essential.17:53
sinzuiI think this change also works for all other projects.17:53
cjohnstonok17:55
sinzuicjohnston, test will fail with this change because very few use a driver or assignee to subscribe17:55
cjohnstonso then tests need to be changed too is what your saying?17:57
sinzuicjohnston, I think you need to login as a different user to fix these tests:17:58
sinzui  lib/lp/blueprints/doc/sprint-meeting-export.txt17:58
sinzui  lib/lp/blueprints/stories/standalone/subscribing.txt17:58
cjohnstonI don't understand 'login as a different user'17:58
sinzuicjohnston, the tests are not logged in as a driver or as a user in the specification's role when  setting essential,18:01
sinzuiper what we said above, the subscriber cannot set himself to be essential, so those tests will fail.18:02
sinzuiEither the test logs in as a different user, or the user used in the test must be made a driver or maybe the specification assignee18:02
cjohnstonI 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:04
cjohnstonok.. i see line 41 in the subscribing.txt18:05
sinzuicjohnston, you don't need a permission change then18:06
sinzuiyou just want to change the text18:06
sinzuithe current tests say any user can mark themselves as essential18:06
cjohnstonright.. 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 essential18:07
sinzuithen remove the line I suggested from EditSpecificationSubscription, then change the tests to show that a only a special person can set the flag18:09
cjohnstonI did.. I just have to figure out how to rewrite the tests :-(18:10
sinzuiokay18:10
sinzuicjohnston, Sample Person (~name12) is the maintainer of firefox so is an effective driver change18:12
sinzui>>> browser.addHeader('Authorization', 'Basic carlos@canonical.com:test')18:12
sinzui>>> browser.addHeader('Authorization', 'Basic test@canonical.com:test')18:12
sinzuiin subscribing.txt18:13
cjohnstonline 28?18:14
sinzuiyes18:14
cjohnstonok18:14
sinzuicjohnston, I see lots of failures18:17
sinzuimy suggestions are not enough18:17
sinzuicjohnston, 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:27
sinzuicjohnston, I think my change and your change combined is good enough to land18:28
cjohnstonok.. cool.. thanks.. I'll apply it and push it up.18:28
sinzuiI will approve the Mp when you ping me cjohnston18:30
sinzuiI will land it too18:30
cjohnstonthanks18:30
cjohnstonsinzui: is that leaving the line 28 authorization as carlos?18:41
sinzuicjohnston, yes18:44
cjohnstonok18:45
cjohnstonsinzui: https://code.launchpad.net/~chrisjohnston/launchpad/part-essential/+merge/12455918:50
sinzuicjohnston, change the permission back to launchpad.Edit because the community is still eidting18:51
sinzuiadmin if for celebrity teams only18:51
cjohnstonsinzui: done18:59
cjohnstonthanks sinzui.. when do you think it may land?19:05
sinzui4 hours + 12 to clear buildbot We might release it tomorrow19:06
sinzuicjohnston, is there a bug for this branch?19:06
cjohnstonsinzui: no, would you like one?19:06
sinzuiThe has to be one...Lp will not accept the landing command19:06
cjohnstonok19:06
cjohnstonsinzui: bug #105213019:09
_mup_Bug #1052130: Make assigning participation essential limited to certain groups of users <lp-blueprints> <Launchpad itself:In Progress by chrisjohnston> < https://launchpad.net/bugs/1052130 >19:09
sinzuilanding has started19:11
cjohnstonthanks19:11
cjohnstonsinzui: I have no idea what the failure email means, outside of that it failed19:30
sinzuicjohnston, I don't think your branch is related to this.19:32
cjohnstonok19:33
lifelessflacoste: morning20:06
flacostemorning lifeless20:06
flacostelifeless: not too early for a catch-up?20:06
lifelessflacoste: 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
lifelessSo, digging into that, no chance of going back to sleep.20:07
flacostelifeless: ok, we can catch up later in the week anyway20:09
lifelessflacoste: let me get this ns snafu un snafu'd20:11
lifelessso e.g. I can get Janes reply to mail from me :)20:11
lifelessand then I'm happy to catch up20:11
lifelessok, mail flowing again.20:27
lifelessGrah, hates such things.20:27
lifelessflacoste: hi20:28
flacostehi lifeless20:30
lifelesscan you hear me20:30
=== benji changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: - | Firefighting: - | Critical bugs: ∞
cjohnstonsinzui: ping23:41
sinzuihi cjohnston23:41
cjohnstonI think I may have figured out why it's failing23:41
cjohnstonThere seems to be one ( on line 655 of security.py, one ) on 656, and one ) on 657..23:42
cjohnstonI'm not seeing a second open (23:42
sinzuirun make lint23:42
sinzuiit will report such errors.23:43
cjohnstonlint is giving me an error about pocketlint not found.. hmm23:44
sinzuicjohnston, push up a fix and if it makes sense I will land it23:44
sinzuisudo apt-get install python-pocket-lint23:45
sinzuiIt checks python, css html and javascript23:45
cjohnstoninstalling ty23:46
cjohnstonlook at that, it passes now :-)23:47
cjohnstonsinzui: https://code.launchpad.net/~chrisjohnston/launchpad/part-essential/+merge/12455923:49
sinzuifabulouso splendido.23:51
sinzuioff it goes23:51
cjohnston:-)23:51

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