Files
digiserver-v2/docs/graphify-out/cache/08a5cf60c9886d9492c059388f7794bf8d243cb7f83a010863fe16a728a2872d.json
ske087 46602f1933 Sanitize codebase, reorganize docs, and add missing deploy files
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.
2026-09-11 12:18:34 +03:00

1 line
8.1 KiB
JSON

{"nodes": [{"id": "home_scheianu_digiserver_v2_app_utils_background_tasks_py", "label": "background_tasks.py", "file_type": "code", "type": "FUNCTION", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L1", "complexity": 1, "loc": 1}, {"id": "background_tasks_run_background_task", "label": "run_background_task()", "file_type": "code", "type": "FUNCTION", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L9", "complexity": 2, "loc": 18}, {"id": "background_tasks_background_player_deployment", "label": "background_player_deployment()", "file_type": "code", "type": "FUNCTION", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L29", "complexity": 6, "loc": 88}, {"id": "background_tasks_rationale_1", "label": "Background task execution for long-running operations.", "file_type": "rationale", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L1"}, {"id": "background_tasks_rationale_10", "label": "Run a function in a background thread, with a Flask app context pushed.", "file_type": "rationale", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L10"}, {"id": "background_tasks_rationale_43", "label": "Deploy player code to host in background. Args: hostname: SSH h", "file_type": "rationale", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L43"}], "edges": [{"source": "home_scheianu_digiserver_v2_app_utils_background_tasks_py", "target": "threading", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L2", "weight": 1.0}, {"source": "home_scheianu_digiserver_v2_app_utils_background_tasks_py", "target": "logging", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L3", "weight": 1.0}, {"source": "home_scheianu_digiserver_v2_app_utils_background_tasks_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L4", "weight": 1.0}, {"source": "home_scheianu_digiserver_v2_app_utils_background_tasks_py", "target": "background_tasks_run_background_task", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L9", "weight": 1.0}, {"source": "home_scheianu_digiserver_v2_app_utils_background_tasks_py", "target": "background_tasks_background_player_deployment", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L29", "weight": 1.0}, {"source": "background_tasks_rationale_1", "target": "home_scheianu_digiserver_v2_app_utils_background_tasks_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L1", "weight": 1.0}, {"source": "background_tasks_rationale_10", "target": "background_tasks_run_background_task", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L10", "weight": 1.0}, {"source": "background_tasks_rationale_43", "target": "background_tasks_background_player_deployment", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L43", "weight": 1.0}], "raw_calls": [{"caller_nid": "background_tasks_run_background_task", "callee": "_get_current_object", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L13"}, {"caller_nid": "background_tasks_run_background_task", "callee": "Thread", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L24"}, {"caller_nid": "background_tasks_run_background_task", "callee": "start", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L25"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "get", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L68"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "utcnow", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L71"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "commit", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L74"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "deploy_player_to_host", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L78"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "get", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L93"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "get", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L95"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "get", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L98"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "log_action", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L99"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "get", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L103"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "get", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L103"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "log_action", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L104"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "get", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L104"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "get", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L104"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "commit", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L106"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "error", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L109"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "str", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L109"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "get", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L110"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "str", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L114"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "commit", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L115"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "log_action", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L116"}, {"caller_nid": "background_tasks_background_player_deployment", "callee": "str", "source_file": "/home/scheianu/digiserver-v2/app/utils/background_tasks.py", "source_location": "L116"}]}