Search functionality not handling spaces and not working as per PRD (Village-level scoping & escalation missing)

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: High
    • 2.3
    • Affects Version/s: None
    • None

      Search functionality is not working correctly in multiple scenarios and is also not aligned with PRD requirements:

      1. 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
      2. 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

      1. Login to the application
      2. Navigate to All Beneficiaries
      3. Ensure a village is selected
      4. Search for a valid beneficiary name (e.g., Sumeet)
      5. Observe results
      6. Add a space in search input or type full name
      7. Observe results again
      8. 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

       

              Assignee:
              Ashutosh Gupta
              Reporter:
              Nidhi Saini
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: