Search bar autocomplete stops working after a model appears in the suggestions
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
search-bar.component.ts の SearchBarComponent.convertToName から始め、ダッシュボードの検索バーに結果を渡す switchMap のサブスクリプションを追跡します。モデルの結果で再現し、モデルの候補に名前が付けられること、また失敗したリクエストや名前を付けられない行によって、次のキー入力で検索できなくならないことを確認します。
索引モデルが issue の本文から書いたものです。
説明
What happened?
Once a model shows up among the dashboard search bar's suggestions, autocomplete stops working for the rest of the session. Later keystrokes never reach the server, and the dropdown stays empty until the page is reloaded.
Root cause. The search bar searches every resource kind (type = null, so resourceType=""). Since #7930 the backend's all-kinds query unions in models, and SearchService.search keeps rows with a model payload. SearchBarComponent.convertToName only names workflows, datasets and files. On a model row it throws Unexpected type in SearchResult.. That throw happens inside the switchMap feeding the search bar's long-lived subscription, and the subscription has no error handler, so the error ends it for good.
Before: type "my" -> results include a model -> convertToName throws -> subscription errors
type anything else -> nothing happens (subscription is closed)
After: type "my" -> model listed by name
a failed request or unnameable row -> no suggestions for that query; the next keystroke still searches
Any HTTP failure on the search request ends the same subscription the same way, because both HTTP interceptors rethrow. That includes a 5xx, a dropped connection, or a 401.
Expected: model hits are listed by name, and one bad response costs only that query's suggestions.
How to reproduce?
- Log in and make sure at least one model you can see matches a keyword, e.g. a model named
my-model. - Type
myinto the dashboard search bar. No suggestions appear, and the browser console logsError: Unexpected type in SearchResult. - Type a keyword that only matches a workflow. Still no suggestions, and no new
dashboard/searchrequest goes out.
Version/Branch
1.4.0-incubating-SNAPSHOT (main)
Commit Hash (Optional)
d102e26978cf0a377992b7d3ded03eaccd5d5c75
What browsers are you seeing the problem on?
No response
Relevant log output
Error: Unexpected type in SearchResult.
at SearchBarComponent.convertToName (search-bar.component.ts)
- 主要言語
- Scala
- スター
- 316
- フォーク
- 189
- 平均マージ
- 4日 23時間
- マージ済み PR(30日)
- 157
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/texera のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
apache/texera#8756 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
apache/texera#8682 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
apache/texera#8674 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
apache/texera#8300 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
go 🏃 testing 🧪
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
valkey-io/valkey-glide#7239 ·
メンテナーはふだん 2 日以内に返信
-
itype:bug stat:needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
com-lihaoyi/mill#7640 ·
メンテナーはふだん 1 日以内に返信
-
Setup dependabotオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
software-mansion/starknet-jvm#631 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
lichess-org/lila#21861 ·
メンテナーはふだん 1 日以内に返信