add team: feature scope selector
Bug #666538 reported by
Martin Pool
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Robert Collins |
Bug Description
It would be useful to have a "team:" feature scope that matches against teams the request user belongs to.
Ideally this would do only one database query and it should perform well even if there are multiple team-based rules and if the user is a member of thousands of teams.
Related branches
lp:~lifeless/launchpad/features
- Jeroen T. Vermeulen (community): Approve (code)
-
Diff: 147 lines (+65/-4)5 files modifiedlib/lp/registry/interfaces/person.py (+5/-2)
lib/lp/registry/model/person.py (+3/-0)
lib/lp/registry/tests/test_person.py (+7/-0)
lib/lp/services/features/tests/test_webapp.py (+25/-2)
lib/lp/services/features/webapp.py (+25/-0)
Changed in launchpad-foundations: | |
status: | Confirmed → Triaged |
Changed in launchpad-foundations: | |
assignee: | Martin Pool (mbp) → Robert Collins (lifeless) |
status: | Triaged → In Progress |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad-foundations: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is on the critical path for removing edge FWIW: we need to limit
recipes to members of a beta team, rather than the edge vhosts.