Skip to content

feat: seed initial SQL curriculum and achievements with migration, CLI, and tests#4

Merged
cto-new[bot] merged 1 commit intomainfrom
feat-seed-course-data-alembic-cli-tests
Oct 31, 2025
Merged

feat: seed initial SQL curriculum and achievements with migration, CLI, and tests#4
cto-new[bot] merged 1 commit intomainfrom
feat-seed-course-data-alembic-cli-tests

Conversation

@cto-new
Copy link
Copy Markdown
Contributor

@cto-new cto-new bot commented Oct 31, 2025

Summary

This PR introduces a robust database seeding solution for the initial SQL curriculum and achievements, providing a CLI management command, Alembic migration, idempotent seed logic, and comprehensive test coverage.

Details

  • Adds 10 SQL curriculum modules with 2-3 lessons each, all in Russian with theory, SQL solutions, and expected JSON results
  • Provides 10 sample achievements with codes and emoji icon placeholders
  • Introduces new Lesson fields (theory, sql_solution, expected_result as JSON) and Achievement code via Alembic migration
  • Implements CLI/management command (manage.py seed) for idempotent seeding (safe to run multiple times)
  • Includes a full test suite verifying lesson and module counts, required field presence, idempotency, and Russian content
  • Updates docs (SEED.md, README.md, changelog) and Makefile with new seed/migrate commands

Warning: Task VM test is not passing, cto.new will perform much better if you fix the setup

…, migration, and tests

Implements idempotent seeding of baseline course modules, lessons, and achievements.
Adds Alembic migration for new Lesson fields (theory, sql_solution, expected_result)
and Achievement code.

- Adds 10 curriculum modules and 2-3 lessons each with Russian content and metadata
- Includes sample achievements with unique codes and icons
- Provides a CLI/management command for database seeding
- Comprehensive test suite ensures correct data load and field population
- Idempotent: safely re-runnable; skips existing records
- Updates docs and Makefile for streamlined workflow

Migration required before seeding. No breaking changes.
@cto-new cto-new bot merged commit 3ae1145 into main Oct 31, 2025
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.

0 participants