BUG: Local government search function producing incomplete results
- Dominant language
- Python
- Stars
- 2
- Forks
- 22
- Avg merge
- 2d 35m
- Merged PRs (30d)
- 11
Description
**Description:**
Local Government search function producing incomplete results
**TO reproduce:**
In TEST environment:
In the Registrations & Renewals Tab:
Status filter: ACTIVE
Searching for "Kelowna" using the top left search bar yields 52 results, with Local Governments:

Clear filters, again, filter by Active status. Then using the Local Government search bar, search by "Kelowna".
Results:

**What is the expected behaviour?:**
when filtering by the Local Government of "Kelowna", we expect to see 49 results instead of 31.
City of West Kelowna 45
City of Kelowna 4
**Who is affected?:**
Examiners
**How does the bug/issue affect your work as an examiner**?:
In production, Salt Spring Island is currently heavily monitored by the Registry team due to PR issues with the system. We need to be able to show all files under a certain local government to do our audits
## Acceptance Criteria
> Generated by [Zenhub AI](https://www.zenhub.com/ai)
### Acceptance Criteria
- [ ] **Scenario: Searching for a Local Government using a partial name match**
- Given I am on the "Registrations & Renewals" tab
- And the "Status" filter is set to "ACTIVE"
- When I enter "Kelowna" into the Local Government search bar
- Then I should see a total of 49 results
- And the results must include both "City of West Kelowna" (45) and "City of Kelowna" (4)
- [ ] **Scenario: Consistency between General Search and Local Government Search**
- Given I am on the "Registrations & Renewals" tab
- And the "Status" filter is set to "ACTIVE"
- When I perform a search in the Local Government search bar
- Then the results should match the count and data of the Local Government records identified by the top-left general search bar for the same keyword
- [ ] **Scenario: Search accuracy for audit-critical locations**
- Given I am an Examiner on the "Registrations & Renewals" tab
- When I search for "Salt Spring Island" in the Local Government search bar
- Then the system must return all existing files associated with that Local Government to ensure audit completeness
- [ ] **Scenario: Clearing and re-applying filters**
- Given I have performed a search for a Local Government
- When I clear the filters and re-apply the "ACTIVE" status and the same Local Government search term
- Then the search results should remain consistent and complete (e.g., 49 results for Kelowna)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.