Files
digiserver-v2/docs/graphify-out/cache/70079e68521808a26af122322a5035b09c6b92330bc3ec6eca7ce7b46b61db01.json
T
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.9 KiB
JSON

{"nodes": [{"id": "home_scheianu_digiserver_v2_app_utils_pptx_converter_py", "label": "pptx_converter.py", "file_type": "code", "type": "FUNCTION", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L1", "complexity": 1, "loc": 1}, {"id": "pptx_converter_cleanup_libreoffice_processes", "label": "cleanup_libreoffice_processes()", "file_type": "code", "type": "FUNCTION", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L11", "complexity": 2, "loc": 7}, {"id": "pptx_converter_pptx_to_pdf_libreoffice", "label": "pptx_to_pdf_libreoffice()", "file_type": "code", "type": "FUNCTION", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L20", "complexity": 4, "loc": 64}, {"id": "pptx_converter_validate_pptx_file", "label": "validate_pptx_file()", "file_type": "code", "type": "FUNCTION", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L86", "complexity": 4, "loc": 21}, {"id": "pptx_converter_rationale_1", "label": "PowerPoint to PDF converter using LibreOffice.", "file_type": "rationale", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L1"}, {"id": "pptx_converter_rationale_12", "label": "Clean up any hanging LibreOffice processes.", "file_type": "rationale", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L12"}, {"id": "pptx_converter_rationale_21", "label": "Convert PPTX to PDF using LibreOffice for highest quality. This functio", "file_type": "rationale", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L21"}, {"id": "pptx_converter_rationale_87", "label": "Validate if file is a valid PowerPoint file. Args: filepath: Pa", "file_type": "rationale", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L87"}], "edges": [{"source": "home_scheianu_digiserver_v2_app_utils_pptx_converter_py", "target": "os", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L2", "weight": 1.0}, {"source": "home_scheianu_digiserver_v2_app_utils_pptx_converter_py", "target": "subprocess", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L3", "weight": 1.0}, {"source": "home_scheianu_digiserver_v2_app_utils_pptx_converter_py", "target": "time", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L4", "weight": 1.0}, {"source": "home_scheianu_digiserver_v2_app_utils_pptx_converter_py", "target": "logging", "relation": "imports", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L5", "weight": 1.0}, {"source": "home_scheianu_digiserver_v2_app_utils_pptx_converter_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L6", "weight": 1.0}, {"source": "home_scheianu_digiserver_v2_app_utils_pptx_converter_py", "target": "pptx_converter_cleanup_libreoffice_processes", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L11", "weight": 1.0}, {"source": "home_scheianu_digiserver_v2_app_utils_pptx_converter_py", "target": "pptx_converter_pptx_to_pdf_libreoffice", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L20", "weight": 1.0}, {"source": "home_scheianu_digiserver_v2_app_utils_pptx_converter_py", "target": "pptx_converter_validate_pptx_file", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L86", "weight": 1.0}, {"source": "pptx_converter_pptx_to_pdf_libreoffice", "target": "pptx_converter_cleanup_libreoffice_processes", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L35", "weight": 1.0}, {"source": "pptx_converter_rationale_1", "target": "home_scheianu_digiserver_v2_app_utils_pptx_converter_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L1", "weight": 1.0}, {"source": "pptx_converter_rationale_12", "target": "pptx_converter_cleanup_libreoffice_processes", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L12", "weight": 1.0}, {"source": "pptx_converter_rationale_21", "target": "pptx_converter_pptx_to_pdf_libreoffice", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L21", "weight": 1.0}, {"source": "pptx_converter_rationale_87", "target": "pptx_converter_validate_pptx_file", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L87", "weight": 1.0}], "raw_calls": [{"caller_nid": "pptx_converter_cleanup_libreoffice_processes", "callee": "run", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L14"}, {"caller_nid": "pptx_converter_cleanup_libreoffice_processes", "callee": "sleep", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L15"}, {"caller_nid": "pptx_converter_cleanup_libreoffice_processes", "callee": "warning", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L17"}, {"caller_nid": "pptx_converter_pptx_to_pdf_libreoffice", "callee": "makedirs", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L38"}, {"caller_nid": "pptx_converter_pptx_to_pdf_libreoffice", "callee": "info", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L51"}, {"caller_nid": "pptx_converter_pptx_to_pdf_libreoffice", "callee": "run", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L54"}, {"caller_nid": "pptx_converter_pptx_to_pdf_libreoffice", "callee": "error", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L57"}, {"caller_nid": "pptx_converter_pptx_to_pdf_libreoffice", "callee": "error", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L58"}, {"caller_nid": "pptx_converter_pptx_to_pdf_libreoffice", "callee": "splitext", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L63"}, {"caller_nid": "pptx_converter_pptx_to_pdf_libreoffice", "callee": "basename", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L63"}, {"caller_nid": "pptx_converter_pptx_to_pdf_libreoffice", "callee": "join", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L64"}, {"caller_nid": "pptx_converter_pptx_to_pdf_libreoffice", "callee": "exists", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L66"}, {"caller_nid": "pptx_converter_pptx_to_pdf_libreoffice", "callee": "info", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L67"}, {"caller_nid": "pptx_converter_pptx_to_pdf_libreoffice", "callee": "error", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L71"}, {"caller_nid": "pptx_converter_pptx_to_pdf_libreoffice", "callee": "error", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L76"}, {"caller_nid": "pptx_converter_pptx_to_pdf_libreoffice", "callee": "error", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L81"}, {"caller_nid": "pptx_converter_validate_pptx_file", "callee": "exists", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L95"}, {"caller_nid": "pptx_converter_validate_pptx_file", "callee": "endswith", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L99"}, {"caller_nid": "pptx_converter_validate_pptx_file", "callee": "lower", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L99"}, {"caller_nid": "pptx_converter_validate_pptx_file", "callee": "getsize", "source_file": "/home/scheianu/digiserver-v2/app/utils/pptx_converter.py", "source_location": "L103"}]}