-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
fix: unified search provider id #50550
Conversation
/compile amend |
f132a11
to
f70c929
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would look into this asap
cbeee9f
to
86d282b
Compare
@nfebe your commit broker this again. You can not just make up your own provider id, the id is being sent as 'dav-contacts' which is not valid. What issue are you trying to solve maybe I can help you find a proper solution? |
Sorry, I converted it to WIP, it's not supposed to use that there a corresponding frontend change which I am adjusting. |
86d282b
to
f70c929
Compare
67ed0d4
to
f4516d2
Compare
Sure, I added a I have added a commit that restores full function with apps like dav while still having in-folder search working as expected. TODO:
|
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
f4516d2
to
32752f0
Compare
32752f0
to
b4338cf
Compare
/compile amend |
The client-side plugin `in-folder` uses the `files` provider, this makes it overlap with the main files provider itself. This change follows eecda06 after it was discovered that some apps/providers like `dav` use providers from another app like `contacts` Signed-off-by: nfebe <fenn25.fn@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
b4338cf
to
8863b85
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminds me of #47523 😞
I really dislike when this kind of mess comes to haunt us back way later.
It works almost fine because in most cases it works, but we don't test good enough for "edge cases" (which aren't really edge cases tbh because it's just standard behavior).
/backport to stable31 |
/backport to stable30 |
Issue
Unified Search not searching dav properly
Unified search backend use the provider id to match providers but the front end was using the app id.
This works fine for most search providers as the app id and provider id are the same in most cases (e.g files app; app id is 'files', search provider id is 'files') but in other cases like dav this breaks (e.g. dav app; app id is 'dav' but search provider is 'contacts or events')
Also using the app id is not a good choice as one app can have multiple providers registered (e.g. dav has Contacts, Events and Tasks search)
Resolution
Modify front end to use provider id instead of app id
Checklist