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).
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).