Roundup Tracker - Issues

Issue 2550698

classification
Document the logical expression search a bit
Type: Severity: normal
Components: Documentation Versions: devel
process
Status: new
:
: : ber, rouilj, schlatterbeck
Priority: normal : Effort-Medium

Created on 2011-04-15 07:33 by ber, last changed 2022-05-15 17:26 by rouilj.

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
msg7527 Author: [hidden] (rouilj) Date: 2022-05-15 17:26
Hi Ralf:

I see there were updates to the hyperdb filter method documenting the RPN search method.
What else needs to be done to close this?

  additions to the docs under doc (did a fast search for RPN and found nothing)

  tests for the filters using -2 -3 -4 (maybe include the exampels from filter()'s
    docstring?)
History
Date User Action Args
2022-05-15 17:26:53rouiljsetmessages: + msg7527
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