mi
MicroZen
Hobby
mi
Pipelines
Nx runs
Insights
Compare tasks
Analytics
Sign in
Toggle Sidebar
mi
MicroZen
Pipelines
fix(clients): search GetManyClients by SearchTerm not whole request The name filter in GetManyClients interpolated the entire ManyClientsRequest message into the ILike pattern ($"%{request}%"), so every search compared client names against the protobuf debug string and returned nothing. Filter on request.SearchTerm instead. Replace the Npgsql-only EF.Functions.ILike with a provider-agnostic, case-insensitive predicate (c.Name.ToLower().Contains(term.ToLower())) so the fix is covered by a unit test under the EF Core InMemory provider without requiring PostgreSQL (AGENTS.md forbids it). Behavior is identical on Postgres: Npgsql translates ToLower()/Contains() to SQL LOWER()/strpos. Null or empty search term matches all clients of the type (guarded). Adds InMemory tests: matching term returns the right clients, case-insensitive match, non-matching term returns none, empty and null terms return all. The test csproj aliases the transitive MicroZen.OAuth2 assembly to resolve the duplicate MicroZen.Grpc.V1 types it compiles from the shared proto. Scope: search filter only; paging is #51 on a separate branch. Closes #50
nx affected -t lint test build
⌘K
fix(clients): search GetManyClients by SearchTerm not whole request
Succeeded
in
39s
Started
Linux
4 CPU cores
read
access token used
Copy command
nx affected -t lint test build
88
8cca294
GitHub
Open on GitHub
Tasks
Resource Usage
mi
MicroZen
Hobby