feat(ui): enable partial matching for collection search#5579
Open
stevefulme1 wants to merge 1 commit intoansible:masterfrom
Open
feat(ui): enable partial matching for collection search#5579stevefulme1 wants to merge 1 commit intoansible:masterfrom
stevefulme1 wants to merge 1 commit intoansible:masterfrom
Conversation
Add "Collection name" filter using name__icontains for partial name matching (e.g., typing "sap" matches all SAP-related collections). Change Namespace filter from exact match to namespace__icontains for partial namespace matching. Keywords filter is unchanged as it uses the backend's full-text search. Ref: AAP-67482 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
name__icontainsfor partial name matching — typing "sap" now returns all SAP-related collections (e.g.,community.sap,community.sap_operations, etc.)namespace=X) to partial match (namespace__icontains=X) — typing "cisco" returns all Cisco namespacesProblem
Previously, the Name and Namespace filters required exact matches. A user searching for "sap" in the name field would only find a collection named exactly "sap", missing collections like
sap_hana,sap_operations, etc. This made content discovery unnecessarily difficult.How it works
The Pulp/Django backend supports Django-style field lookups. The frontend now sends:
name__icontains=sapinstead of requiring exact name matchnamespace__icontains=ciscoinstead ofnamespace=ciscoThese are case-insensitive substring matches handled natively by the backend.
Ref: AAP-67482
Test plan
npm run lint:ts)🤖 Generated with Claude Code