Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Search bar autocomplete stops working after a model appears in the suggestions

Abierto Apto para principiantes
#8,700 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
frontend, search

Línea de trabajo

Comienza en SearchBarComponent.convertToName en search-bar.component.ts y sigue la suscripción de switchMap que alimenta la barra de búsqueda del dashboard. Reprodúcelo con un resultado de modelo y verifica que las sugerencias del modelo reciban un nombre y que una solicitud fallida o una fila sin nombre no impida que la siguiente pulsación de tecla inicie una búsqueda.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?
  1. Log in and make sure at least one model you can see matches a keyword, e.g. a model named my-model.
  2. Type my into the dashboard search bar. No suggestions appear, and the browser console logs Error: Unexpected type in SearchResult.
  3. Type a keyword that only matches a workflow. Still no suggestions, and no new dashboard/search request 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)
Lenguaje dominante
Scala
Estrellas
316
Forks
189
Merge medio
4 d 6 h
PR fusionados (30 d)
161

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/texera

Todos los issues de apache/texera

Issues similares

Más issues de Scala

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.