stable

Clone or download

Read-only

Display commit information instead of raw cross ref label

For each commit that is referencing (or is being referenced by) an artifact, in addition of the sha1 as badge, we now display: * The commit title instead of the reference * The author and the date Note: Integrating tlp-avatar is more complicated than integrating tlp badges or panes. Therefore, for now the tlp-avatar-mini rules have been copy-pasted. Maybe the situation will be better when we will integrate the new cross references styling in core… Part of story #17180 take into account gitlab commits Change-Id: I49ea9c3253356be929c18d09d939408218b7bbf5

Modified Files

Name
A plugins/git/include/Git/Reference/CommitProvider.php +38 βˆ’0 Go to diff View file
A plugins/git/include/Git/Reference/CrossReferenceGitEnhancer.php +128 βˆ’0 Go to diff View file
M plugins/git/include/Git/Reference/CrossReferenceGitOrganizer.php +31 βˆ’14 Go to diff View file
M plugins/git/include/gitPlugin.php +15 βˆ’0 Go to diff View file
A plugins/git/tests/unit/Git/Reference/CrossReferenceGitEnhancerTest.php +336 βˆ’0 Go to diff View file
M plugins/git/tests/unit/Git/Reference/CrossReferenceGitOrganizerTest.php +58 βˆ’56 Go to diff View file
M plugins/tracker/templates/form-element/reference/cross_reference.mustache +39 βˆ’13 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/CrossReference/CrossReferenceArtifactOrganizerTest.php +5 βˆ’0 Go to diff View file
M plugins/tracker/tests/unit/Tracker_Artifact_ChangesetJsonFormatterTest.php +5 βˆ’0 Go to diff View file
M plugins/tracker/themes/FlamingParrot/css/style.scss +34 βˆ’12 Go to diff View file
M plugins/tracker/themes/default/css/includes/_cross-references-fields.scss +10 βˆ’0 Go to diff View file
A src/common/Date/TlpRelativeDatePresenter.php +64 βˆ’0 Go to diff View file
A src/common/Date/TlpRelativeDatePresenterBuilder.php +77 βˆ’0 Go to diff View file
A src/common/Reference/CreationMetadataPresenter.php +47 βˆ’0 Go to diff View file
M src/common/Reference/CrossReferencePresenter.php +28 βˆ’1 Go to diff View file
M src/common/Reference/CrossReferencePresenterFactory.php +2 βˆ’0 Go to diff View file
A src/common/Reference/Metadata/CreatedByPresenter.php +49 βˆ’0 Go to diff View file
M src/common/date/DateHelper.class.php +21 βˆ’35 Go to diff View file
A tests/unit/common/Date/TlpRelativeDatePresenterBuilderTest.php +114 βˆ’0 Go to diff View file
M tests/unit/common/Reference/CrossReferenceByNatureOrganizerTest.php +15 βˆ’0 Go to diff View file
M tests/unit/common/Reference/CrossReferenceNaturePresenterTest.php +1 βˆ’0 Go to diff View file
M tests/unit/common/Reference/CrossReferencePresenterTest.php +30 βˆ’0 Go to diff View file
M tests/unit/common/Reference/CrossReferenceSectionPresenterTest.php +2 βˆ’0 Go to diff View file