Describe the bug
The filter functionality does not seem to work as expected. As an admin who created the board, I have granted acces to that board to a specific user group (not the individual members of that group). I have subsequently assigned specific cards to specific users of that group, but when I try to apply a filter I only see the admin and the group name that the users belong to as options to filter on. This problem only appears when using the Android Deck app. Using the desktop/web version the complete list of users shows up.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Self-explanatory
Screenshots
Not available
Smartphone (please complete the following information):
@desperateCoder i think this is a direct consequence of the issue which tobi explained to us about user discoverability?
Might reference https://github.com/stefan-niedermann/nextcloud-deck/issues/415#issuecomment-626688314
Might reference #415 (comment)
Sorry, I did run a search for related keywords before I created this issue, but I have to say that the content of '#415' is too conceptual to hit on my search.
No problem. I want to make sure first, that both issues have the same cause :)
Hi @kbeerepoot, thanks for your report!
I guess we have kind of a feature request here, since i have to admit, that i was completely unaware of groups. At the moment I don't even know how i can gather the needed group information, since the REST-API i am talking to won't tell me yet.
I'll see what i can do about this, but it might take some time, sorry.
Ok, so I dug into the topic of users/groups and thought a bit more on this specific issue. You said, the _users_ (_not_ the groups) are assigned to the cards. This means, the app _does_ know about the users. The problem might be, that the AccessControlLists are written for the group, letting the App think, the users wouldn't have permissions on this card anyways, thus it hides those.
Could you please confirm this theory by doing the following?
If you can filter by the user then, I think I could fix this for you.
Artur,
Indeed, the app does know about the users. This is proven by the fact that it shows the avatar of the user on the card in the app if that card is assigned to that specific user.
If I try to assign that card to an extra user though, the choice list that shows up will only show the owner of the board and the assigned group(s) name(s). But extra names to assign that card to can be searched for manually though, and their avatar will then show up on the card also. That name or those names will still not show up on the filter list though, even if the extra name(s) is/are member(s) of the group that the board is shared with already.
Conform your suggestion I shared the board with a user that was already member of the group that the board was already shared with, and indeed, that user now shows up in the filter list in the app (already did in the web-client) and can be used to filter cards in the app.
I hope that this provides you with the necessary information.
Kees
Yep, this helps a lot! Everything you say sounds like we found the bad guy here. Thanks so far! I'll see what I can do about it now.
@stefan-niedermann we did implement the user search including the debounce, i think for board-ACL? Could we adapt that endpoint to get valid users? I think the group-handling would be server-side, so maybe this solution would work? What do you think?
Shipped in version 1.9.7.
Most helpful comment
Artur,
Indeed, the app does know about the users. This is proven by the fact that it shows the avatar of the user on the card in the app if that card is assigned to that specific user.
If I try to assign that card to an extra user though, the choice list that shows up will only show the owner of the board and the assigned group(s) name(s). But extra names to assign that card to can be searched for manually though, and their avatar will then show up on the card also. That name or those names will still not show up on the filter list though, even if the extra name(s) is/are member(s) of the group that the board is shared with already.
Conform your suggestion I shared the board with a user that was already member of the group that the board was already shared with, and indeed, that user now shows up in the filter list in the app (already did in the web-client) and can be used to filter cards in the app.
I hope that this provides you with the necessary information.
Kees