stable

Clone or download

Read-only

feat: TrackersPermissionsRetriever can fetch permissions for multiple artifacts

Part of request #37580 Permissions API Instead of checking Artifact by Artifact if user can see/update them, we now check all at once and returns result for each *No functional changes expected* Change-Id: I50312ddda7fde67d300079a851c6fe211bb5ed85

Modified Files

Name
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +26 −8 Go to diff View file
A plugins/tracker/include/Tracker/Permission/ArtifactPermissionType.php +29 −0 Go to diff View file
A plugins/tracker/include/Tracker/Permission/RetrieveUserPermissionOnArtifacts.php +35 −0 Go to diff View file
A plugins/tracker/include/Tracker/Permission/SearchUserGroupsPermissionOnArtifacts.php +33 −0 Go to diff View file
M plugins/tracker/include/Tracker/Permission/TrackersPermissionsDao.php +39 −1 Go to diff View file
M plugins/tracker/include/Tracker/Permission/TrackersPermissionsRetriever.php +115 −2 Go to diff View file
M plugins/tracker/include/Tracker/Permission/UserPermissionsOnItems.php +2 −2 Go to diff View file
A plugins/tracker/tests/integration/Permission/TrackersPermissionsDaoOnArtifactsTest.php +100 −0 Go to diff View file
M plugins/tracker/tests/integration/Test/Builders/TrackerDatabaseBuilder.php +19 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/Tracker/Permission/SearchUserGroupsPermissionOnArtifactsStub.php +53 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Permission/TrackersPermissionsRetrieverTest.php +121 −0 Go to diff View file