Mercurial > p > roundup > code
diff roundup/hyperdb.py @ 6250:95183d73ac64
issue2550522 - add transitive searching to filter in roundup-admin
issue2550522 - Add 'filter' command to command-line interface.
Filter command was actually added in 2.0.0, but this
issue requested transitive searching. So that:
roundup-admin -i . filter issue assignedto.username=Admin
will work. This also fixes two bugs.
If assignedto.username had no matches, all issues would be returned.
admin.py had a find() call where the should have been a filter()
call. Was tripped when -S, -c or -s were used.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 05 Aug 2020 02:05:10 -0400 |
| parents | 6834bb5473da |
| children | 1e5ed659e8ca 8bc5faeb7677 |
line wrap: on
line diff
--- a/roundup/hyperdb.py Fri Jul 31 09:04:58 2020 -0400 +++ b/roundup/hyperdb.py Wed Aug 05 02:05:10 2020 -0400 @@ -620,6 +620,8 @@ exact_match_spec[p.name] = exact if subst: filterspec[p.name] = subst + elif not exact: # don't set if we have exact criteria + filterspec[p.name] =[ '-1' ] # no match was found else: assert not isinstance(p.val, Exact_Match) filterspec[p.name] = p.val
