-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
refactor(server): use includeNull
in query for search suggestions
#14626
Conversation
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.
LGTM (minus the broken e2e tests :D)
I think the e2e only worked because there were assets without entries in the exif table at the time of the test. The inner join would mean null isn't one of the options in that case. Since the inner join is good to have regardless, I changed it to just add |
…mmich-app#14626) * use `includeNull` * push down `includeNull` into query, inner joins * remove filter * update sql * fix tests * maybe fix e2e * more e2e tests * handle no exif row * whoops * update sql
Description
Extracted out from the Kysely branch, this PR refactors the search suggestion methods to use the
includeNull
option and empty string filter into the queries themselves and changes the queries to use inner joins.