-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plex - [list] Users that watch the show/season/episode comparison fails when comparing to a list. #1456
Comments
This is the correct behavior, see the docs: https://docs.maintainerr.info/Rules/#list-examples If you'd like another operator that does what you describe, raise a feature request here: https://features.maintainerr.info/ |
If you want to come on over to the Discord I can try to help you understand. |
It's an exact string match of ANY item in your list, not all of the provided list values. AND vs OR. The order does not matter. You could add another rule to match the second value in your list. When we add the logic you want we should come up with some better descriptions for sure. |
Got it. Any, not All for the Contains (Exact). Should there be a behavior difference for Equals vs Contains (Exact)? I'll try the additional, separate rule as a workaround for the multiple checks. The All comparison would be very nice to have and I agree there is an opportunity to clarify the descriptions. Thanks for the help! |
For arrays, equals checks that every element in firstValue is in the secondValue array (case insensitive). It's not a perfect equals, as the secondValue array could contain a value not within firstValue and it would pass. |
Describe the bug
Evaluation of "Using Plex - [list] Users that watch the show/season/episode" equal to a list is incorrect when more than one value is in the second value list.
To Reproduce
Rule conditions:
Operator: Or
First Value: Plex -[list] Users that watch show/season/episode
Action: Equals
Second Value: Text
Custom Value: ["user1", "user2"]
Expected behavior
Both users should appear in the results from First Value Result. i.e. ["user1","user2"] for it to evaluate to true. Currently, if one appears in the the First Value results, it will evaluate to true.
Screenshots
If applicable, add screenshots to help explain your problem.
Device (please complete the following information):
Additional context
Test media results:
- operator: OR
action: equals
firstValueName: Plex - [list] Users that watch the show/season/episode
firstValue:
- user1
secondValueName: text
secondValue:
- user1
- user2
result: true
Using Contains (Exact list match) as the action yields the same results.
The text was updated successfully, but these errors were encountered: