stable

Clone or download

Read-only

Do not display xref to unreachable forum

Given an artifact is referencing (with `forum #123`) a forum, When the user displays the artifact, Then the name of the forum is displayed instead of the raw xref. Given an artifact is referencing (with `forum #123`) a forum, And the user is not allowed to access the forum (private forum, or no access to the project, or deleted forum) When the user displays the artifact, Then the xref is not displayed. Part of story #17180: take into account gitlab commits Change-Id: I52e68d1af563eda42c8c4164954a24fd0092939a

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_CrossReferences.php +5 −0 Go to diff View file
A src/common/Forum/Forum.php +44 −0 Go to diff View file
A src/common/Forum/ForumDao.php +42 −0 Go to diff View file
A src/common/Forum/ForumRetriever.php +64 −0 Go to diff View file
M src/common/Reference/ByNature/CrossReferenceByNatureInCoreOrganizer.php +3 −0 Go to diff View file
M src/common/Reference/ByNature/Forum/CrossReferenceForumOrganizer.php +32 −1 Go to diff View file
A tests/unit/common/Forum/ForumRetrieverTest.php +81 −0 Go to diff View file
M tests/unit/common/Reference/ByNature/CrossReferenceByNatureInCoreOrganizerTest.php +21 −0 Go to diff View file
M tests/unit/common/Reference/ByNature/Forum/CrossReferenceForumOrganizerTest.php +65 −2 Go to diff View file