Add a qti_v2 format preset

Open
#262 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
15/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, python
Domain
backend, release

Research direction

The issue says this is not open for contribution, so it is not a suitable first issue. For maintainers, inspect presetlookup.json and the code that generates the JavaScript constants; keep existing preset order intact, verify qti_v2 has the specified exercise settings and appears last in RENDERABLE_PRESETS_ORDER, then publish a release containing it.

Written by the indexing model from the issue text.

Description

enhancement

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

Overview

We need a new qti_v2 preset for exercises. Studio will publish all QTI assessments with it so that Kolibri versions without qti_v2 support fall back to the Perseus file instead of using the survey QTI viewer. Tracked in learningequality/studio#6478.

Complexity: Low
Target branch: main

The Change
  • Add an exercise preset qti_v2 that accepts zip, mirroring qti, as the last entry in presetlookup.json, so RENDERABLE_PRESETS_ORDER gains it at the end and every existing preset keeps its position.
  • Its order must be lower than exercise's, so Kolibri prefers it over the Perseus file.
  • qti stays unchanged.
Acceptance Criteria
  • format_presets.QTI_V2 == "qti_v2", with kind exercise, format zip, not supplementary, and an order lower than exercise
  • RENDERABLE_PRESETS_ORDER equals the previous list with qti_v2 added at the end
  • The generated JS constants include qti_v2
  • A release is published containing it

AI usage

Claude drafted this issue from the plan in learningequality/studio#6478, which I then checked and corrected for accuracy.

Dominant language
Python
Stars
7
Forks
38
Avg merge
1d 3h
Merged PRs (30d)
7

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/le-utils

All issues in learningequality/le-utils

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.