Bug Report
Reported by: @Maya-chen (Sales Ops)
When using the lead list search, filtering by a rep's name like "John" returns zero results even though leads named "John Smith" clearly exist in the system.
Steps to reproduce:
- Create a lead with
first_name="John", last_name="Smith"
GET /api/leads/?name=John
- Expected: lead appears in results
- Actual: empty list
Root cause hint: The filtering logic in the list view may be using the wrong boolean operator when combining first/last name conditions.
Acceptance criteria:
GET /api/leads/?name=John returns all leads where either first name OR last name contains "John"
- Add or update a test asserting the correct results for a partial-name search
- Existing tests should continue to pass
Bug Report
Reported by: @Maya-chen (Sales Ops)
When using the lead list search, filtering by a rep's name like
"John"returns zero results even though leads named "John Smith" clearly exist in the system.Steps to reproduce:
first_name="John",last_name="Smith"GET /api/leads/?name=JohnRoot cause hint: The filtering logic in the list view may be using the wrong boolean operator when combining first/last name conditions.
Acceptance criteria:
GET /api/leads/?name=Johnreturns all leads where either first name OR last name contains "John"