Files
clinicpro/graphify-out/cache/ast/v0.8.44/a8f899cc061053e5664833c2ebcbf1fe2613c8d5b150973bb95e621750267c61.json
T
hamed 803196108c feat(logging): Implement database logging with app_log table
- Created migration to set up app_log table for storing application logs.
- Added AppLog entity and repository for ORM handling of logs.
- Developed DbLogger service to persist logs of level WARNING and above to the database while maintaining existing logging behavior.
- Implemented tests for admin log retrieval and DbLogger functionality to ensure proper logging behavior.
- Enhanced logging context sanitization for better error tracking.
2026-06-29 20:01:03 +03:30

1 line
8.0 KiB
JSON

{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_tests_admin_adminlogstest_php", "label": "AdminLogsTest.php", "file_type": "code", "source_file": "tests/Admin/AdminLogsTest.php", "source_location": "L1"}, {"id": "admin_adminlogstest_adminlogstest", "label": "AdminLogsTest", "file_type": "code", "source_file": "tests/Admin/AdminLogsTest.php", "source_location": "L10"}, {"id": "apitestcase", "label": "ApiTestCase", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "admin_adminlogstest_adminlogstest_seedlog", "label": ".seedLog()", "file_type": "code", "source_file": "tests/Admin/AdminLogsTest.php", "source_location": "L12"}, {"id": "admin_adminlogstest_adminlogstest_testnonadminforbidden", "label": ".testNonAdminForbidden()", "file_type": "code", "source_file": "tests/Admin/AdminLogsTest.php", "source_location": "L23"}, {"id": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "label": ".testAdminSeesLogsFilteredByLevel()", "file_type": "code", "source_file": "tests/Admin/AdminLogsTest.php", "source_location": "L30"}], "edges": [{"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_tests_admin_adminlogstest_php", "target": "apitestcase", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "tests/Admin/AdminLogsTest.php", "source_location": "L5", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_tests_admin_adminlogstest_php", "target": "admin_adminlogstest_adminlogstest", "relation": "contains", "confidence": "EXTRACTED", "source_file": "tests/Admin/AdminLogsTest.php", "source_location": "L10", "weight": 1.0}, {"source": "admin_adminlogstest_adminlogstest", "target": "apitestcase", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "tests/Admin/AdminLogsTest.php", "source_location": "L10", "weight": 1.0}, {"source": "admin_adminlogstest_adminlogstest", "target": "admin_adminlogstest_adminlogstest_seedlog", "relation": "method", "confidence": "EXTRACTED", "source_file": "tests/Admin/AdminLogsTest.php", "source_location": "L12", "weight": 1.0}, {"source": "admin_adminlogstest_adminlogstest", "target": "admin_adminlogstest_adminlogstest_testnonadminforbidden", "relation": "method", "confidence": "EXTRACTED", "source_file": "tests/Admin/AdminLogsTest.php", "source_location": "L23", "weight": 1.0}, {"source": "admin_adminlogstest_adminlogstest", "target": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "relation": "method", "confidence": "EXTRACTED", "source_file": "tests/Admin/AdminLogsTest.php", "source_location": "L30", "weight": 1.0}, {"source": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "target": "admin_adminlogstest_adminlogstest_seedlog", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "tests/Admin/AdminLogsTest.php", "source_location": "L33", "weight": 1.0}], "raw_calls": [{"caller_nid": "admin_adminlogstest_adminlogstest_seedlog", "callee": "insert", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L14", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_seedlog", "callee": "getConnection", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L14", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_seedlog", "callee": "time", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L19", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testnonadminforbidden", "callee": "createUser", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L25", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testnonadminforbidden", "callee": "authJson", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L26", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testnonadminforbidden", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L27", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testnonadminforbidden", "callee": "responseCode", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L27", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "callee": "bin2hex", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L32", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "callee": "random_bytes", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L32", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "callee": "createUser", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L36", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "callee": "authJson", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L37", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L39", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "callee": "responseCode", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L39", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L40", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L41", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L42", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L43", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "callee": "self", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L44", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "callee": "executeStatement", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L46", "receiver": null}, {"caller_nid": "admin_adminlogstest_adminlogstest_testadminseeslogsfilteredbylevel", "callee": "getConnection", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/tests/Admin/AdminLogsTest.php", "source_location": "L46", "receiver": null}]}