stable

Clone or download

Read-only

Extract Static-bound Selectbox values in CSV with duck typing

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. - When there is a field in at least two trackers with the same shortname and the same Selectbox type, it will be exported. - Trackers without this field will have an empty value for this column. - Static list fields with "None" selected will have an empty value. - CSV special characters (comma, tab, semicolon, quote) should be properly escaped in static list values. Will be done later: - Exporting Selectbox bound to users - Exporting Selectbox bound to ugroups - Exporting Radio buttons Change-Id: I11e78c3275bdb24192c1583cecff3df6dc422f26

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/Report/CSV/CSVRepresentation.php +1 −1 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/CSV/Format/BindToValueParameters.php +47 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/CSV/Format/BindToValueVisitor.php +71 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/Format/CSVFormatterVisitor.php +8 −2 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/CSV/Format/EmptyValue.php +29 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/Format/FormElementToValueVisitor.php +6 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/Format/FormatterVisitor.php +3 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/SimilarFieldsFormatter.php +7 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/SimilarField/SupportedFieldsDao.php +1 −1 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.class.php +2 −1 Go to diff View file
A plugins/crosstracker/phpunit/CrossTracker/Report/CSV/Format/BindToValueVisitorTest.php +139 −0 Go to diff View file
M plugins/crosstracker/phpunit/CrossTracker/Report/CSV/Format/CSVFormatterVisitorTest.php +9 −0 Go to diff View file
M plugins/crosstracker/phpunit/CrossTracker/Report/CSV/SimilarFieldsFormatterTest.php +54 −18 Go to diff View file