/srv/irclogs.ubuntu.com/2013/02/15/#launchpad-dev.txt

=== _mup__ is now known as _mup_
StevenKwgrant: http://pastebin.ubuntu.com/1654509/00:36
wgrantStevenK: Mmm00:43
wgrantStevenK: That's a bit of a regression00:43
wgrantI wonder if LimitedView might be better reserved for the "you can only see this archive because a build was copied out of it into a public archive" case00:44
wgrantWhich might mean that an intermediate permission is required00:44
StevenKwgrant: Well, we can override getBuildRecords on IArchive to return [] if the requestor is a subscriber and it's a private archive00:45
wgrantStevenK: Ew00:45
wgrantA proper solution would not involve hacks like that, and would remove the +packages hack that is in place today00:46
StevenKYes, which I did, and you say it's a regression00:46
wgrantStevenK: The regression is that +index no longer works00:47
StevenKI didn't know the baselayot template will only show the not shared with you string if you hold LimitedView00:48
wgrantSure00:49
wgrantIt's still a regression00:49
wgrantNot realising that something was going to break does not make it not broken :)00:49
StevenKSure. But what can I do instead?00:49
wgrantUse a non-LimitedView permission, I guess00:49
StevenKlaunchpad.NotQuiteView doesn't help either00:49
StevenKDo we have a list of them?00:50
wgrantStevenK: lib/lp/permissions.zcml00:54
StevenKHmmmm00:55
StevenKNone of them are a good fit00:55
=== wallyworld___ is now known as wallyworld
=== wallyworld is now known as Guest86404
StevenKwgrant: Hmmmm, where is view/macro:is-page-contentless defined? My quick grep didn't turn up much03:01
StevenKBah03:02
StevenKIt's in app/browser/tales03:03
StevenKAnd it's as I feared, it checks for !View03:03
wgrantLuckily it is code03:03
wgrantYou could alternatively reassign View, I guess03:04
StevenKwgrant: I've added launchpad.SubscriberView, does that make me terrible?03:04
mwhudsoni think it would have upset stevea about 5 years ago03:04
StevenKHaha03:04
StevenKThe comments in lib/lp/permissions.zcml make some interesting reading03:05
StevenKmwhudson: Never mind that, most of the launchpad team managed to annoy stevea in Budapest03:05
StevenKwgrant: Reassign View?03:08
wgrantStevenK: You could make +packages etc. require more than View, potentially03:08
StevenKIndeed03:08
StevenK+packages requires View in the ZCML, but the view wants Append03:09
StevenK+delete requires Edit03:09
StevenKSo it's a mess03:09
wgrantHmm?03:09
wgrantAppend is for uploading/copying packages in03:10
wgrant+packages does not need Append03:10
StevenK-            # To see the +packages page, you must be an uploader, or a03:10
StevenK-            # commercial admin.03:10
StevenK-            if not check_permission('launchpad.Append', self.context):03:10
wgrantOh, you mean for a private archive03:10
StevenKYes03:10
wgrantAnyway, Append is clearly wrong here03:11
wgrantBecause you can't protect the view with it03:11
StevenKIt is already is if it's private03:11
wgrantNo03:11
wgrantThere's a hack that you are to entirely disregard03:11
wgrantThe view is not protected03:11
StevenKRight, +edit and +delete require .Edit, and +builds and +packages require View03:13
StevenKAnd +subscriptions requires Append03:14
wgrantRight03:15
wgrantThe key is that subscribers need to be able to see +index but not +packages03:16
StevenKYes03:16
wgrantSo you need multiple view permissions03:16
wgrantAnd LimitedView probably doesn't fit03:16
wgrant=> you probably need another viewish permission03:16
wgrantNot Append or Edit03:16
StevenKSo I've created SubscriberView03:16
wgrantRight, but you need to consider how that will interact with things that like View03:17
StevenKBut that trips straight over the is-page-contentless, because that fires if you don't hold View03:17
wgrantI think lazr.restful checks for LimitedView now instead, so it's probably fine03:17
wgrantBut stuff like is-page-contentless will not be03:17
lifeless OOPS-cb18303a07bb367312fd6366522207cc03:50
wgrantHmm?03:50
wgrantWhat exactly did you expect? :)03:51
lifelessnot a timeout ;)03:51
wgrantIt's an unbatched page that probably isn't linked from anywhere03:51
wgrantOh, it is batched03:51
wgrantBut not very well03:51
StevenKThe BTF UNION BTF UNION BTF query is horrible03:52
wgrantStill, AFAIK it's unlinked and unreleased and well known to be horrible03:52
wgrantYou got what you ordered :)03:52
lifelessso delete it03:56
StevenKPerson:+subscriptions 19 13.2504:01
wgrantI'm not sure it's necessarily worth deleting at this point04:09
lifelesswhats the current top freq timeout ?04:13
wgrant      455 /    0  POFile:+translate04:14
wgrantMost of the time04:14
lifelessthats not so bad04:14
wgrantSometimes someone runs a dreadful bot that calls getMergeProposals on project groups, which can exceed that04:14
lifelesswell done04:14
=== cyclicflux is now known as Guest70333
=== Guest70333 is now known as CyclicFlux
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== yofel_ is now known as yofel
=== almaisan-away is now known as al-maisan
=== wedgwood_away is now known as wedgwood
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
=== dpm_ is now known as dpm
=== wedgwood is now known as wedgwood_away
=== wedgwood_away is now known as wedgwood
=== al-maisan is now known as almaisan-away

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