Skip to content

Commit b015be8

Browse files
committed
issue2550648 - partial fix for problem in this issue. Ezio Melotti
reported that the expression editor allowed the user to generate an expression using retired values. To align the expression editor with the simple dropdown search item, retired values are now removed from the expression editor. Do we really want this though? Supposed a keyword is retired and I want to search for an issue with that retired keyword? Do we have a best policy document that says to remove retired keywords from all places it could possibly be used? It could be argued that the simple search dropdown is wrong and should allow selecting retired values.
1 parent 138cde1 commit b015be8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGES.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,12 @@ Fixed:
252252
parts to this: 1) changes to the templates to properly define the
253253
__came_from form element. See ``upgrading.txt``. 2) code changes
254254
to the LoginAction code in roundup/cgi/actions.py. (John Rouillard)
255+
- issue2550648 - partial fix for problem in this issue. Ezio Melotti
256+
reported that the expression editor allowed the user to generate an
257+
expression using retired values. To align the expression editor with
258+
the simple dropdown search item, retired values are now removed from
259+
the expression editor. (We have an open question as to whether this
260+
is desirable.)
255261

256262
2016-01-11: 1.5.1
257263

roundup/cgi/KeywordsExpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def list_nodes(request):
245245
prop = request.form.getfirst("property")
246246
cls = request.client.db.getclass(prop)
247247
items = []
248-
for nodeid in cls.getnodeids():
248+
for nodeid in cls.getnodeids(retired=0):
249249
l = cls.getnode(nodeid).items()
250250
l = dict([x for x in l if len(x) == 2])
251251
try:

0 commit comments

Comments
 (0)