Skip to content

Release: Solr changes to Main for Test Deployment - #878

Merged
Oluwapizzy merged 3 commits into
mainfrom
feature-solr-merged
Jul 15, 2026
Merged

Release: Solr changes to Main for Test Deployment#878
Oluwapizzy merged 3 commits into
mainfrom
feature-solr-merged

Conversation

@Oluwapizzy

Copy link
Copy Markdown
Collaborator

SUMMARY

This PR promotes the Solr changes from feature-solr-merged into main as part of the planned Solr release to TEST.

Release Context
*Source branch: feature-solr-merged
*Target branch: main
*Target environment: TEST
*Release scope: Multi-repo Solr promotion
*Deployment workflow: Merge to main, then workflow/pipeline deploys to TEST

Validation Plan
After merge and TEST deployment, validation will include:
Confirming the deployment workflow completed
Validating known Solr search scenarios
Documenting any issues or follow-up actions

Post-Merge
Once the PR is approved/merged into main, the workflow/pipeline should deploy the changes to TEST.

Related Issues:
bcgov/entity#34016

When authenticated (IDIR/BCeID/BCSC), the BusinessLookup component is used
instead of BusinessFetch. While BusinessFetch had the magnifying glass wired
to trigger search, BusinessLookup did not. This made the icon appear
non-functional for all authenticated users in both DEV and TEST environments.

Changes:
- Wire @click:append event to call onMagnifyClick() handler
- Add async onMagnifyClick() method that performs immediate (non-debounced) search
- Validates minimum 3 characters before executing search
- Reuses existing BusinessLookupServices.search() with proper auth headers

The immediate search (no 600ms debounce) provides better UX when using the
magnifying glass, while the character validation ensures safe searches.

Works for all authentication methods (IDIR, BCeID, BCSC) via shared Keycloak
interceptors and axios auth headers.
…ed users

Fixed magnifying glass icon functionality when using BusinessLookup component
(used for authenticated users). The icon was previously non-functional due to
v-model binding issues and #append slot conflicts.

Changes:
- Fixed Vue 2 compatibility: Changed v-model:search-input to :search-input.sync
- Moved magnifying glass icon from append-icon prop to explicit v-icon in slot
- Added click handler with proper event binding (.stop to prevent propagation)
- Added CSS styling to make icon cursor:pointer and interactive
- Implemented dual-mode search: business numbers (BC1234567) and company names (3+ chars)
- Added input validation with user-friendly error messages
- Both debounced input (600ms) and immediate magnifying glass click work now
- Case-insensitive: Accepts lowercase, converts to uppercase for API

The magnifying glass now provides immediate search (no debounce) while the
input field uses 600ms debounce for auto-search as user types.
#34016 fix: Enable magnifying glass search in BusinessLookup for authenticated users
@Oluwapizzy
Oluwapizzy merged commit d77f9e7 into main Jul 15, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants