imdone icon indicating copy to clipboard operation
imdone copied to clipboard

Context filter using | (or) functions as or-but-not-and

Open tf13 opened this issue 5 years ago • 5 comments

Describe the bug I have some cards with multiple contexts (@a @b). If I filter for one or the other to set the color in the board settings, it works: context=a. If I filter for both contexts, it works, changing the color of those marked @a and @b: context=a&context=b. However, if I set the filter to context=a|context=b, the color of a card marked both @a and @b does not change. This seems counterintuitive.

To Reproduce Steps to reproduce the behavior:

  1. Create a card with contexts @a @b.
  2. Go to Board Settings > Card Settings
  3. Create a Card Color Filter with the filter set to context=a|context=b and Color set to green.
  4. Save and exit settings.
  5. See that the card color hasn't changed.
  6. Go to Board Settings > Card Settings, edit the rule to read context=a&context=b; save; exit settings.
  7. See that the card color has changed.

Expected behavior A filter of context=a|context=b should trigger the color change if the context is a, b, or both a and b.

Desktop (please complete the following information):

  • OS: MacOS Catalina
  • Browser: using the imdone app, Version 1.12.0 (1.12.0)

Additional context Add any other context about the problem here.

DoD

  • [ ] Issue is understood
  • [ ] Fix is implemented and tested
  • [ ] Fix is deployed in the current release

tf13 avatar Mar 09 '21 19:03 tf13

The query should be context=a or context=b. The old RQL query style is deprecated and will be removed in a future release.

piascikj avatar Mar 14 '21 13:03 piascikj

Using or works. Pretty sure I found the & / | syntax in the documentation.

tf13 avatar Mar 16 '21 18:03 tf13

Can we close this issue?

piascikj avatar Mar 18 '21 14:03 piascikj

Yes. Sorry -- should I do that?

Unless maybe the docs need editing to reflect this?

tf13 avatar Mar 18 '21 20:03 tf13

I'll remove the docs that are marked as deprecated this evening and close this out. Thanks for the help!

piascikj avatar Mar 18 '21 20:03 piascikj