WebSocket text messages push empty heard[] until page refresh
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 42/100
Línea de trabajo
Start with TextMessageWSSerializer in Meshflow/ws/serializers.py and its get_heard(), then the notifier in Meshflow/ws/services/text_message.py, comparing against get_heard() in Meshflow/text_messages/serializers.py. The Meshtastic path reads prefetched_observations while MeshCore rows use original_mc_packet and MeshCorePacketObservation. Done when a live WS message shows the correct heard count for both packet types, checked against text_messages/tests/test_heard_api.py.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Type: bug | Area: WebSocket / text messages / heard
Problem
When viewing a message channel and a new message arrives over the WebSocket (live prepend), the message card shows 0 heard and does not update until a full page refresh. After refresh, REST list returns the correct heard count.
Reproduced on the messages page while staying on the active channel (message appears in the list in realtime, but heard count is wrong).
Likely cause
TextMessageWebSocketNotifier serializes via TextMessageWSSerializer.get_heard(), which only populates observations when original_packet.prefetched_observations exists (Meshtastic MessagePacket path). Otherwise it returns [].
MeshCore rows use original_mc_packet + MeshCorePacketObservation; REST TextMessageSerializer.get_heard() handles both — WS path does not mirror that yet. Notifier also does not prefetch observations at notify time.
Code: Meshflow/ws/serializers.py (TextMessageWSSerializer), Meshflow/ws/services/text_message.py, compare Meshflow/text_messages/serializers.py (get_heard).
Acceptance criteria
- Live WS message on the active channel shows correct heard count (≥1 when feeders observed it) without refresh.
- MT and MC messages both behave consistently with REST list/detail.
- Optional: opening heard dialog from a WS-only row shows observers (or explicit empty state if truly none).
Related
- UI displays
message.heard.lengthinMessageItem(meshflow-ui). - Unread/badge work: meshflow-ui#279, meshflow-api#397.
- MC heard API:
text_messages/tests/test_heard_api.py.
- Lenguaje dominante
- Python
- Estrellas
- 1
- Forks
- 0
- Merge medio
- 1 d 10 h
- PR fusionados (30 d)
- 8
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pskillen/meshflow-api
-
enhancement meshtastic-2.8
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
pskillen/meshflow-api#459 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 73/100
pskillen/meshflow-api#472 ·
Los mantenedores suelen responder en 1 día
-
enhancement meshtastic-2.8
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
pskillen/meshflow-api#464 ·
Los mantenedores suelen responder en 1 día
-
enhancement meshtastic-2.8
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
pskillen/meshflow-api#463 ·
Los mantenedores suelen responder en 1 día
-
[2.8] Handle missing rxTimeAbiertoenhancement meshtastic-2.8
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
pskillen/meshflow-api#462 ·
Los mantenedores suelen responder en 1 día
Todos los issues de pskillen/meshflow-api
Issues similares
-
bump patch
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
autowarefoundation/autoware_carla_scenario#1321 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
QuantConnect/Documentation#2838 ·
Los mantenedores suelen responder en 1 día
-
get_all_subclasses must deduplicate by class identityPosiblemente ocupada @Gambit-Checkmate la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 15 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
awslabs/route53-dynamic-dns-with-lambda#67 · 1 comentario ·