c88a47cd95f9e79ad0a5b9d504d2d7757a9004e6ec5f7eb334a0c82a8a03aff1.json 5.5 KB

1
  1. {"nodes": [{"id": "users_wuzilong_work_00code_shanxia_bx_bx_backend_app_core_deps_py", "label": "deps.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L1"}, {"id": "core_deps_get_current_user", "label": "get_current_user()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L14"}, {"id": "core_deps_require_roles", "label": "require_roles()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L45"}, {"id": "core_deps_rationale_1", "label": "FastAPI dependencies: DB session, current user, role guards.", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L1"}, {"id": "core_deps_rationale_46", "label": "Dependency factory: currently bypasses role check.", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L46"}], "edges": [{"source": "users_wuzilong_work_00code_shanxia_bx_bx_backend_app_core_deps_py", "target": "fastapi", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L3", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia_bx_bx_backend_app_core_deps_py", "target": "fastapi_security", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L4", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia_bx_bx_backend_app_core_deps_py", "target": "sqlalchemy_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L5", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia_bx_bx_backend_app_core_deps_py", "target": "app_database", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L7", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia_bx_bx_backend_app_core_deps_py", "target": "app_core_security", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L8", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia_bx_bx_backend_app_core_deps_py", "target": "app_models_user", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L9", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia_bx_bx_backend_app_core_deps_py", "target": "core_deps_get_current_user", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L14", "weight": 1.0}, {"source": "users_wuzilong_work_00code_shanxia_bx_bx_backend_app_core_deps_py", "target": "core_deps_require_roles", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L45", "weight": 1.0}, {"source": "core_deps_rationale_1", "target": "users_wuzilong_work_00code_shanxia_bx_bx_backend_app_core_deps_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L1", "weight": 1.0}, {"source": "core_deps_rationale_46", "target": "core_deps_require_roles", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L46", "weight": 1.0}], "raw_calls": [{"caller_nid": "core_deps_get_current_user", "callee": "decode_access_token", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L18"}, {"caller_nid": "core_deps_get_current_user", "callee": "HTTPException", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L20"}, {"caller_nid": "core_deps_get_current_user", "callee": "get", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L25"}, {"caller_nid": "core_deps_get_current_user", "callee": "HTTPException", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L27"}, {"caller_nid": "core_deps_get_current_user", "callee": "first", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L31"}, {"caller_nid": "core_deps_get_current_user", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L31"}, {"caller_nid": "core_deps_get_current_user", "callee": "query", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L31"}, {"caller_nid": "core_deps_get_current_user", "callee": "HTTPException", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L33"}, {"caller_nid": "core_deps_get_current_user", "callee": "HTTPException", "source_file": "/Users/wuzilong/work/00code/shanxia/bx/bx-backend/app/core/deps.py", "source_location": "L38"}]}