tables icon indicating copy to clipboard operation
tables copied to clipboard

Filters on non meta columns don't work in views

Open henryherkula opened this issue 2 years ago • 11 comments

Steps to reproduce

  1. Create new to-do list table
  2. Filter on progress (is working)
  3. Create view from filter
  4. Filtered view is empty

Expected behavior

Rows should be filtered by the filter settings in the view.

Actual behavior

No rows are shown.

Screenshot 2023-11-16 144413 Screenshot 2023-11-16 144334

Tables app version

0.6.3

Browser

Firefox 119.0.1

Client operating system

Windows 10

Operating system

FreeBSD 13.1-RELEASE-p7 amd64

Web server

Nginx

PHP engine version

PHP 8.2

Database

MySQL

Additional info

  • no errors in the console

henryherkula avatar Nov 16 '23 13:11 henryherkula

Do you use the template to create the table? If I follow your steps to reproduce, it works for me.

datenangebot avatar Nov 17 '23 10:11 datenangebot

Yes, I did use the template. I am not sure why it is not working. Filters on the meta columns are working as intended. :/

henryherkula avatar Nov 17 '23 14:11 henryherkula

It's not working for me either. None of the views filters is working.

tbousiou avatar Nov 18 '23 08:11 tbousiou

Okay, interesting 😬

What about the logs. Is there anything from tables in the nextcloud log or in the browser console?

datenangebot avatar Nov 24 '23 14:11 datenangebot

Nope, nothing in the console and nothing in the log. The meta filters like ID or creation date are working fine. Maybe it is a conflict with a library or a the specific PHP version. I am not sure. :/ Still a problem in 0.6.4

henryherkula avatar Nov 24 '23 17:11 henryherkula

I noticed that the bug appears on two servers i use that both have mysql as a database server. On my local install where i use mariadb the bug does not appear.

I just confirmed this by installing two clean installations of nextcloud one with mysql and the other with mariadb all with latest versions. Mysql has the bug, mariadb works fine.

tbousiou avatar Nov 24 '23 18:11 tbousiou

Could reproduce, mariadb works, mysql is not working. Installed mariadb as a fix for myself.

henryherkula avatar Dec 18 '23 19:12 henryherkula

Could reproduce, mariadb works, mysql is not working. Installed mariadb as a fix for myself.

If this is the case then it's a strange bug, as far as I know apps in nextcloud are database agnostic.

I want to add that the sorting filters don't work as well.

tbousiou avatar Dec 21 '23 11:12 tbousiou

Same problem on two installtions. MySQL is used.

Filter on base table column work: Bildschirmfoto 2024-02-29 um 06 26 28

Same filter in view edit doesen't work: Bildschirmfoto 2024-02-29 um 06 34 45 I have noticed that after selecting a line in the dropdown, the cursor jumps a few spaces backwards in the text line.

koebi80 avatar Feb 29 '24 05:02 koebi80

HI, for me SORTING on meta columns does not work. In my case I want to sort by last edited, but it does not do it. - I think this is the same issue as in this ticket, therefore i did not create a new ticket.

xbluemonkx avatar Jul 07 '24 05:07 xbluemonkx