Feature #607
closedhistory filter should use contains instead of direct match
Description
- for matching errors, authors, etc. str1.contains(str2) should be used instead of exact match.
Updated by Tomáš Klíma about 6 years ago
- Status changed from New to Resolved
Uses contains only for action type
Updated by Miroslav Blaško about 6 years ago
- Status changed from Resolved to New
code is quite redundant. would it be possible to write only one select query for that () and reuse it ? :
public List<ActionHistory> findByTypeAndAuthor(String type, User author, int pageNumber) ---> findByTypeOrAuthor
- please test it using junit tests as well.
Updated by Tomáš Klíma about 6 years ago
You mean use one query for searching type or author or type and author?
I tried it and spent a lot of time on it, but without success.
Updated by Miroslav Blaško about 6 years ago
- use workbench to debug query
- where was the problem:
SELECT ?r WHERE {
?r a ?type ;
?isCreated ?timestamp .
- ?r ?isType ?actionType .
?r ?hasOwner ?author .*
}
- last two lines you add depending on the input params. E.g. if ?author is null you remove "?r ?isType ?actionType" ...
Updated by Miroslav Blaško almost 4 years ago
- Status changed from Resolved to Closed
Updated by Anonymous 3 months ago
Our female Goa Call Girls is considered to be the best in Goa, according to us. Our high-profile Escorts have been carefully selected and placed on our roster to provide you with the most diverse range of services.
Updated by Anonymous 3 months ago
These model Delhi Escorts know every corner of different cities very well and are very capable of helping in providing all types of services. After living here for so many years, A Delhi Escorts Services can become your perfect travel guide to take you around during the day and a fantastic bed partner for you at night.