An edit made just before a page reload never syncs to the server
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
❌ 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.
- Ngôn ngữ chính
- JavaScript
- Star
- 214
- Fork
- 327
- Merge trung bình
- 17 giờ 5 phút
- Pull request đã merge (30 ngày)
- 25
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của learningequality/studio
-
Community library status changes don't update `date_updated`Có thể đã có người làm @ArpitaSamanta10 đã nhận 13 ngày trước. Đang mởcommunity-contribution-in-progress DEV: backend good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
learningequality/studio#6414 · 8 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Activation key can activate a different account whose email differs only in caseCó thể đã có người làm @Madhu-priya123 đã nhận 4 ngày trước. Đang mởDEV: backend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
learningequality/studio#6410 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DEV: backend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
learningequality/studio#6409 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DEV: backend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
learningequality/studio#6407 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Stripe webhook accepts events when no webhook secret is configuredCó thể đã có người làm @adibmbrk đã nhận 14 ngày trước. Đang mởcommunity-contribution-in-progress DEV: backend good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
learningequality/studio#6404 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của learningequality/studio
Issue tương tự
-
enhancement good first issue shields parity
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
seuthootDev/terminal-shields#125 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[ui] 自創球員 (投手): pick 球種 at creation (直球 fixed + up to 2 more), trade-off line, shown on the cardĐang mởarea:ui P1 status:doing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
sunososobro-hub/cloudball#1153 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NuSkooler/enigma-bbs#1241 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
harness seguranca target:staging
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
corosolto/client#1507 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày