stable

Clone or download

Read-only

Do not display inaccessible cvs commit in cross ref

Given an artifact is referencing a cvs commit `cvs #123` (or is being referenced by) When the commit is part of a project the user cannot access, Then on the artifact cross references field, the reference to the commit is not displayed. Bonus: if the reference is displayed, then it is enhanced with commit information (to have the same look 'n feel than for git commits): * title of the commit taken from the description * author & date * revision number as additional badge Part of story #17180 take into account gitlab commits Change-Id: I11d44c4d785b9bd10ea97492abd509e1537b6398

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_CrossReferences.php +10 −0 Go to diff View file
A src/common/ConcurrentVersionsSystem/CvsDao.php +56 −0 Go to diff View file
A src/common/Reference/ByNature/ConcurrentVersionsSystem/CrossReferenceCvsOrganizer.php +161 −0 Go to diff View file
M src/common/Reference/ByNature/CrossReferenceByNatureInCoreOrganizer.php +18 −3 Go to diff View file
M src/common/Reference/CrossReferenceByNatureOrganizer.php +1 −1 Go to diff View file
M src/common/Reference/ReferenceManager.php +1 −1 Go to diff View file
A tests/unit/common/Reference/ByNature/ConcurrentVersionsSystem/CrossReferenceCvsOrganizerTest.php +187 −0 Go to diff View file
M tests/unit/common/Reference/ByNature/CrossReferenceByNatureInCoreOrganizerTest.php +28 −0 Go to diff View file
M tests/unit/common/Reference/CrossReferenceByNatureOrganizerTest.php +24 −0 Go to diff View file