stable

Clone or download

Read-only

feat: Query for Between 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 between `BETWEEN(1, 5)` with two numeric values - Writing a TQL query like `initial_effort BETWEEN('', 5)` is not rejected. The search yields results but should be flagged as a query grammar 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: Icc20ee1e5d8a420b1fa6d826b4f01b5157c005c0

Modified Files

Name
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Field/FieldValueWrapperParameters.php +36 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Field/Numeric/NumericFromWhereBuilder.php +75 −16 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/NumericDuckTypedFieldTest.php +33 −0 Go to diff View file