eclipse-ditto / ditto

Eclipse Ditto™: Digital Twin framework of Eclipse IoT - main repository
https://eclipse.dev/ditto/
Eclipse Public License 2.0
689 stars 225 forks source link

Enhance Ditto UI search slot with selection of namespaces to search in #1654

Open thjaeckle opened 1 year ago

thjaeckle commented 1 year ago

The current "search slot" when browsing for all things in the Ditto Explorer UI does not provide the option to define the namespace(s) to search in. The API provides this as a separate query parameter namespaces (comma separated list of namespaces to search in): https://www.eclipse.org/ditto/http-api-doc.html#/Things-Search/get_api_2_search_things

It would be great to make the namespaces to search in selectable. The "environment" already supports to configure searchNamespaces - maybe just list all of those in a kind of "multi select" component to quickly add/remove namespaces to search in.

@thfries what do you think about this? Does it make sense?

thfries commented 1 year ago

Hi @thjaeckle, yes, if you have multiple namespaces configured on an environment that makes sense to select here. But I thought a namespace is rather for separating bigger scopes (like a tenant) and not for very fine grained separation where you switch frequently back and forth. So my assumption was, that you configure one or two namespaces per environment and use rather different environments for different namespaces. So if you say you have the need to frequently switch between namespaces, this could be easily done. The only concern that might get more complex over time: we may need to extend the saved favorite filters (that should include the namespace, too. In future, separate columns and sorting per saved filter might make sense too :-) )

thjaeckle commented 1 year ago

We are using namespace for eg categorizing different types of entities, eg "devices", "rooms", "buildings" being part of the namespace.

A tenant can also be part of the very same namespace.