stable

Clone or download

Read-only

Duck typing should distinguish bind types

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. - Selectboxes and Radio buttons that have the same name but not the same bind type (static, users, ugroups) should yield two columns (with the same name) in the CSV export. - Count of tracker fields should also take bind type into account. That means that when a list field with the same name is present in only one other tracker, if it has not the same bind, it won't be exported. Change-Id: Ie0413feb5e25cfffaf683e044a49c9eceb851f07

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/Report/CSV/SimilarFieldsFormatter.php +4 −4 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/SimilarField/BindNameVisitor.php +51 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/SimilarField/SimilarFieldCandidate.php +23 −8 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/SimilarField/SimilarFieldCollection.php +38 −19 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/SimilarField/SimilarFieldIdentifier.php +51 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/SimilarField/SimilarFieldType.php +50 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/SimilarField/SimilarFieldsMatcher.php +22 −4 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.class.php +3 −1 Go to diff View file
M plugins/crosstracker/phpunit/CrossTracker/Report/CSV/SimilarFieldsFormatterTest.php +20 −13 Go to diff View file
M plugins/crosstracker/phpunit/CrossTracker/Report/SimilarField/FieldUsedInSupportedSemanticsVisitorTest.php +0 −19 Go to diff View file
M plugins/crosstracker/phpunit/CrossTracker/Report/SimilarField/SimilarFieldCollectionTest.php +38 −16 Go to diff View file
M plugins/crosstracker/phpunit/CrossTracker/Report/SimilarField/SimilarFieldsMatcherTest.php +5 −1 Go to diff View file