stable

Clone or download

Read-only

refactor: Group Subby + luby 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: I7ea1f96f7ef219ed4427dba9fa54fae8bbd4c14b

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +31 −18 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidTermCollectorVisitor.php +2 −58 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.php +31 −18 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Tests/Report/ArtifactReportFactoryInstantiator.php +31 −18 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/InvalidTermCollectorVisitorTest.php +33 −18 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Tests/Builders/InvalidSearchableCollectorParametersBuilder.php +2 −19 Go to diff View file
D plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/BetweenComparisonVisitor.php +0 −183 Go to diff View file
D plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/EqualComparisonVisitor.php +0 −186 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FlatInvalidFieldChecker.php +4 −29 Go to diff View file
D plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/GreaterThanComparisonVisitor.php +0 −183 Go to diff View file
D plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/GreaterThanOrEqualComparisonVisitor.php +0 −183 Go to diff View file
D plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/InComparisonVisitor.php +0 −208 Go to diff View file
D plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/LesserThanComparisonVisitor.php +0 −183 Go to diff View file
D plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/LesserThanOrEqualComparisonVisitor.php +0 −183 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/ListFields/ArtifactSubmitterChecker.php +39 −9 Go to diff View file
D plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/NotEqualComparisonVisitor.php +0 −206 Go to diff View file
D plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/NotInComparisonVisitor.php +0 −208 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidTermCollectorVisitor.php +2 −47 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +27 −10 Go to diff View file
A plugins/tracker/tests/unit/Builders/Fields/LastUpdateByFieldBuilder.php +67 −0 Go to diff View file
A plugins/tracker/tests/unit/Builders/Fields/SubmittedByFieldBuilder.php +67 −0 Go to diff View file
D plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/InvalidFields/ArtifactSubmitterCheckerTest.php +0 −83 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/InvalidFields/ListFields/ArtifactSubmitterCheckerTest.php +105 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/InvalidTermCollectorVisitorTest.php +138 −389 Go to diff View file