monocle icon indicating copy to clipboard operation
monocle copied to clipboard

The "add filter" should be smarter when adding a key that already exists

Open morucci opened this issue 4 years ago • 2 comments

For instance adding multiple time "state" will append the state: to the query with an implicit AND that will not make sense.

Instead the behavior should be to modify the query this way:

  • state:open and author:"John Doe" -> (state:open or state:merged) and author:"John Doe"

morucci avatar Sep 22 '21 13:09 morucci

This is not so simple to do, in the linked PR it can do: state:open and author:"John Doe" -> state:merged and author:"John Doe"

TristanCacqueray avatar Sep 27 '21 15:09 TristanCacqueray

Ok, turns out adding a filter as you proposed is actually simpler :-)

TristanCacqueray avatar Sep 27 '21 16:09 TristanCacqueray