Render exercises published with the qti_v2 preset

Open
#16,067 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
1/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend

Research direction

This issue is explicitly not open for contribution. For maintainers, start with kolibri/plugins/qti_viewer/kolibri_plugin.py and content_types_tools.py, then check the le-utils release from learningequality/le-utils#262. Done means imports with only qti_v2 open in the QTI viewer, content with both qti_v2 and Perseus opens there, and existing qti rendering still works.

Written by the indexing model from the issue text.

Description

DEV: renderers TAG: new feature

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

Overview

Kolibri should render exercises Studio publishes with the new qti_v2 preset (learningequality/le-utils#262) using the QTI viewer, starting in 0.21. Studio moves all QTI assessments to qti_v2 so older Kolibri versions fall back to Perseus instead of the survey QTI viewer. Tracked in learningequality/studio#6478.

Complexity: Low
Target branch: develop (not release-v0.20.x)

Context
  • kolibri/plugins/qti_viewer/kolibri_plugin.py registers the viewer for format_presets.QTI_ZIP only.
  • content_types_tools.py builds the bitmask of presets this device can render from the installed le-utils' RENDERABLE_PRESETS_ORDER. Until le-utils is bumped, qti_v2 files are treated as unrenderable.
  • The unsupported-interaction handling and strings planned for 0.20 move to 0.21 together with this change.
The Change
  • Bump le-utils to the release from learningequality/le-utils#262.
  • The QTI viewer should render qti_v2 files. Its handling of qti files doesn't change.
Out of Scope
  • Backporting to release-v0.20.x
Acceptance Criteria
  • An exercise or survey published with only a qti_v2 file can be imported and opens in the QTI viewer
  • An exercise with both qti_v2 and Perseus files opens in the QTI viewer
  • Content with a qti file renders as before

AI usage

Claude checked how Kolibri decides which presets it can render and drafted this issue from the plan in learningequality/studio#6478, which I then checked and corrected for accuracy.

Dominant language
Python
Stars
1.2k
Forks
1.1k
Avg merge
2d 9h
Merged PRs (30d)
87

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from learningequality/kolibri

All issues in learningequality/kolibri

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.