eclipse-apoapsis / ort-server

A scalable server implementation of the OSS Review Toolkit.
Apache License 2.0
14 stars 6 forks source link

Allow searching for resources by name #595

Open mmurto opened 1 week ago

mmurto commented 1 week ago

A searchbox in the header to search for organizations, products and other resource would be great! This requires API support for search, which can be done in several ways:

  1. Allow get all endpoints for organizations, products and repos to be filtered with strings in their names/descriptions/etc. The searchbox would then query all these endpoints to get the combined search result.
  2. Add a dedicated search endpoint to return matches for all resources.
  3. Add a separate service (like Meilisearch) for searching the resources. This can get quite complex as data and permissions need to be synced and the service deployed and maintained.

I'd say it makes sense to start with option 1 as the filtering is required anyway for table filtering. If it starts being too slow or heavy on the API, the other options can be considered.

sschuberth commented 1 week ago

3. Add a separate service (like Meilisearch)

Heh, Rust of course 😉