stable

Clone or download

Read-only

feat: Query for Greater than comparison for numeric fields

How to test: - Enable the feature flag: tuleap config-set feature_flag_cross_tracker_search_duck_typed_fields 1 - Set up two or three trackers with int or float fields. The fields must have the same shortname, for example "initial_effort". - You can write a TQL query to search on initial_effort with greater than `>` and a numeric value - Writing a TQL query like `initial_effort > ''` is not rejected. The search always yields all artifacts but should be raised as a query error. It will be done on a dedicated commit. - You can search on multiple fields and combine results with "AND" / "OR". part of story #10710 search on fields with duck typing Change-Id: Id762ec9b9e11ce925d8ea7c5378d3c6e44327ed6

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +2 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Field/FieldFromWhereBuilder.php +2 −3 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Field/Numeric/GreaterThanComparisonFromWhereBuilder.php +68 −0 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.php +2 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/NumericDuckTypedFieldTest.php +46 −1 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/QueryBuilder/Field/FieldFromWhereBuilderTest.php +2 −1 Go to diff View file