Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable30] fix(unified-search): filteredProviders now inherits all provider props #50631

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Feb 3, 2025

Backport of #50592

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Remove all the empty commits

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

The main providers come from both the backend and client side plugins such as `in-folder` search.
The main providers may carry callbacks functions and other information that should be passed to the `filteredProviders`.
This is important because the current code does not make a distinction between `filteredProviders` and `providers`
rightly so, becuase they are the same thing!

Without the mentioned distinction above, sooner or later, we try to access a property on the `filteredProviders` which we
did not transfer with the manual property copy.

----

This fix prevents in-folder search from searching everywhere when "load more results" is clicked; Essentially ignoring the in-folder
search filter.

Signed-off-by: nfebe <[email protected]>
@backportbot backportbot bot requested review from artonge, szaimen and nfebe February 3, 2025 16:04
@backportbot backportbot bot added 3. to review Waiting for reviews feature: search labels Feb 3, 2025
@backportbot backportbot bot added this to the Nextcloud 30.0.6 milestone Feb 3, 2025
@nfebe
Copy link
Contributor

nfebe commented Feb 3, 2025

/compile amend

@nfebe nfebe marked this pull request as ready for review February 3, 2025 16:29
@nfebe nfebe enabled auto-merge February 3, 2025 16:29
Signed-off-by: nextcloud-command <[email protected]>
@nfebe nfebe merged commit 82470ce into stable30 Feb 3, 2025
113 checks passed
@nfebe nfebe deleted the backport/50592/stable30 branch February 3, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants