Message7195
== Use Case (at Intevation)
We want to search for a combination of keywords, for example
all issues that have both the keywords "roundup" and "admin"
=== How it is used
The query build from our template allows this, here is an url shortened to the
significant parts, which will only list issues that have both keyword 1 and keyword 4.
URL/issue?&keyword=1,4,-3&@action=search
For this the expression editor is opened, the expression is constructed
and "apply"ed to it is used as value for the keyword to search.
If "OR" was selected, the URL would be
URL/issue?&keyword=1,4,-4&@action=search
So we have a postfix notation.
roundup-keyword-expr-20210414-1.png shows an editor with "(a and b) or c"
after pressing apply it will be entered in the current search page.
=== Template
It is in the default classic roundup.
testing with
changeset: 6377:a7e7314fb7d9
tag: tip
user: John Rouillard <rouilj@ieee.org>
date: Sat Apr 10 22:10:07 2021 -0400
python demo.py nuke
* login as demo, demo
* create keywords a, b, c
* create issues with a combination of the keywords.
* use issue search page and expression editor to form expressions.
A template set used by some of our still running elder trackers has the similar code
https://hg.intevation.de/roundup/fast-decomposed/file/tip/html
or hg clone https://hg.intevation.de/roundup/fast-decomposed fast-decomposed-hg
Ralf, is that helping you? Thanks for your interest in this feature. :)
(Sorry for having taken a while to respond here.) |
|
Date |
User |
Action |
Args |
2021-04-14 13:35:01 | ber | set | messageid: <1618407301.7.0.379195059485.issue2551119@roundup.psfhosted.org> |
2021-04-14 13:35:01 | ber | set | recipients:
+ ber, schlatterbeck, rouilj |
2021-04-14 13:35:01 | ber | link | issue2551119 messages |
2021-04-14 13:35:01 | ber | create | |
|