twenty icon indicating copy to clipboard operation
twenty copied to clipboard

Add a record search by label identifier

Open lucasbordeau opened this issue 1 year ago • 2 comments
trafficstars

In CommandMenu, we are searching through all workspace objects (company, person, activity, myCustom...). Also si Activity Target relation picker

Right now, we are doing 1 call per entity, which is not efficient if we have many objects.

We want to be able to do one query containing all these objects.

We can leverage record identifiers to auto generate filterInput, and queried fields.

company(filter: name: like %ss%) { id, name } person(filter: name.firstName: like (%ss%) or name.lastName: like (%ss%) { name.firstname, name.lastname }

lucasbordeau avatar Nov 27 '23 12:11 lucasbordeau

use on CommandMenu

charlesBochet avatar Dec 18 '23 13:12 charlesBochet

companies(filter: name: like } { name, domainName } people(filter: firstName...) { name,

charlesBochet avatar Dec 18 '23 13:12 charlesBochet

It seems like #3298 would cover this also. Closing this to keep #3298 as the single issue on that topic

FelixMalfait avatar Jan 25 '24 15:01 FelixMalfait

@FelixMalfait Agreed

lucasbordeau avatar Jan 26 '24 09:01 lucasbordeau