Submission view breaks when a task's type was changed after submissions were made

Chiusa
#2,656 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@rfontanarosa ci sta già lavorando.

Dal 9/11/2026.

  • #2657 di @rfontanarosa — integrata

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

type: bug

Problem

Task types can be changed again (even on published surveys). Existing
submissions keep the result recorded under the old type, so the submission
panel can receive a value the current task type can't render: a selection on
a task that is now a date, a date on a task that is now a text, and so on.
The type-specific views assume the value matches the task type and fail on
the mismatch (e.g. calling toLocaleDateString() on a string).

Expected

The submission panel never fails because of the type of a stored result.
When the result doesn't match the current task type, it is shown as readable
text.

Image
Lingua principale
TypeScript
Stelle
254
Fork
114
Merge medio
2g 3h
PR unite (30g)
20

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di google/ground-platform

Tutte le issue di google/ground-platform

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.