Skip to content

Set qti preset order to 0 - #245

Merged
rtibbles merged 1 commit into
learningequality:mainfrom
AlexVelezLl:update-qti-preset-order
Sep 25, 2026
Merged

rtibbles merged 1 commit into
learningequality:mainfrom
AlexVelezLl:update-qti-preset-order

Conversation

@AlexVelezLl

Copy link
Copy Markdown
Member

Summary

Sets the order of the qti preset to 0 so the QTI zip is treated as the primary file for exercise nodes, ahead of qti_thumbnail (order 2).

References

Reviewer guidance

RENDERABLE_PRESETS_ORDER (the bitmask bit positions) comes from where each preset sits in the JSON, not from order, so existing File.included_presets values are unaffected. The pinned-index test in tests/test_presets.py still passes.

AI usage

I used Claude Code to make the one-line change, check that order isn't copied into any generated code or the JS package, and run the test suite.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@AlexVelezLl
AlexVelezLl marked this pull request as ready for review September 25, 2026 16:18

@rtibbles rtibbles left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlexVelezLl has assured me nothing relies on this being not-falsy, so this is safe.

@rtibbles
rtibbles merged commit 844f3a1 into learningequality:main Sep 25, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants