An edit made just before a page reload never syncs to the server
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
Direzione di ricerca
Start with contentcuration/contentcuration/frontend/shared/data/serverSync.js, especially syncChanges and the changeRevs handling on page load. Trace how unsynced entries in IndexedDB's changesForSyncing are selected, then add the Jest coverage named in the acceptance criteria for an entry absent from changeRevs. Done when that test passes and the issue's reload steps show the change reaching the server within one sync interval without publishing.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Target branch: unstable
Observed behavior
An edit made less than ~2 seconds before reloading the channel editor stays in the browser's IndexedDB changesForSyncing table with no synced flag. After the reload the editor shows the edit, read from IndexedDB, but POST /api/sync/ never sends it.
syncChanges in serverSync.js sends only the revs in the in-memory changeRevs array, and nothing repopulates it on page load. Only forceServerSync, which publishing calls, sends every unsynced change.
Expected behavior
A change left unsynced by a reload reaches the server on the next sync after the page loads.
User-facing consequences
- Collaborators, other tabs and other devices never see the edit.
- The server copy stays stale until the author publishes.
Steps to reproduce
- Open a channel with an exercise and open the exercise's Questions tab in the edit modal.
- Click Edit on a question, type a word into the prompt and click Close.
- Within 2 seconds, reload the page.
- Wait 20 seconds, then open
/api/assessmentitem?contentnode=<exercise node id>:raw_datalacks the typed word. - In DevTools > Application > IndexedDB >
KolibriStudio>changesForSyncing, the change is still there, unsynced.
Context
- #4100 (closed, fixed in #4126) flushes the debounced sync before unload; a reload inside the debounce window still leaves the change unsynced, and nothing sends it afterwards.
- Reproduced on the #6484 branch at c880aca0d6 (Chromium 159, local dev server);
serverSync.jsis identical onunstable.
Acceptance Criteria
- After the steps above, the server's
raw_datacontains the typed word within one sync interval of the reload, without publishing. - A Jest test covers a change present in
changesForSyncingbut not inchangeRevsbeing sent by the next sync.
AI usage
Claude Code found this during automated browser QA of #6484, traced it to serverSync.js and drafted this issue.
- Lingua principale
- JavaScript
- Stelle
- 214
- Fork
- 327
- Merge medio
- 17h 5m
- PR unite (30g)
- 25
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
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.
Altre issue di learningequality/studio
-
Community library status changes don't update `date_updated`Forse già presa @ArpitaSamanta10 l’ha presa 13 giorni fa. Apertacommunity-contribution-in-progress DEV: backend good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
learningequality/studio#6414 · 8 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Activation key can activate a different account whose email differs only in caseForse già presa @Madhu-priya123 l’ha presa 4 giorni fa. ApertaDEV: backend
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
learningequality/studio#6410 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
DEV: backend
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
learningequality/studio#6409 ·
I maintainer di solito rispondono entro 1 giorno
-
DEV: backend
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
learningequality/studio#6407 ·
I maintainer di solito rispondono entro 1 giorno
-
Stripe webhook accepts events when no webhook secret is configuredForse già presa @adibmbrk l’ha presa 14 giorni fa. Apertacommunity-contribution-in-progress DEV: backend good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
learningequality/studio#6404 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di learningequality/studio
Issue simili
-
enhancement good first issue shields parity
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
seuthootDev/terminal-shields#125 ·
I maintainer di solito rispondono entro 2 giorni
-
[ui] 自創球員 (投手): pick 球種 at creation (直球 fixed + up to 2 more), trade-off line, shown on the cardApertaarea:ui P1 status:doing
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
sunososobro-hub/cloudball#1153 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
NuSkooler/enigma-bbs#1241 ·
I maintainer di solito rispondono entro 1 giorno
-
harness seguranca target:staging
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
corosolto/client#1507 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno