stable

Clone or download

Read-only

Export duck-typed String fields

Part of story #12345 export results to csv How to test: - Export CSV from a cross-tracker widget with a saved and non-empty report. - When there is a field in at least two trackers with the same shortname and the same String type, it will be exported. - Trackers without this field will have an empty string "" for this column. Will be done later: - Visit Form elements and assign TextValue, DateValue, etc. - Deduplicate between Semantics and Duck-typed fields. Change-Id: I1eae146e4b290a0e65b12e4b9b136c9b1c54a01e

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/CrossTrackerReport.php +11 −1 Go to diff View file
R plugins/crosstracker/include/CrossTracker/CrossTrackerArtifactRepresentationFactory.php Go to diff View file
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +1 −9 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/CSVExportController.php +19 −8 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/CSVRepresentation.php +2 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/CSVRepresentationBuilder.php +75 −38 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/CSV/CSVRepresentationFactory.php +55 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/CSV/SimilarFieldsFormatter.php +77 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/SimilarField/SimilarFieldCollection.php +68 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/SimilarField/SimilarFieldsMatcher.php +101 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/SimilarField/SupportedFieldsDao.php +49 −0 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.class.php +15 −5 Go to diff View file
M plugins/crosstracker/phpunit/CrossTracker/Report/CSV/CSVRepresentationBuilderTest.php +33 −16 Go to diff View file
A plugins/crosstracker/phpunit/CrossTracker/Report/CSV/SimilarFieldsFormatterTest.php +87 −0 Go to diff View file
A plugins/crosstracker/phpunit/CrossTracker/Report/SimilarField/SimilarFieldsMatcherTest.php +138 −0 Go to diff View file