tables icon indicating copy to clipboard operation
tables copied to clipboard

Can't select "Me (user ID)" in a filter on a "Users and groups" column

Open manisvart opened this issue 11 months ago • 1 comments

Steps to reproduce

  1. Create a table with a "Users and groups" column that doesn't allow multiple values
  2. Create a view and add "New filter group"
  3. Add the "Users and groups" column from step 1
  4. Add Operator "is equal"
  5. Select the drop down for "Search Value". It's empty.

If you select a Text column and "is equal" the "Search Value" contains "Me (user ID)" and "Me (name)".

Nextcloud Hub 9 (30.0.5) and all apps updated

Expected behavior

My expectation is that I can filter a list on the rows that are mine or assigned to me since my user ID has been selected in the "Users and groups" column when the row was created or edited.

The "Search Value" should contain "Me (user ID)" for a "Users and groups" column.

Actual behavior

The drop down for "Search Value" is empty for a "Users and groups" column.

Tables app version

0.8.3

Browser

Multiple

Client operating system

MacOS 15.2

Operating system

Rocky 9

Web server

Nginx

PHP engine version

PHP 8.2

Database

MariaDB

Additional info

No response

manisvart avatar Jan 18 '25 08:01 manisvart

Sorry have not read properly your bug . I think it is set here #1251

Aveyron-RetD avatar Jan 24 '25 12:01 Aveyron-RetD

I confirm the bug report on all of our instances.

Workaround: You can construct the filter in the database manually. Setting tables_views.filter of the matching view to

[[{"columnId":42,"operator":"is-equal","value":"@me"}]]

That is of course no solution for the general user. But we can restrict the problem, that it is an issue of the web frontend.

MaykGyver avatar Mar 06 '25 07:03 MaykGyver

@MaykGyver is there a way to do that without modifying the database manually ?

Aveyron-RetD avatar Mar 19 '25 08:03 Aveyron-RetD

That's the issue.


From: Aveyron-RetD @.> Sent: Wednesday, March 19, 2025 9:53:10 AM To: nextcloud/tables @.> Cc: MaykGyver @.>; Mention @.> Subject: Re: [nextcloud/tables] Can't select "Me (user ID)" in a filter on a "Users and groups" column (Issue #1547)

@MaykGyverhttps://github.com/MaykGyver is there a way to do that without modifying the database manually ?

— Reply to this email directly, view it on GitHubhttps://github.com/nextcloud/tables/issues/1547#issuecomment-2735778173, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZJL76JX24AN737FBJKESWD2VEV7NAVCNFSM6AAAAABVNLBXIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZVG43TQMJXGM. You are receiving this because you were mentioned.Message ID: @.***>

[Aveyron-RetD]Aveyron-RetD left a comment (nextcloud/tables#1547)https://github.com/nextcloud/tables/issues/1547#issuecomment-2735778173

@MaykGyverhttps://github.com/MaykGyver is there a way to do that without modifying the database manually ?

— Reply to this email directly, view it on GitHubhttps://github.com/nextcloud/tables/issues/1547#issuecomment-2735778173, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZJL76JX24AN737FBJKESWD2VEV7NAVCNFSM6AAAAABVNLBXIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZVG43TQMJXGM. You are receiving this because you were mentioned.Message ID: @.***>

MaykGyver avatar Mar 19 '25 09:03 MaykGyver

Same problem here. I cannot even search for my user in the Search field when assigning a user. I think it's the same frontend bug: The search does not show my own account/user.

It's problematic because i cannot assign columns to myself. A workaround would be to create a second account and select my account from this account.

isntfunny avatar Mar 20 '25 07:03 isntfunny

As a workaround, I use another (admin) account to do so. But this is fairly annoying.

thom4parisot avatar Mar 20 '25 10:03 thom4parisot

This issue might be happening on any "user search input" in the whole Frontend, so a nextcloud bug and no tables big it seems like?

isntfunny avatar Mar 20 '25 10:03 isntfunny

Careful the bug for the self is different and is tracked here, see below. In here in the bug is about that there is no way to filter by a user like in the creator filter. I believe this would be the most useful filter in the tables app.

[+]it's a known bug #1355 [/+] [+]it's followed here https://github.com/nextcloud/server/issues/48180

Aveyron-RetD avatar Mar 20 '25 10:03 Aveyron-RetD

Careful the bug for the self is different and is tracked here, see below. In here in the bug is about that there is no way to filter by a user like in the creator filter. I believe this would be the most useful filter in the tables app.

[+]it's a known bug #1355 [/+] [+]it's followed here https://github.com/nextcloud/server/issues/48180

You're right, I mixed things up because they are a bit similar.

isntfunny avatar Mar 20 '25 11:03 isntfunny

Not a bug, but a feature request. I intentionally did not add this during the initial User/Group column implementation.

enjeck avatar Apr 01 '25 14:04 enjeck