stable

Clone or download

Read-only

Add cache for UserCanSubmitPermission

part of request #24187 Program Management generates too much SQL queries We will need to check several times tracker submit permissions (addToTopBacklog/enable tracker submission...) A cache mechanism have been itroduced for UserCanSubmit permissions You'll can see the comparison here: https://blackfire.io/profiles/compare/e21d3d41-8927-4140-a086-66159b690099/graph Change-Id: Iba0d6beebde54affe2e34ec7a31b8f1fa1e8bef9

Modified Files

Name
M plugins/program_management/include/Adapter/Workspace/UserCanSubmitInTrackerVerifier.php +6 −2 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +4 −3 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Workspace/UserCanSubmitInTrackerVerifierTest.php +4 −5 Go to diff View file
A plugins/tracker/include/Tracker/Permission/SubmissionPermissionVerifier.php +93 −0 Go to diff View file
A plugins/tracker/include/Tracker/Permission/VerifySubmissionPermissions.php +32 −0 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +13 −18 Go to diff View file
A plugins/tracker/tests/unit/Stub/VerifySubmissionPermissionStub.php +50 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Permission/SubmissionPermissionVerifierTest.php +115 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/TrackerPermissionsTest.php +14 −148 Go to diff View file