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

Aberta
#6,478 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
1/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
backend, content

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
JavaScript
Estrelas
214
Forks
327
Merge médio
17h 5min
PRs com merge (30d)
25

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de learningequality/studio

Todas as issues de learningequality/studio

Issues semelhantes

Mais issues de JavaScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.