Add an API to populate the security check cache for optimization

Bug #324546 reported by Francis J. Lacoste
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Unassigned

Bug Description

Some of our API that returns list of objects takes privacy into account and only return obejcts that the user can access. But the security wrapper for these obejct will issue other requests to redo that check.

To optimize this we should offer an API that the code can use to tell the security policy that the user has permission on these objects so that the checks aren't made again.

Changed in launchpad-foundations:
importance: Undecided → Low
status: New → Triaged
Curtis Hovey (sinzui)
tags: added: tech-debt
Revision history for this message
William Grant (wgrant) wrote :

That's lp.services.webapp.authorization.precache_permission_for_objects

Changed in launchpad:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.