← Back to team overview

launchpad-reviewers team mailing list archive

Re: lp:~wallyworld/launchpad/projects-shared-with-person-1053387 into lp:launchpad

 

TeamParticipation joins will say the user is a member of himself and will work before and after a user's memberships are changed. But the user is orthogonal to the auditor asking the question. As an auditor I can ask my questions about any user, but the answer will only contain the projects that I maintain, driver, or administer.

This method cannot be used to learn about projects you do not have permission to know about. For examples, customer's have organisational teams, but they do not maintain or driver the oem projects. Customers cannot view +sharing to learn who a project shares with. Nor can customers use this method to learn about project's they do not maintain or driver.

So this method must restrict the results to the project the auditor maintainers, drivers, or administers.

If Joey needs a method to learn about projects a user maintains, drivers, or supervises, then we need to solve the bug I abandoned: Bug #1028819 is about broken project group sorting, but fixing the bug wont help the user. He wants to know about know about owned pillars. We pointed him to the proper method, (now called getAffilliatedPillars), but restful does not handle heterogeneous collections. Even Lp hates this methods...no call site wants the PillerName object it returns.
-- 
https://code.launchpad.net/~wallyworld/launchpad/projects-shared-with-person-1053387/+merge/125682
Your team Launchpad code reviewers is subscribed to branch lp:launchpad.


References