nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.52k stars 4.08k forks source link

Filter does not survive the change to a subdirectory #47251

Open devnull4242 opened 3 months ago

devnull4242 commented 3 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

I set the filter e.g. to "folder" and "PDFs" and hope that i can navigate to subfolders to find only PDFs.

Steps to reproduce

  1. Nextcloud 30 RC 1
  2. set filter to e.g. "folder" and "PDFs"
  3. filter is set
  4. change to subfolder
  5. filter is unset

Expected behavior

After change to subfolder the filter is not unset but set to e.g. "folder" and "PDFs".

2024-08-15 07_34_59-Window

Installation method

Community Manual installation with Archive

Nextcloud Server version

master

Operating system

Other

PHP engine version

None

Web server

Other

Database engine version

Other

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 28 to 29)

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

susnux commented 3 months ago

This is done by design.

CC @sorbaugh @jancborchardt should we maybe only reset when changing the view?

sorbaugh commented 3 months ago

Resetting filters only when changing the view sounds good to me. @susnux would there be any potential pitfalls? But yeah, waiting also for @jancborchardt 's input.

susnux commented 3 months ago

would there be any potential pitfalls?

We had bug reports in the past that wanted to reset the search on navigation. Thats why we reset the filters when changing the directory. But now with the filters it might make sense to keep it active e.g. if you want to check also sub-directories for your search.

jancborchardt commented 3 months ago

Yes, agree with the bug report and to keep the filter active when doing simple folder navigation.