stable

Clone or download

Read-only

Better error messages

This is a part of story #8859 TQL search on date & numeric fields integer_field = 3.14 should raise an error (same with other logical operators) integer_field = "abc" should raise an error (same with other logical operators) float_field = "abc" should raise an error (same with other logical operators) string_field > "abc" should raise an error (same with other logical operators than = or !=) selectbox = "abc" should raise an error Change-Id: Iae5da42824daf54495ec9fc1721186faffccbb93

Modified Files

Name
M plugins/tracker/include/REST/v1/TrackersResource.class.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/EqualComparisonVisitor.php +28 −25 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FieldIsNotSupportedAtAllException.php +36 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FieldIsNotSupportedForComparisonException.php +12 −2 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FloatFieldChecker.php +35 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FloatToStringComparisonException.php +36 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/GreaterThanComparisonVisitor.php +31 −26 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/GreaterThanOrEqualComparisonVisitor.php +31 −26 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/IProvideTheInvalidFieldCheckerForAComparison.php +31 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/IntegerFieldChecker.php +39 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/IntegerToFloatComparisonException.php +36 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/IntegerToStringComparisonException.php +36 −0 Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/ICheckThatFieldIsAllowedForComparison.php Go to diff View file
R plugins/tracker/include/Tracker/Report/Query/Advanced/FieldsDoNotSupportOperatorException.php Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/LesserThanComparisonVisitor.php +31 −26 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/LesserThanOrEqualComparisonVisitor.php +31 −26 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/NotEqualComparisonVisitor.php +29 −26 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/TextFieldChecker.php +31 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFieldsCollection.php +11 −11 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFieldsCollectorVisitor.php +8 −6 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFieldsException.php +40 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +11 −24 Go to diff View file
M plugins/tracker/include/autoload.php +13 −4 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +26 −6 Go to diff View file
M plugins/tracker/site-content/tuleap-tracker.pot +22 −6 Go to diff View file
M plugins/tracker/tests/Tracker/Report/Query/Advanced/InvalidFieldsCollectorVisitorTest.php +45 −19 Go to diff View file