Skip to content

Improve tag autocomplete with bounded cached search - #2584

Open
niemyjski wants to merge 2 commits into
mainfrom
issue/customer-tag-search
Open

niemyjski wants to merge 2 commits into
mainfrom
issue/customer-tag-search

Conversation

@niemyjski

@niemyjski niemyjski commented Sep 16, 2026

Copy link
Copy Markdown
Member

Tag autocomplete now shows up to 250 organization-wide suggestions and searches beyond the initial set without discarding selected tags. Complete collections filter locally; incomplete collections use literal searches after 300 ms and two characters through the existing count endpoint. The five-minute cache is isolated by organization, session, and search and is independent of dashboard filters and event notifications.

The picker resets search on close for both tags and existing multiselect consumers. Requests use the feature's standard request shape and query-key factory. Authorization, retention, premium checks, and public API contracts are unchanged.

Validation:

  • 797 frontend unit tests, six backend integration tests, and two local browser regressions passed.
  • Browser regressions cover Tag and Project close/reopen, selection retention, debounce, cache reuse, retry, and dashboard-filter request counts.
  • Backend tests verify actual serialized completeness metadata, literal matching, organization isolation, retained history, and premium restrictions.
  • npm run validate passed with zero errors or warnings.

Limits: letter-pair matching handles ordinary mixed case but does not implement full Unicode case folding. A direct local Elasticsearch benchmark with 100,000 synthetic documents, 100,002 distinct tags, three shards, and request caching disabled returned warm median wall times of 4.51 ms for initial suggestions, 4.63 ms for a rare literal match, and 6.80 ms for a broad match (five warm samples each). First requests took 14–24 ms. This isolates aggregation cost; it does not prove API latency or production capacity. Hosted CI is reported separately.

No breaking changes.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 16, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-20T03:27:39.631814Z 04aa8f2 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1079f1c024

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +71 to +73
if (!open) {
debouncedSearch = '';
return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Clear the search text when closing the tag picker

When a user types a query and closes the picker, this branch clears only debouncedSearch; the bound search state retains the query. Reopening the picker therefore immediately filters the suggestions by the previous text and may launch another remote lookup instead of showing the full tag list as it did previously. Reset search when open becomes false.

Useful? React with 👍 / 👎.

@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Complexity Health
Exceptionless.Insulation 37% 35% 286
Exceptionless.Web 85% 70% 8108
Exceptionless.Core 76% 68% 10538
Exceptionless.AppHost 38% 41% 147
Summary 79% (26377 / 33396) 68% (12264 / 18049) 19079

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