Skip to content

Record that the import relies on the zip's question order - #95

Merged
peterbjohnson merged 1 commit into
mainfrom
question-order
Nov 8, 2026
Merged

peterbjohnson merged 1 commit into
mainfrom
question-order

Conversation

@peterbjohnson

Copy link
Copy Markdown
Member

Lambda Feedback imports questions in the order they appear in the zip. It will take question order explicitly once the platform is upgraded. Until then, in2lambda must write the zip in orderNumber order.

  • _zip_sorted_folder: the docstring says the sort exists because the import follows archive order.
  • The zfill(3) prefix: a comment says alphabetical order matches question order for up to 1000 questions.
  • tests/fixtures/exports/README.md: the orderNumber row says the importer currently follows archive order, so the two must agree.
  • tests/test_export_keys.py: a new test checks that the zip lists questions in orderNumber order. The question titles are out of alphabetical order, and the test fails if the sort is reversed.

🤖 Generated with Claude Code

Lambda Feedback imports questions in archive order until the platform
takes question order explicitly. Say so where the zip is sorted and
beside the zero-padded filename prefix, note it in the fixtures README,
and test that the zip lists questions in orderNumber order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@peterbjohnson
peterbjohnson merged commit b129440 into main Nov 8, 2026
4 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.

1 participant