Merge lp:~gz/hydrazine/bugclient_multitag_filter into lp:hydrazine
Status: | Merged |
---|---|
Approved by: | Martin Packman |
Approved revision: | 103 |
Merged at revision: | 103 |
Proposed branch: | lp:~gz/hydrazine/bugclient_multitag_filter |
Merge into: | lp:hydrazine |
Diff against target: |
44 lines (+12/-1) 1 file modified
bugclient (+12/-1) |
To merge this branch: | bzr merge lp:~gz/hydrazine/bugclient_multitag_filter |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alex Chiang (community) | Approve | ||
Review via email: mp+115153@code.launchpad.net |
Description of the change
In bugclient 'filter tags a b c' is advertised as working but doesn't, as the api expects a list of tags rather than a string with spaces in. In addition, the api defaults to using "any of the given tags" which makes common things like "has this tag but doesn't have this tag" impossible to do.
This branch fixes how multiple tags are passed, exposes the 'tags_combinator' api parameter to filter, and defaults to using 'All' rather than 'Any'. This isn't the prettiest possible way of accomplishing this, but as launchpad doesn't support more complex boolean operations with tags and the new default should generally be fine anyway, inventing a fancier scheme isn't really needed.
From the help:
filter tags a b c # tags 'a', 'b', and 'c'
That says "list of tags" to me. I agree that boolean 'and' is implicit in there.
But anyway, I think tags_combinator is ok. I'm a little nervous of the increased complexity in this interface, but I'm not sure what to do to fix it, and I don't want to block this fix.