[Bug] Saving a quick reply can overwrite saved replies after a storage read failure

Aperta
#92 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@MuhammadFaizan-prog ci sta già lavorando.

Dal 3/12/2026.

  • #93 di @MuhammadFaizan-prog — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

Read the ReplyStorage methods and trace how they handle rejected persistence reads during create, edit, and delete. Reproduce the case with a mocked reader that rejects, then verify mutations report the storage failure and preserve the saved list while a successful empty read still allows creating the first reply. Pull request #93 is already open against this issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What happened?

When the persistence reader fails while loading saved quick replies, creating a new reply can report success and replace the saved list with just the new reply. Edit and delete treat the same failure as a missing reply instead of a storage problem.

Verification

Reproduced on main at fa72dc4 using the real ReplyStorage methods with a mocked persistence reader that rejects. Mutations should report the storage failure and leave the saved list intact. A successful empty read should still allow the first reply to be created.

Lingua principale
TypeScript
Stelle
7
Fork
22
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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 RocketChat/Apps.QuickReplies

Tutte le issue di RocketChat/Apps.QuickReplies

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.