← 输入框|github.com|刷新
Skip to content

web: match network exception search by words - #30

Merged
bbedward merged 1 commit into
masterfrom
unb-384-network-exception-search
Oct 17, 2026
Merged

bbedward merged 1 commit into
masterfrom
unb-384-network-exception-search

Conversation

@bbedward

Copy link
Copy Markdown
Contributor

Root cause

The source and target pickers on System > Settings > Network used cmdk's default filter. It fuzzy-matches the search against the service id plus its team / project / environment path, letter by letter and in order:

  • "natricon" also matched every "Appditto / Natrium / production" service (n-a-t-r-i from Natrium, c-o-n from production), so natricon's Server ended up far down the list.
  • "natrium server" found nothing, because "server" comes before "natrium" in the searched text.

What changed

The pickers filter themselves with searchItems:

  • every word has to appear in the service name or its path, in any order
  • exact name matches come first, then names that start with the search, then names that contain it, then path-only matches

Unit tests cover these searches.

Follow-up to UNB-384.

The service pickers used the default fuzzy filter over the service id and
path, so letters spread across a path matched and word order mattered.
Searching natricon listed Natrium services first and natrium server found
nothing. Every word now has to appear in the name or path, in any order,
and name matches come first.
@bbedward
bbedward merged commit 74ac2bb into master Oct 17, 2026
8 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.

1 participant