-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
High
-
Affects Version/s: None
-
None
Search functionality is not working correctly in multiple scenarios and is also not aligned with PRD requirements:
- Whitespace Handling Issue
- Search works when typing a name (e.g., Kian or Sumeet)
- Adding a space (e.g., Kian ␣ or full name with space) returns “No Records Found” even when data exists
- PRD Non-Compliance (Search Scope Issue)
As per PRD:
-
- Search should default to Village-level (selected village)
- If no results are found, system should provide an option to expand search to Block level (camp host village)
Current Behavior:
-
- Search is not properly returning results even within the same village
- No option to expand search scope to Block level is provided
- Even valid data (e.g., “Sumeet”) is not returned consistently
Steps to Reproduce
- Login to the application
- Navigate to All Beneficiaries
- Ensure a village is selected
- Search for a valid beneficiary name (e.g., Sumeet)
- Observe results
- Add a space in search input or type full name
- Observe results again
- Try searching for data that exists in another village
Expected Result
- Search should:
- Handle leading/trailing spaces correctly
- Work for full names with spaces
- Return correct results within the selected village
- If no result found → provide option to expand search to Block level (as per PRD)
Actual Result
- Search fails when space is added
- Valid records are not displayed
- Search results are inconsistent even within village
- No option to expand search scope to Block level
