You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think group filter does not work well. Because when I select more than groups it does not show any user.
I selected admins it showed 1 user and then I also selected moderators but it show 0 users. My expectation is that when both are selected, the admin user will be listed even if there is no moderator. Filter use AND operator instead of OR.
Bug Report
Current Behavior
A clear and concise description of the behavior.
Steps to Reproduce
Go to 'user directory page'
Click on 'Filter Group'
Select one group then another groups
when I select more than groups it does not show any user if user is not member of both groups.
Expected Behavior
when both are selected, the admin user will be listed even if there is no moderator. Filter use AND operator instead of OR.
Screenshots
If applicable, add screenshots to help explain your problem.
The search filter in FoF User Directory maps each criteria to its own token in the q search query, which Flarum automatically translates into an AND query.
I personally think the current implementation makes sense, so I wouldn't want to remove the ability to perform AND queries. But I'm not sure how to accommodate having both AND and OR queries, this would make the UI very complicated.
Another problem is that the javascript search type interface currently used to create custom search properties just doesn't support gambits with multiple criteria, it always matches one item to one gambit/token, with no way to group multiple ones. So that would require some significant refactor.
I'm not sure if there are any other extensions extending the available search filters.
A workaround to achieve the filtering you want without changing how the extension works would be to manually type the group:group1,group2 in the search query. I think it will work fine. If this breaks the UI, we can publish a simple fix to make sure multi-criteria gambits aren't parsed by the filter system.
I think group filter does not work well. Because when I select more than groups it does not show any user.
I selected admins it showed 1 user and then I also selected moderators but it show 0 users. My expectation is that when both are selected, the admin user will be listed even if there is no moderator. Filter use AND operator instead of OR.
Bug Report
Current Behavior
A clear and concise description of the behavior.
Steps to Reproduce
Expected Behavior
when both are selected, the admin user will be listed even if there is no moderator. Filter use AND operator instead of OR.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Possible solution(s)
We should filter with OR operator instead of AND
The text was updated successfully, but these errors were encountered: