Skip to content

hackathon - search/notebook: basic notebooks query

Administrator requested to merge notebooks-search-e2e-with-query into notebooks-search

Created by: bobheadxi

This is a hackathon project, and is not being merged into main! See https://sourcegraph.com/notebooks/Tm90ZWJvb2s6NTE5

Implements a basic end-to-end query that searches the full "notebook name" (namespace + title) with a simple ILIKE query. The query emulates how normal search works by replacing spaces with wildcards so you can be pretty loose with your query.

Sharing code with enterprise/.../notebooks: we could possibly refactor this so that it lives in the same store as other notebooks stuff, but register it as the handler for the notebook search job from an init function. That said it makes sense, perhaps, to have the DB queries live here so that we can specialize it for search. It would be nice to share the permissions filter at least, however - not sure where this would live.

Stacked on https://github.com/sourcegraph/sourcegraph/pull/33161

https://user-images.githubusercontent.com/23356519/160510622-883ff248-809d-46dd-b9a9-8107dd41fe4b.mp4

Merge request reports

Loading