•  
     
    story #10678 define a query for title and description semantics
Summary
Empty
define a query for title and description semantics
Empty

Behaviour

By default, the widget execute the hardcoded query but one can edit the query to run it's own.

  • If the query is empty the default query (everything that is open) is executed
  • If the textarea is not empty, its content is interpreted as the query

The columns are still the same as well as the order of the result.

The query is written in TQL, using code mirror with autocompletion and the list of accepted field is available on the right hand side (like expert mode in trackers).

For this story, only "title" and "description" semantics are usable. A query like: title = "foo" will return all artifacts who's title semantic match "foo".

Unlike TQL in the trackers, at this point, TQL search on semantics, not on field names. To avoid any confusion, the initial Runtime Check (see art #10677) will report an error if:

  • There is a field called "title" in one of the tracker and this field is not attached to "title" semantic
  • At least one tracker doesn't have a "title" semantic defined

Same applies for "description" accordingly.

The TQL search must met the "expression limit" defined by site administrator to avoid too complex queries

Technical

  • The grammar defined for TQL can be kept
  • Need to implement a new Tree Verification
  • Need to implement a new Query Generation
  • Warning: how to properly manage errors between Restler and JS
Empty
Status
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
#10678
Manuel Vacelet (vaceletm)
2018-01-02 17:19
2017-09-21 14:20
4201

References
Referencing story #10678

Git commit

tuleap/tuleap/stable

Follow-ups