stable

Clone or download

Read-only

Pimp my artifact cross reference

When there is a cross reference between two artifacts, this cross reference now displays a title badge (the xref) and the artifact title instead of just the legacy xref value. If user cannot access to the artifact, then the reference is not displayed anymore. If user cannot access to the title of the artifact (no perms for the field), then the title is empty, but the badge is still displayed. Part of story #17180 take into account gitlab commits Change-Id: I0983a2fbd7d81edc8f96459432968f68f4857cf4

Modified Files

Name
M plugins/git/tests/unit/Git/Reference/CrossReferenceGitOrganizerTest.php +13 −7 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/CrossReference/CrossReferenceArtifactOrganizer.php +97 −0 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +19 −0 Go to diff View file
M plugins/tracker/templates/form-element/reference/cross_reference.mustache +6 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Artifact/CrossReference/CrossReferenceArtifactOrganizerTest.php +338 −0 Go to diff View file
M plugins/tracker/themes/FlamingParrot/css/style.scss +6 −0 Go to diff View file
M plugins/tracker/themes/default/css/includes/_cross-references-fields.scss +4 −0 Go to diff View file
M src/common/Reference/CrossReferenceByNatureOrganizer.php +2 −2 Go to diff View file
M src/common/Reference/CrossReferencePresenter.php +21 −1 Go to diff View file
M src/common/Reference/CrossReferencePresenterFactory.php +4 −2 Go to diff View file
M src/common/Reference/CrossReferenceSectionPresenter.php +2 −0 Go to diff View file
A src/common/Reference/TitleBadgePresenter.php +44 −0 Go to diff View file
M tests/unit/common/Reference/CrossReferenceByNatureOrganizerTest.php +75 −13 Go to diff View file
M tests/unit/common/Reference/CrossReferenceNaturePresenterTest.php +2 −2 Go to diff View file
A tests/unit/common/Reference/CrossReferencePresenterTest.php +54 −0 Go to diff View file
M tests/unit/common/Reference/CrossReferenceSectionPresenterTest.php +2 −2 Go to diff View file