shinkan-jinkendo/backend
Lars 3a4160fd1c
Some checks failed
Deploy Development / deploy (push) Successful in 38s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 5s
Test Suite / playwright-tests (push) Failing after 1m54s
fix: detect and cleanup orphaned import references
Problem: 221 exercises skipped, but only 2 actually in database
Root cause: Failed imports created wiki_import_references entries,
but exercises were never saved (due to earlier bugs)

Duplicate check only verified references existed, not actual data.
Result: All subsequent imports skipped 'already imported' items.

Solution:
- Enhanced duplicate check to verify BOTH reference AND actual entity
- If reference exists but entity is missing → delete orphaned reference
- Item will be re-imported on same run (no manual cleanup needed)

Check logic:
1. Find reference in wiki_import_references
2. Check if exercises/skills/methods table has matching local_id
3. If both exist → skip (true duplicate)
4. If reference exists but entity missing → delete reference + re-import

This auto-heals broken state from previous failed imports.
2026-04-27 08:45:27 +02:00
..
migrations fix: make exercise goal and execution optional (at least one required) 2026-04-24 20:42:21 +02:00
routers fix: detect and cleanup orphaned import references 2026-04-27 08:45:27 +02:00
auth.py fix: Remove Mitai-specific columns from session query 2026-04-22 06:56:57 +02:00
db_init.py feat: Initial Shinkan setup 2026-04-21 14:26:12 +02:00
db.py feat: Initial Shinkan setup 2026-04-21 14:26:12 +02:00
Dockerfile feat: Complete MVP setup - Docker, Frontend, Migrations, CI/CD 2026-04-21 14:36:52 +02:00
main.py feat: Add MediaWiki import functionality with tracking and mapping 2026-04-24 14:41:52 +02:00
models.py fix: Add ProfileCreate and ProfileUpdate models 2026-04-21 16:05:42 +02:00
requirements.txt feat: Initial Shinkan setup 2026-04-21 14:26:12 +02:00
run_migrations.py feat: Add automatic migrations system 2026-04-21 14:49:28 +02:00
smw_client.py feat: add recursive subcategory search for MediaWiki import 2026-04-24 17:53:11 +02:00
smw_mapper.py feat: Add MediaWiki import functionality with tracking and mapping 2026-04-24 14:41:52 +02:00
version.py feat: Exercises v2.0 + Migrations 014/016/017 (Clean-Room Rebuild) 2026-04-24 15:04:27 +02:00