Video: course-side title override of a library-synced Video is lost on sync (editor_saved doesn't call super)
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
- 75/100
Direzione di ricerca
Start with xblock_video.block.VideoBlock.editor_saved() and compare it with cms.lib.xblock.upstream_sync.UpstreamSyncMixin.editor_saved(); the issue says the built-in video block has the same override. Find the Video tests covering editor saves and downstream sync, then add coverage showing a customized display_name survives an accepted library update. Done when that test passes and the video save still calls VideoConfigService.handle_editor_saved(...).
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
For a Video reused from a Content Library V2 into a course, a course-side title override is overwritten by the next sync from the library. The same flow keeps the override for HTML, Word Cloud, LTI and Problem.
Steps to reproduce
Found while smoke-testing openedx/openedx-platform#38750 on a local Tutor nightly (platform master base + xblocks-core 2.0.0):
- Publish a Video in a V2 library and reuse it in a course unit (Library content).
- In the course, change the reused copy's display name to "Course override".
- In the library, rename the video and publish.
- Accept the update in the course (
POST /api/contentstore/v2/downstreams/<usage>/sync).
Expected: "Course override" is kept (display_name is customizable by default).
Actual: the title becomes the library's new name.
Cause
The platform mixes cms.lib.xblock.upstream_sync.UpstreamSyncMixin into every XBlock (XBLOCK_MIXINS). Its editor_saved() records customized fields in downstream_customized. xblock_video.block.VideoBlock.editor_saved() overrides it and only calls VideoConfigService.handle_editor_saved(...), never super().editor_saved(...). So for a mixed Video class, editor_saved resolves to VideoBlock.editor_saved, and the override is never recorded. For HTML it resolves to UpstreamSyncMixin.editor_saved (checked in a CMS shell).
This predates the extraction: the built-in xmodule/video_block/video_block.py::editor_saved is identical.
Suggested fix
Call super().editor_saved(user, old_metadata, old_content) from VideoBlock.editor_saved (when the parent defines it), plus a test that a customized display_name survives a sync.
| Generated using Claude Code
- Lingua principale
- JavaScript
- Stelle
- 0
- Fork
- 19
- Merge medio
- 8h
- PR unite (30g)
- 7
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un 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 openedx/xblocks-core
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 84/100
openedx/xblocks-core#305 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 43/100
openedx/xblocks-core#332 ·
I maintainer di solito rispondono entro 1 giorno
-
Annotatable: newly created empty block in a Content Library V2 fails to render (XMLSyntaxError: Document is empty)Forse già presa @irfanuddinahmad l’ha presa 5 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
openedx/xblocks-core#323 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
ChoiceTextResponse: a submission that omits a required numtolerance_input key is graded correctAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
openedx/xblocks-core#306 ·
I maintainer di solito rispondono entro 1 giorno
-
WCAG - Question Content Not Programmatically Associated With Answer ChoicesForse di nuovo libera @jesusbalderramawgu l’ha presa 66 giorni fa e non c’è nessuna pull request aperta. Aperta
openedx/xblocks-core#300 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di openedx/xblocks-core
Issue simili
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
enhancement good first issue severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
TMHSDigital/Static_Chess#163 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] Account menu (footer ⚙) doesn't dismiss on outside click — stays open and covers the Bot listAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Fei2411/DeepSeek-Bot#1693 ·
-
area-templates triage:bot-seen triage:needs-human
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
microsoft/aspire#22356 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno