Skip to content

fix: serve the requested schema version's columns from importmetadata - #6174

Open
rtibblesbot wants to merge 1 commit into
learningequality:hotfixesfrom
rtibblesbot:issue-6172-298b5a
Open

rtibblesbot wants to merge 1 commit into
learningequality:hotfixesfrom
rtibblesbot:issue-6172-298b5a

Conversation

@rtibblesbot

@rtibblesbot rtibblesbot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • v2/importmetadata serves Kolibri's frozen column map for the requested schema_version; previously a v5 request got v6 columns.
  • Invalid versions return Kolibri's JSON 400 bodies instead of plain text.
  • No schema_version: response unchanged.

References

Fixes #6172. Client side: learningequality/kolibri#15358.

Reviewer guidance

  • With no schema_version, the response has the v5 ∪ v6 columns, so it has both file_size and file_size_bigint. Should the default be v6 alone?
  • 05 and +6 are normalised to 5/6 and served, not rejected.

AI usage

Used Claude Code to port Kolibri's per-version column maps and validation, and to write the tests. Verified with the kolibri_public test suite and flake8.

🤖 Generated with Claude Code


@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly

How was this generated?
  • Ran pre-flight CI checks (lint, format, tests) and verified all pass
  • Rebased onto the target branch and resolved any conflicts
  • Reorganized commit history into clean, logical commits
  • Audited the diff to ensure only issue-relevant files are changed
  • Built PR body from the repository's PR template with evidence blocks
@rtibblesbot

🟡 Waiting for feedback

Last updated: 2026-09-24 22:24 UTC

@rtibblesbot
rtibblesbot marked this pull request as ready for review September 24, 2026 22:19
@rtibblesbot
rtibblesbot requested review from a team and rtibbles September 24, 2026 22:19
- Vendor Kolibri's frozen v5/v6 column maps; `schema_version` selects one
- No `schema_version` keeps today's v5 ∪ v6 columns
- Bad `schema_version` returns Kolibri's JSON 400 bodies

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.

1 participant