[QTI] Publish QTI assessments with a new preset so older Kolibri falls back to Perseus

未关闭
#6,478 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
1/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
backend, content

调研方向

The issue names le-utils’ presetlookup.json and Studio’s assessment publishing, and says Kolibri rendering changes are in scope across develop and release-v0.20.x. Start by tracing how Studio selects assessment presets and how the preset lookup controls priority. Done means republished test content matches the version matrix and Studio emits no qti preset files; the issue explicitly says it is not open for contribution.

由索引模型根据 Issue 内容生成。

描述

DEV: backend

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

Exercises published from the new editor need to render correctly on every Kolibri version. Since 0.18.2, Kolibri has shipped a QTI viewer for the qti preset. It was built for surveys, so it accepts every answer and shows a blank page for question types it doesn't support. Studio sets file priority once for all Kolibri versions, so 0.18.2–0.19.x devices choose that viewer over the Perseus file we publish alongside.

We'll add a qti_v2 preset in le-utils and publish every assessment from Studio with it, surveys included. Kolibri only renders qti_v2 from 0.21. Earlier versions use the Perseus file when there is one and hide the exercise when there isn't. Editors get a warning when an exercise will only be visible on 0.21+.

Scope

In:

  • New qti_v2 preset in le-utils
  • Studio publishes every assessment with qti_v2 and no longer ships qti files
  • Kolibri renders qti_v2 from 0.21 (develop); release-v0.20.x stays on Perseus

Out:

  • The Studio warning when an exercise will only be visible on Kolibri 0.21+ (tracked under #6103: #6480)
  • Removing or changing the legacy qti preset or its viewer in Kolibri
  • Making more question types expressible in Perseus
  • Content already imported on devices (it is fixed once the channel is republished)
Strategy
  • qti_v2 must be the last entry in le-utils' presetlookup.json, with order: 0.
  • Release order: le-utils, then Studio. The Studio change has to reach production in the same release as the new editor, or earlier.
  • The unsupported-interaction handling planned for Kolibri 0.20 moves to 0.21.
Testing Requirements

Republish a channel containing (a) an exercise whose questions can all be published to Perseus, (b) an exercise that can't, and (c) a survey. Then import it on:

Kolibri (a) (b) (c)
< 0.18.2 Perseus hidden hidden
0.18.2–0.19.x Perseus hidden hidden
0.20.x Perseus hidden hidden
0.21+ (develop) QTI QTI QTI
Acceptance Criteria
  • Republishing the test channel gives the results in the Testing Requirements table on each Kolibri version listed
  • No Studio publish produces a qti preset file

AI usage

I worked out the plan with Richard after Peter's testing. Claude checked it against Kolibri v0.18.2, v0.19.5, release-v0.20.x and develop, and against Studio's publish code, then drafted this issue, which I then checked and corrected for accuracy.

主要语言
JavaScript
星标
214
派生
327
平均合并
17 小时 5 分钟
30 天内合并 PR
25

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

learningequality/studio 的其他 Issue

查看 learningequality/studio 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。