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

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

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.

@backportbot backportbot bot requested review from artonge, szaimen and nfebe February 3, 2025 16:06
@backportbot backportbot bot added 3. to review Waiting for reviews feature: search labels Feb 3, 2025
@backportbot backportbot bot added this to the Nextcloud 31 milestone Feb 3, 2025
@nfebe nfebe marked this pull request as ready for review February 3, 2025 16:26
@nfebe
Copy link
Contributor

nfebe commented Feb 3, 2025

/compile amend

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]>
@AndyScherzinger AndyScherzinger force-pushed the backport/50592/stable31 branch from 8ff2a32 to c98e9c0 Compare February 3, 2025 18:19
@AndyScherzinger
Copy link
Member

/compile amend

Signed-off-by: nextcloud-command <[email protected]>
@nfebe
Copy link
Contributor

nfebe commented Feb 3, 2025

Hello @AndyScherzinger 😄

EDIT :

Didn't notice you where already here with the "compile amend" sorry for the extra ping and thanks!

@AndyScherzinger AndyScherzinger merged commit 18f8f61 into stable31 Feb 3, 2025
117 of 118 checks passed
@AndyScherzinger AndyScherzinger deleted the backport/50592/stable31 branch February 3, 2025 19:44
@AndyScherzinger
Copy link
Member

@nfebe just wanted to help out 😊

Merged 👍

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.

4 participants