[QTI] Older Kolibri can't render exercises of only legacy items published from unstable
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
The issue banner states it is not open for contribution. If you still study it, start at contentcuration/contentcuration/utils/publish.py: how exercises are sent to QTIExerciseGenerator vs PerseusExerciseGenerator and _node_is_perseus_derivable. Align unstable with the v2026.09.24 rule so legacy-only items get both qti and exercise files, and free_response stays QTI-only. Cover both cases with publish tests.
由索引模型根据 Issue 内容生成。
描述
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
On unstable, publishing an exercise whose questions are all legacy items produces a QTI package and no Perseus archive. Older Kolibri renders only Perseus, so it cannot render these exercises. Release v2026.09.24 publishes the same exercises as a Perseus archive.
Complexity: Low
Target branch: unstable
Context
- Publish sends every exercise without a
perseus_questionitem toQTIExerciseGenerator, and addsPerseusExerciseGeneratoronly when_node_is_perseus_derivableholds: https://github.com/learningequality/studio/blob/f4360ff91b7a2254763c6a58d50f3245559e15a0/contentcuration/contentcuration/utils/publish.py#L404-L415 _node_is_perseus_derivablereturnsFalsefor an exercise with notype=QTIitem: https://github.com/learningequality/studio/blob/f4360ff91b7a2254763c6a58d50f3245559e15a0/contentcuration/contentcuration/utils/publish.py#L264-L274- v2026.09.24 sends only exercises with a
free_responseitem to QTI: https://github.com/learningequality/studio/blob/fc30d8311037a2c1629a50a6dd58f5e8b7f7df34/contentcuration/contentcuration/utils/publish.py#L369-L377
The Change
- Legacy-only exercises should get the Perseus archive #6001 gives exercises of native QTI items, under the same rule: QTI only when any item has no Perseus equivalent.
How to Get There
- Publish a channel with an exercise holding only
multiple_selectionandinput_questionitems. - Check the exercise node's files: there is a
qti-preset file and noexercise-preset file.
Acceptance Criteria
- Publishing an exercise whose items are all
single_selection,multiple_selection,true_falseorinput_questionproduces both aqtiand anexercisefile. - Publishing an exercise with a
free_responseitem produces aqtifile only. - Tests cover both cases.
AI usage
Claude Code found this while reviewing the #6211 branch, reproduced it with a scratch publish test on unstable at f4360ff91, and drafted this issue.
- 主要语言
- Python
- 星标
- 191
- 派生
- 308
- 平均合并
- 2 天 17 小时
- 30 天内合并 PR
- 64
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
learningequality/studio 的其他 Issue
-
DEV: frontend P3 - low
难度 2/5 1-3 小时 新手友好度 74/100
learningequality/studio#5868 ·
维护者通常 1 天内回复
-
TAG: tech update / debt
难度 2/5 1-3 小时 新手友好度 62/100
learningequality/studio#2245 ·
维护者通常 1 天内回复
-
bug DEV: frontend
难度 4/5 3-5 天 新手友好度 35/100
learningequality/studio#6308 ·
维护者通常 1 天内回复
-
bug DEV: frontend
难度 3/5 1-2 天 新手友好度 20/100
learningequality/studio#6307 ·
维护者通常 1 天内回复
-
bug DEV: backend python
难度 3/5 1-2 天 新手友好度 30/100
learningequality/studio#6305 ·
维护者通常 1 天内回复
查看 learningequality/studio 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
pyjanitor-devs/pyjanitor#1758 ·
维护者通常 1 天内回复
-
bug ready for review
难度 2/5 1-3 小时 新手友好度 86/100
odysseus-dev/odysseus#6641 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
happypawspillaro/happypaws#78 ·
维护者通常 4 天内回复
-
pydanty:is-working
难度 2/5 1-3 小时 新手友好度 82/100
pydantic/pydantic-ai#10020 ·
维护者通常 1 天内回复
-
stdlib type-bug
难度 2/5 1-3 小时 新手友好度 68/100
python/cpython#159044 · 4 条评论 ·
维护者通常 1 天内回复