Roundup Tracker - Issues

Issue 2550698

classification
Title: Document the logical expression search a bit
Type: Severity: normal
Components: Documentation Versions: devel
process
Status: new Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ber, rouilj, schlatterbeck
Priority: normal Keywords: Effort-Medium

Created on 2011-04-15 07:33 by ber, last changed 2016-07-12 08:44 by schlatterbeck.

Messages
msg4287 Author: [hidden] (ber) Date: 2011-04-15 07:33
Split out from Issue2550648 (Should be possible to search for matching 
several keywords (keyword1 AND keyword2)):

| BTW: I think the new features deserve some entry in doc/upgrading.txt
| for existing tracker installations...
msg4291 Author: [hidden] (schlatterbeck) Date: 2011-04-15 08:21
When we're at it: It would be nice to have a small regression test for
this, too. I've recently re-factored the sql generation (for
implementing filter_iter) and was unsure if I had broken some of the new
features.

If you can give me a search-URL that uses (if possible *all*) of the new
search features I'll volunteer to put this into (one or several) tests.

original issue2550648 (lowercase so that this generates a link :-)
msg4292 Author: [hidden] (ber) Date: 2011-04-15 09:08
Am Freitag, 15. April 2011 10:21:27 schrieb Ralf Schlatterbeck:
> If you can give me a search-URL that uses (if possible *all*) of the new
> search features

Not right now. Just use the javascript on a new tracker to get one.
Thanks for helping!
msg4295 Author: [hidden] (ber) Date: 2011-04-15 15:31
@schlatterbeck:
Examples, hope this helps. :)
Basics:
1) first AND second keyword:
  /demo/issue?%40action=search&keyword=1,2,-3
2) NOT first keyword
  /demo/issue?%40action=search&keyword=1,-2
3) second OR third keyword:
  /demo/issue?%40action=search&keyword=2,3,-4
  should be equivalent to the old implicit OR behaviour
  /demo/issue?%40action=search&keyword=2,3

More involved:
4) testing together: ( first AND NOT third ) OR fourth keywords
  /demo/issue?%40action=search&keyword=1,3,-2,-3,4,-4
msg5829 Author: [hidden] (rouilj) Date: 2016-07-11 01:38
Ralf,

Did you ever get a chance to generate these tests. I took a quick
look though tests/test_* and I don't see any tests using -2, -3 or-4
in a filter context.
msg5841 Author: [hidden] (schlatterbeck) Date: 2016-07-12 08:44
On Mon, Jul 11, 2016 at 01:38:57AM +0000, John Rouillard wrote:
> 
> Ralf,
> 
> Did you ever get a chance to generate these tests. I took a quick
> look though tests/test_* and I don't see any tests using -2, -3 or-4
> in a filter context.

No, but I see Bernhard has provided some examples. This seems to use a
simple polish notation with the operators being negative numbers.

Maybe I get around doing that today...
I have to do some modifications on a tracker I'm running...

Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   http://www.runtux.com
Reichergasse 131, A-3411 Weidling       email: office@runtux.com
History
Date User Action Args
2016-07-12 08:44:20schlatterbecksetmessages: + msg5841
2016-07-11 01:38:57rouiljsetkeywords: + Effort-Medium
nosy: + rouilj
messages: + msg5829
2011-04-15 15:31:46bersetmessages: + msg4295
2011-04-15 09:08:05bersetmessages: + msg4292
2011-04-15 08:21:27schlatterbecksetnosy: + schlatterbeck
messages: + msg4291
2011-04-15 07:33:23bercreate