46602f1933
Remove dead code identified in docs/SANITIZATION-REVIEW.md:
- app/blueprints/content_old.py and app/blueprints/playlist.py
- app/models/group.py, app/utils/nginx_config_reader.py
- orphaned templates (content_list, edit_content, upload_content,
player_page) and the related group/Template references
Result: 6 blueprints, 82 routes, no dead modules or orphan templates.
Add files that deploy.sh and docker-entrypoint.sh already require but
which were never tracked:
- https_manager.py (referenced by deploy.sh, migrate_network.sh,
docker-entrypoint.sh)
- Caddyfile.example (seeded by deploy.sh; its absence aborts deploy)
Relocate generated Graphify artifacts from graphify-out/ to
docs/graphify-out/ (110 files, no content change) and archive the
superseded docs under docs/.
Ignore hygiene:
- ignore ad-hoc .env backups (.env.bak*) — they contain live secrets
- keep the pre-sanitization snapshots (docs/legacy code/,
docs/old_code_documentation/) on disk but out of the repo
Fix .env.example: drop a duplicated config block, genericize the
hardcoded host IP, and document HOSTNAME_INTERNAL.
1 line
5.5 KiB
JSON
1 line
5.5 KiB
JSON
{"nodes": [{"id": "home_scheianu_digiserver_v2_old_code_documentation_migrate_add_edit_enabled_py", "label": "migrate_add_edit_enabled.py", "file_type": "code", "type": "FUNCTION", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L1", "complexity": 1, "loc": 1}, {"id": "migrate_add_edit_enabled_migrate", "label": "migrate()", "file_type": "code", "type": "FUNCTION", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L7", "complexity": 4, "loc": 38}, {"id": "migrate_add_edit_enabled_rationale_1", "label": "Migration: Add edit_on_player_enabled column to playlist_content table.", "file_type": "rationale", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L1"}, {"id": "migrate_add_edit_enabled_rationale_8", "label": "Add edit_on_player_enabled column to playlist_content.", "file_type": "rationale", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L8"}], "edges": [{"source": "home_scheianu_digiserver_v2_old_code_documentation_migrate_add_edit_enabled_py", "target": "sqlite3", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L2", "weight": 1.0}, {"source": "home_scheianu_digiserver_v2_old_code_documentation_migrate_add_edit_enabled_py", "target": "os", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L3", "weight": 1.0}, {"source": "home_scheianu_digiserver_v2_old_code_documentation_migrate_add_edit_enabled_py", "target": "migrate_add_edit_enabled_migrate", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L7", "weight": 1.0}, {"source": "migrate_add_edit_enabled_rationale_1", "target": "home_scheianu_digiserver_v2_old_code_documentation_migrate_add_edit_enabled_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L1", "weight": 1.0}, {"source": "migrate_add_edit_enabled_rationale_8", "target": "migrate_add_edit_enabled_migrate", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L8", "weight": 1.0}], "raw_calls": [{"caller_nid": "migrate_add_edit_enabled_migrate", "callee": "exists", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L9"}, {"caller_nid": "migrate_add_edit_enabled_migrate", "callee": "print", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L10"}, {"caller_nid": "migrate_add_edit_enabled_migrate", "callee": "connect", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L13"}, {"caller_nid": "migrate_add_edit_enabled_migrate", "callee": "cursor", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L14"}, {"caller_nid": "migrate_add_edit_enabled_migrate", "callee": "execute", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L18"}, {"caller_nid": "migrate_add_edit_enabled_migrate", "callee": "fetchall", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L19"}, {"caller_nid": "migrate_add_edit_enabled_migrate", "callee": "print", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L22"}, {"caller_nid": "migrate_add_edit_enabled_migrate", "callee": "print", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L26"}, {"caller_nid": "migrate_add_edit_enabled_migrate", "callee": "execute", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L27"}, {"caller_nid": "migrate_add_edit_enabled_migrate", "callee": "commit", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L32"}, {"caller_nid": "migrate_add_edit_enabled_migrate", "callee": "print", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L33"}, {"caller_nid": "migrate_add_edit_enabled_migrate", "callee": "print", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L34"}, {"caller_nid": "migrate_add_edit_enabled_migrate", "callee": "rollback", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L39"}, {"caller_nid": "migrate_add_edit_enabled_migrate", "callee": "print", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L40"}, {"caller_nid": "migrate_add_edit_enabled_migrate", "callee": "close", "source_file": "/home/scheianu/digiserver-v2/old_code_documentation/migrate_add_edit_enabled.py", "source_location": "L44"}]} |