deck icon indicating copy to clipboard operation
deck copied to clipboard

Tag filter uses AND logic if several tags are selected - should use OR logic

Open silmaril42 opened this issue 5 years ago • 8 comments

Describe the bug When filtering cards for tags and selecting several tags, only cards having all selected tags are shown (condition: card must have tagA AND tagB).

To Reproduce Steps to reproduce the behavior:

  1. have a board with at least 2 tags, tagA and tagB
  2. assign tagA to one card
  3. assing tagB to another card
  4. assign both tagA and tagB to a third card
  5. use the filter and select both tagA and tagB
  6. notice that only the third card is shown

Expected behavior I would expect to see all cards that have one of the selected tags (condition: card must have tagA OR tagB). Of course, you could argue which of the two possibilities is the "correct" way to go - for me the current AND condition is of no use at all, while I could use OR conditions.

So I'm not sure if this is a bug report or a feature request - that depends on your original intentions while implementing that bit ;-)

If others have use cases for AND conditions, maybe the best way to go would be an option to chose which behaviour should be used?

Side note The Nextcloud Deck app for Android is using OR conditions when selecting several tags in the filter, which feels (to me) like the natural behaviour.

Nextcloud version: Nextcloud 19.0 Deck 1.0.5

silmaril42 avatar Jul 28 '20 18:07 silmaril42