•  
     
    story #8859 TQL search on date & numeric fields
Summary
Empty
TQL search on date & numeric fields
Empty
  • Grammar
    • New fields: date, date time, float, int
      • For date & time: user format already defined in tracker
    • New operators: >, >=, !=, <=, <, between()
    • New function: now() + period. (eg now() - 1w, now() + 2d)
  • Support TQL in REST search
  • Store request elapsed time
  • Add end user doc
  • Examples
    • close_date < now() - 1w
    • create_date > "2015-01-01"
    • estimated_effort between (3, 8)
Empty
Empty
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#8859
Manuel Vacelet (vaceletm)
2017-02-01 13:16
2016-02-11 11:29
4567

References
Referencing story #8859

Git commit

tuleap/tuleap/stable

API REST 65c3784cc7
Refactoring: do not pollute Grammar namespace e30f5db6ed
Refactoring: rename Comparison to EqualComparison 9097ff8cd0
Refactoring: FromElement returns directly a FrowWhere object 4dc41e468f
Numeric is allowed and returns a FrowWhere a9b9a8e68a
Sort alphabetically field names in TQL facilitators 9fb4004a55
Introduce != 44e394d563
same behavior between int/float/string for empty value 7c8c7313b2
Refactoring: Do not rely on instance_of operator d8b3379728
Introduce < (only numeric) 1067be5f8a
Introduce > (only numeric) 716003267e
Introduce <= 986ffece21
Introduce >= 878c81dd64
Refacto: set Comparison value in object c4088e597e
Enhance error message for unsupported comparisons edc658237a
Refactoring: return Value object instead of string a4fe39d657
Fix unit tests 3b95f20590
Better error messages bde2de2c41
Introduce between() a1c8705dee
BETWEEN operator is autocompleted 58e285d511
Refactoring: Avoid ->getValue()->getValue() a48d8498a2
Refactoring: rename exception to avoid confusion e9a87cfbf6
Date, submitted_on and last_update_on fields are supported e7fede333a
Introduce =now() 9ce026764c
Introduce period (+/- 1d) 1a009a39f6
Fix empty string comparisons 864c0f74f6
Manage all periods usable with now 3a792e7aa2
Add NOW() in autocomplete 250c5607a4
Add syntax highlight for now and between b07f2c098b
Better distinguish now/between and logical operators 8966d19734
Introduce greater than operator for date fields c13c523919
Add syntax highlight for time periods and numbers 903b988b6d
Introduce lesser than operator for date fields 9493749730
Greater than should compare to ceiled date b4b703d1e7
Introduce between for date fields 5573c2f914
Introduce lesser than or equal operator for date fields c7c18191e6
Introduce greater than or equal operator for date fields 5542442f02
Introduce != for date fields 787af15e11
When invalid date format, error msg says empty value 60de5fe76c
Refactoring BetweenComparison query builders 021834c00e
Refactoring EqualComparison and NotEqualComparison query builders de1c6779f9
Refactoring LesserThanComparison and LesserThanOrEqualComparison query builders b59f695d86
Refactoring GreaterThanComparison and GreaterThanOrEqualComparison query builders 0bcc9a992a
NOW() cannot be compared to int/float/text fields b6f3babe1b
Refacto: Move int/float/date/text in their own namespace c1da4477ce
Refacto: Use a dedicated class to embrace DATE/TIME format 29e8b77d6c
Refacto: Get the values in BETWEEN() in a dedicated object b7eedf2de2
Refacto: check dates in a dedicated object 0c6766a290
Refacto: extract/check date in a dedicated object e6d7329b7f
Refacto: simplify date validation d8714a1884
Refacto: simplify integer/float validation 77b4be828c
Refacto: date condition in a dedicated object a9cb9552c3
Refactoring: Add date read only conditionn in dedicated object bbefd6f7c2

Follow-ups

User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes