Files
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

13 KiB

log_action()

God node · 116 connections · /home/scheianu/digiserver-v2/app/utils/logger.py

Call Trace Diagram

sequenceDiagram
    participant P0 as log_action()
    participant P1 as ServerLog
    participant P2 as Models package for digiserver-v2.
    participant P3 as PlayerEdit
    participant P4 as PlayerUser
    participant P5 as Playlist
    participant P6 as HTTPSConfig
    participant P7 as Content
    participant P8 as User
    participant P9 as Player
    participant P10 as Group
    participant P11 as PlayerFeedback
    participant P12 as Logging utility for tracking system events.
    participant P13 as Log an action to the database with specified level.          Args:         level
    participant P14 as Get the most recent log entries.          Args:         limit: Maximum number of
    participant P15 as Delete logs older than specified days.          Args:         days: Number of da
    participant P16 as Log an info level message.
    participant P17 as Log a warning level message.
    participant P18 as Log an error level message.
    participant P19 as add_player()
    participant P20 as build_player_action()
    participant P21 as upload_media()
    participant P22 as list()
    participant P23 as update_https_config()
    participant P24 as process_file_in_background()
    participant P25 as process_presentation_file()
    participant P26 as receive_edited_media()
    participant P27 as manage_player()
    participant P28 as https_config_status()
    participant P29 as upload_content()
    participant P30 as add_weblink()
    participant P31 as add_weblink_to_playlist()
    participant P32 as process_video_file_extended()
    participant P33 as process_pdf_file()
    participant P34 as authenticate_player()
    participant P35 as get_playlist_by_quickconnect()
    participant P36 as receive_player_feedback()
    participant P37 as process_video_file()
    participant P38 as create_user()
    participant P39 as https_config()
    participant P40 as delete_media()
    participant P41 as create_playlist()
    participant P42 as add_content_to_playlist()
    participant P43 as remove_content_from_playlist()
    participant P44 as bulk_remove_from_playlist()
    participant P45 as reorder_playlist_content()
    participant P46 as update_playlist_content_muted()
    participant P47 as update_playlist_content_edit_enabled()
    participant P48 as update_playlist_content_duration()
    participant P49 as process_image_file()
    participant P50 as resize_image_to_fullhd()
    participant P51 as optimize_image_to_fullhd()
    participant P52 as get_player_playlist()
    participant P53 as deploy_player()
    participant P54 as player_fullscreen()
    participant P55 as add_to_playlist()
    participant P56 as remove_from_playlist()
    participant P57 as reorder_playlist()
    participant P58 as update_duration()
    participant P59 as update_muted()
    participant P60 as clear_playlist()
    participant P61 as process_pdf_file()
    participant P62 as background_player_deployment()
    participant P63 as groups_list()
    participant P64 as manage_group()
    participant P65 as group_fullscreen()
    participant P66 as group_stats()
    participant P67 as clear_old_logs()
    participant P68 as log_info()
    participant P69 as log_warning()
    participant P70 as log_error()
    participant P71 as admin_panel()
    participant P72 as change_user_role()
    participant P73 as delete_user()
    participant P74 as change_theme()
    participant P75 as upload_logo()
    participant P76 as clear_logs()
    participant P77 as user_management()
    participant P78 as system_info()
    participant P79 as leftover_media()
    participant P80 as install_libreoffice()
    participant P81 as install_emoji_fonts()
    participant P82 as upload_login_logo()
    participant P83 as manage_editing_users()
    participant P84 as update_editing_user()
    participant P85 as content_list()
    participant P86 as edit_content()
    participant P87 as delete_content()
    participant P88 as delete_by_filename()
    participant P89 as bulk_delete_content()
    participant P90 as preview_content()
    participant P91 as download_content()
    participant P92 as content_statistics()
    participant P93 as check_duplicates()
    participant P94 as content_groups_info()
    participant P95 as assign_player_to_playlist()
    participant P96 as get_playlist_version()
    participant P97 as get_player_status()
    participant P98 as get_upload_progress()
    participant P99 as system_info()
    participant P100 as list_content()
    participant P101 as get_logs()
    participant P102 as test_ssh_connection()
    participant P103 as regenerate_auth_code()
    participant P104 as edited_media()
    participant P105 as edited_media_report()
    participant P106 as bulk_delete_players()
    participant P107 as bulk_assign_playlist()
    participant P108 as deployment_status()
    participant P109 as reorder_playlist()
    participant P110 as remove_from_playlist()
    participant P111 as assign_player_to_group()
    participant P112 as bulk_assign_players_to_group()
    participant P113 as save_uploaded_file()
    participant P114 as delete_file()
    participant P115 as create_group()
    participant P116 as add_player_to_group()
    participant P117 as remove_player_from_group()
    participant P118 as add_content_to_group()
    participant P119 as remove_content_from_group()
    participant P120 as reorder_group_content()
    participant P121 as reset_user_password()
    participant P122 as upload_header_logo()
    participant P123 as delete_editing_user()
    participant P124 as delete_playlist()
    participant P125 as edit_player()
    participant P126 as delete_player()
    participant P127 as login()
    participant P128 as logout()
    participant P129 as change_password()
    participant P130 as edit_group()
    participant P131 as delete_group()
    P0->>+ P1: calls
    P1-->>- P0: return
    P1->>+ P0: calls
    P0-->>- P1: return
    P1->>+ P2: uses
    P2-->>- P1: return
    P2->>+ P3: uses
    P3-->>- P2: return
    P2->>+ P4: uses
    P4-->>- P2: return
    P2->>+ P5: uses
    P5-->>- P2: return
    P2->>+ P6: uses
    P6-->>- P2: return
    P2->>+ P7: uses
    P7-->>- P2: return
    P2->>+ P8: uses
    P8-->>- P2: return
    P2->>+ P9: uses
    P9-->>- P2: return
    P2->>+ P1: uses
    P1-->>- P2: return
    P2->>+ P10: uses
    P10-->>- P2: return
    P2->>+ P11: uses
    P11-->>- P2: return
    P1->>+ P12: uses
    P12-->>- P1: return
    P12->>+ P1: uses
    P1-->>- P12: return
    P1->>+ P13: uses
    P13-->>- P1: return
    P1->>+ P14: uses
    P14-->>- P1: return
    P1->>+ P15: uses
    P15-->>- P1: return
    P1->>+ P16: uses
    P16-->>- P1: return
    P1->>+ P17: uses
    P17-->>- P1: return
    P1->>+ P18: uses
    P18-->>- P1: return
    P0->>+ P19: calls
    P19-->>- P0: return
    P0->>+ P20: calls
    P20-->>- P0: return
    P0->>+ P21: calls
    P21-->>- P0: return
    P0->>+ P22: calls
    P22-->>- P0: return
    P0->>+ P23: calls
    P23-->>- P0: return
    P0->>+ P24: calls
    P24-->>- P0: return
    P0->>+ P25: calls
    P25-->>- P0: return
    P0->>+ P26: calls
    P26-->>- P0: return
    P0->>+ P27: calls
    P27-->>- P0: return
    P0->>+ P28: calls
    P28-->>- P0: return
    P0->>+ P29: calls
    P29-->>- P0: return
    P0->>+ P30: calls
    P30-->>- P0: return
    P0->>+ P31: calls
    P31-->>- P0: return
    P0->>+ P32: calls
    P32-->>- P0: return
    P0->>+ P33: calls
    P33-->>- P0: return
    P0->>+ P34: calls
    P34-->>- P0: return
    P0->>+ P35: calls
    P35-->>- P0: return
    P0->>+ P36: calls
    P36-->>- P0: return
    P0->>+ P37: calls
    P37-->>- P0: return
    P0->>+ P38: calls
    P38-->>- P0: return
    P0->>+ P39: calls
    P39-->>- P0: return
    P0->>+ P40: calls
    P40-->>- P0: return
    P0->>+ P41: calls
    P41-->>- P0: return
    P0->>+ P42: calls
    P42-->>- P0: return
    P0->>+ P43: calls
    P43-->>- P0: return
    P0->>+ P44: calls
    P44-->>- P0: return
    P0->>+ P45: calls
    P45-->>- P0: return
    P0->>+ P46: calls
    P46-->>- P0: return
    P0->>+ P47: calls
    P47-->>- P0: return
    P0->>+ P48: calls
    P48-->>- P0: return
    P0->>+ P49: calls
    P49-->>- P0: return
    P0->>+ P50: calls
    P50-->>- P0: return
    P0->>+ P51: calls
    P51-->>- P0: return
    P0->>+ P52: calls
    P52-->>- P0: return
    P0->>+ P53: calls
    P53-->>- P0: return
    P0->>+ P54: calls
    P54-->>- P0: return
    P0->>+ P55: calls
    P55-->>- P0: return
    P0->>+ P56: calls
    P56-->>- P0: return
    P0->>+ P57: calls
    P57-->>- P0: return
    P0->>+ P58: calls
    P58-->>- P0: return
    P0->>+ P59: calls
    P59-->>- P0: return
    P0->>+ P60: calls
    P60-->>- P0: return
    P0->>+ P61: calls
    P61-->>- P0: return
    P0->>+ P62: calls
    P62-->>- P0: return
    P0->>+ P63: calls
    P63-->>- P0: return
    P0->>+ P64: calls
    P64-->>- P0: return
    P0->>+ P65: calls
    P65-->>- P0: return
    P0->>+ P66: calls
    P66-->>- P0: return
    P0->>+ P67: calls
    P67-->>- P0: return
    P0->>+ P68: calls
    P68-->>- P0: return
    P0->>+ P69: calls
    P69-->>- P0: return
    P0->>+ P70: calls
    P70-->>- P0: return
    P0->>+ P71: calls
    P71-->>- P0: return
    P0->>+ P72: calls
    P72-->>- P0: return
    P0->>+ P73: calls
    P73-->>- P0: return
    P0->>+ P74: calls
    P74-->>- P0: return
    P0->>+ P75: calls
    P75-->>- P0: return
    P0->>+ P76: calls
    P76-->>- P0: return
    P0->>+ P77: calls
    P77-->>- P0: return
    P0->>+ P78: calls
    P78-->>- P0: return
    P0->>+ P79: calls
    P79-->>- P0: return
    P0->>+ P80: calls
    P80-->>- P0: return
    P0->>+ P81: calls
    P81-->>- P0: return
    P0->>+ P82: calls
    P82-->>- P0: return
    P0->>+ P83: calls
    P83-->>- P0: return
    P0->>+ P84: calls
    P84-->>- P0: return
    P0->>+ P85: calls
    P85-->>- P0: return
    P0->>+ P86: calls
    P86-->>- P0: return
    P0->>+ P87: calls
    P87-->>- P0: return
    P0->>+ P88: calls
    P88-->>- P0: return
    P0->>+ P89: calls
    P89-->>- P0: return
    P0->>+ P90: calls
    P90-->>- P0: return
    P0->>+ P91: calls
    P91-->>- P0: return
    P0->>+ P92: calls
    P92-->>- P0: return
    P0->>+ P93: calls
    P93-->>- P0: return
    P0->>+ P94: calls
    P94-->>- P0: return
    P0->>+ P95: calls
    P95-->>- P0: return
    P0->>+ P96: calls
    P96-->>- P0: return
    P0->>+ P97: calls
    P97-->>- P0: return
    P0->>+ P98: calls
    P98-->>- P0: return
    P0->>+ P99: calls
    P99-->>- P0: return
    P0->>+ P100: calls
    P100-->>- P0: return
    P0->>+ P101: calls
    P101-->>- P0: return
    P0->>+ P102: calls
    P102-->>- P0: return
    P0->>+ P103: calls
    P103-->>- P0: return
    P0->>+ P104: calls
    P104-->>- P0: return
    P0->>+ P105: calls
    P105-->>- P0: return
    P0->>+ P106: calls
    P106-->>- P0: return
    P0->>+ P107: calls
    P107-->>- P0: return
    P0->>+ P108: calls
    P108-->>- P0: return
    P0->>+ P109: calls
    P109-->>- P0: return
    P0->>+ P110: calls
    P110-->>- P0: return
    P0->>+ P111: calls
    P111-->>- P0: return
    P0->>+ P112: calls
    P112-->>- P0: return
    P0->>+ P113: calls
    P113-->>- P0: return
    P0->>+ P114: calls
    P114-->>- P0: return
    P0->>+ P115: calls
    P115-->>- P0: return
    P0->>+ P116: calls
    P116-->>- P0: return
    P0->>+ P117: calls
    P117-->>- P0: return
    P0->>+ P118: calls
    P118-->>- P0: return
    P0->>+ P119: calls
    P119-->>- P0: return
    P0->>+ P120: calls
    P120-->>- P0: return
    P0->>+ P121: calls
    P121-->>- P0: return
    P0->>+ P122: calls
    P122-->>- P0: return
    P0->>+ P123: calls
    P123-->>- P0: return
    P0->>+ P124: calls
    P124-->>- P0: return
    P0->>+ P125: calls
    P125-->>- P0: return
    P0->>+ P126: calls
    P126-->>- P0: return
    P0->>+ P127: calls
    P127-->>- P0: return
    P0->>+ P128: calls
    P128-->>- P0: return
    P0->>+ P129: calls
    P129-->>- P0: return
    P0->>+ P130: calls
    P130-->>- P0: return
    P0->>+ P131: calls
    P131-->>- P0: return

Connections by Relation

calls

contains

rationale_for


Part of the graphify knowledge wiki. See index to navigate.