stable

Clone or download

Read-only

Fields used in semantics should not be exported twice

Part of story #12523 Export single-value list fields to CSV How to test: - Export CSV from a cross-tracker widget with a saved and non-empty report. - Fields that are used in a supported semantic (Title, Description, Status) should not be exported again with "Duck-typing". - Fields that are used in any other semantic (Card fields, etc.) should still be exported. Change-Id: I3c895f47cb076567a1cef4cfedd6b89832744dad

Modified Files

Name
A plugins/crosstracker/include/CrossTracker/Report/SimilarField/FieldUsedInSupportedSemanticsVisitor.php +182 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/SimilarField/SimilarFieldCandidate.php +10 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/SimilarField/SimilarFieldCollection.php +8 −16 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/SimilarField/SimilarFieldsFilter.php +48 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/SimilarField/SimilarFieldsMatcher.php +18 −5 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.class.php +7 −3 Go to diff View file
A plugins/crosstracker/phpunit/CrossTracker/Report/SimilarField/FieldUsedInSupportedSemanticsVisitorTest.php +135 −0 Go to diff View file
M plugins/crosstracker/phpunit/CrossTracker/Report/SimilarField/SimilarFieldCollectionTest.php +1 −1 Go to diff View file
A plugins/crosstracker/phpunit/CrossTracker/Report/SimilarField/SimilarFieldsFilterTest.php +102 −0 Go to diff View file
M plugins/crosstracker/phpunit/CrossTracker/Report/SimilarField/SimilarFieldsMatcherTest.php +20 −12 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Tracker_Semantic_Description.class.php +17 −1 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Tracker_Semantic_Status.class.php +17 −1 Go to diff View file