absmach / magistrala

Industrial IoT Messaging and Device Management Platform
https://www.abstractmachines.fr/magistrala.html
Apache License 2.0
2.42k stars 665 forks source link

Improve search for Users, Things, Channels, and Groups #2287

Open dborovcanin opened 2 weeks ago

dborovcanin commented 2 weeks ago

We need to enable backend support for filtering by name. In the initial implementation here https://github.com/absmach/magistrala/blob/3355332ebdcc8bfd0b35ef8915a3734462f40a3f/pkg/clients/postgres/clients.go#L194 we return id, name, creation and update time, but we need only id and name. Let's also rename to SearchBasicInfo or something similar to avoid association with List (RetrieveAll) operations. We also need it across different services for Thing and Channels (when assigning to Channel or filtering Things on the UI, for example).