Chat: cannot wait for changes in a file if file for today hasn't been created yet
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 153
- Fork
- 46
- Merge medio
- 1g 8h
- PR unite (30g)
- 7
Descrizione
The long chat system only creates a file for chat in a given day if someone actually sends a message. After it is created, each user of the chat subscribes to web socket events when the file changes.
Anyone opening the chat before the file for today has been created gets an error because it hasn't got a 200 response from the file and so can't look at the headers in that.
But in fact the 404 response does have a Updates-Via: wss://example.com header.
So it needs the rdflib function which looks at the headers at it to also look at 404 responses.
And it needs the server to allow one to watch for a non existent file being created.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia individuando la gestione del file della chat lunga e la funzione di rdflib che legge l’header Updates-Via. Traccia il modo in cui vengono gestite le risposte 404 e le sottoscrizioni websocket, quindi verifica il percorso del server per il monitoraggio di un file che non esiste ancora. Il lavoro è completato quando una chat aperta prima che esista il file di oggi può attendere la sua creazione senza generare un errore.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- api, backend
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100