stable

Clone or download

Read-only

Export Always-there dates

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. - Given a Project name with CSV characters in it (comma, semicolon, tab, double quote), when exported then it should be escaped with double quotes. Double quotes in the project name should be doubled to escape them. - Same for Tracker name. - When you browse to your account settings and change the CSV date format, then it should be taken into account. Change-Id: I5706974a1a94d80c20128178a85615b0baeceeb1

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +4 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/CSVRepresentation.php +2 −12 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/CSVRepresentationBuilder.php +53 −11 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/CSV/Format/CSVFormatterVisitor.php +52 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/CSV/Format/DateValue.php +60 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/CSV/Format/FormatterParameters.php +40 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/CSV/Format/FormatterVisitor.php +34 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/CSV/Format/TextValue.php +45 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/CSV/Format/ValueVisitable.php +26 −0 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.class.php +6 −1 Go to diff View file
A plugins/crosstracker/phpunit/CrossTracker/Report/CSV/CSVRepresentationBuilderTest.php +103 −0 Go to diff View file
A plugins/crosstracker/phpunit/CrossTracker/Report/CSV/CSVRepresentationTest.php +77 −0 Go to diff View file
A plugins/crosstracker/phpunit/CrossTracker/Report/CSV/Format/CSVFormatterVisitorTest.php +72 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/Date/CSVFormatter.php +58 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/FormElement/Field/Date/CSVFormatterTest.php +92 −0 Go to diff View file
M tests/phpunit/phpunit.xml +1 −0 Go to diff View file