Skip to content

feat: function search route #326

@hholb

Description

@hholb

We have a couple of places on the frontend where it would be nice to have the ability to search through functions.

On the garden pages, we allow users to add existing functions to gardens:

Image

And for superusers (and maybe other users someday) we have a simple component for selection functions to run benchmarks on:

Image

In both of the cases it is a pain to find a specific function you are looking for. This will become more painful the more functions we have in the database. It would be nice to have a search route for functions similar to the /gardens/search route so we can facilitate a nicer way of finding specific functions on the frontend.

We already have most of the plumbing in place to do a nice function search. We already have a materialized view called modal_function_documents for vectorized full-text search through function metadata that we use when searching gardens. It shouldn't be too much of a lift to add a search route for functions that leverages this view and returns matching functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions