stable

Clone or download

Read-only

refactor: Group date invalid checks together

part of story #10710 search on fields with duck typing No functional change. CI should be happy. Why? This is part of a refactoring to transition away from invalid checks being grouped by comparison type (equals, lesser than, etc.). We want to group it by field type instead, as it is easier to understand. Most of the time, we work "field by field", so it makes more sense to have all the business rules for a given field in as few files as possible, instead of having all the business rules for "equals" comparison being grouped together. Change-Id: I4a346db1341e09c90712767d55fbde9faa2f96c1

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidTermCollectorVisitor.php +2 −0 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Tests/Builders/InvalidSearchableCollectorParametersBuilder.php +2 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/BetweenComparisonVisitor.php +3 −22 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/Date/DateFieldChecker.php +44 −21 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/Date/DateFormatValidator.php +8 −13 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/EqualComparisonVisitor.php +3 −22 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FlatInvalidFieldChecker.php +17 −15 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/GreaterThanComparisonVisitor.php +3 −22 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/GreaterThanOrEqualComparisonVisitor.php +3 −22 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/LesserThanComparisonVisitor.php +3 −22 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/LesserThanOrEqualComparisonVisitor.php +3 −22 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/NotEqualComparisonVisitor.php +3 −22 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/Text/TextFieldChecker.php +2 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidTermCollectorVisitor.php +2 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/InvalidFields/Date/DateFieldCheckerTest.php +113 −0 Go to diff View file
D plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/InvalidFields/DateFieldCheckerTest.php +0 −95 Go to diff View file
D plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/InvalidFields/DateTimeFieldCheckerTest.php +0 −104 Go to diff View file