Phase 8 Complete: Sync Audit Log + Frontend Integration
- Thêm audit/sync_audit.py: Ghi lịch sử sync vào audit/sync_log.json
- Thêm API endpoints: /sync/history, /sync/history/{run_id}
- Frontend: Nút 'Lịch sử đồng bộ' + panel expand chi tiết từng file
- Sửa frontend served từ backend (http://localhost:8000)
- Cập nhật DEPLOYMENT_GUIDE với hướng dẫn chạy localhost
- Cập nhật ARCHITECTURE_MAP: Phase 8 hoàn thành
This commit is contained in:
128
audit/sync_log.json
Normal file
128
audit/sync_log.json
Normal file
@@ -0,0 +1,128 @@
|
||||
{
|
||||
"runs": [
|
||||
{
|
||||
"run_id": "20260511_035430",
|
||||
"started_at": "2026-05-11T03:54:30.817636",
|
||||
"finished_at": "2026-05-11T03:55:11.377114",
|
||||
"status": "completed",
|
||||
"summary": {
|
||||
"processed": 8,
|
||||
"skipped": 3,
|
||||
"errors": 0
|
||||
},
|
||||
"files": [
|
||||
{
|
||||
"name": "Quy-trinh-nghiem-thu-thiet-bi-v1.pdf",
|
||||
"item_id": "01BP532D2O74Z6FYQPOVBKE5DBMYDWCWCK",
|
||||
"doc_type": "textual_document",
|
||||
"policy": "skip_ocr",
|
||||
"chunks": 1,
|
||||
"status": "indexed",
|
||||
"detail": "",
|
||||
"timestamp": "2026-05-11T03:54:47.793432"
|
||||
},
|
||||
{
|
||||
"name": "Bien-ban-ban-giao-scan.pdf",
|
||||
"item_id": "01BP532D7QZ5QES5H675D2Q62S3YNCN7MV",
|
||||
"doc_type": "textual_document",
|
||||
"policy": "requires_ocr",
|
||||
"chunks": 1,
|
||||
"status": "indexed",
|
||||
"detail": "",
|
||||
"timestamp": "2026-05-11T03:54:54.449272"
|
||||
},
|
||||
{
|
||||
"name": "So-do-mat-bang-kho-A1.pdf",
|
||||
"item_id": "01BP532D5ETRRCEFMAXVF3T5UOAN7ZMWSW",
|
||||
"doc_type": "textual_document",
|
||||
"policy": "skip_ocr",
|
||||
"chunks": 1,
|
||||
"status": "indexed",
|
||||
"detail": "",
|
||||
"timestamp": "2026-05-11T03:54:57.820068"
|
||||
},
|
||||
{
|
||||
"name": "Quy-dinh-luu-tru-ho-so.docx",
|
||||
"item_id": "01BP532D7R5UFAJ3N3FZC2LUGZ4EWKXVSV",
|
||||
"doc_type": "textual_document",
|
||||
"policy": "skip_ocr",
|
||||
"chunks": 1,
|
||||
"status": "indexed",
|
||||
"detail": "",
|
||||
"timestamp": "2026-05-11T03:55:00.316683"
|
||||
},
|
||||
{
|
||||
"name": "Mo-ta-nghiep-vu.xlsx",
|
||||
"item_id": "01BP532D2GHD2SMYQZZRBJ5YBYXH32YLCC",
|
||||
"doc_type": "spreadsheet",
|
||||
"policy": "skip_ocr",
|
||||
"chunks": 1,
|
||||
"status": "indexed",
|
||||
"detail": "",
|
||||
"timestamp": "2026-05-11T03:55:02.318406"
|
||||
},
|
||||
{
|
||||
"name": "sample-layout.dxf",
|
||||
"item_id": "01BP532D2ICBWDIKS4ARA2QXJLUYYPARDV",
|
||||
"doc_type": "drawing",
|
||||
"policy": "metadata_only",
|
||||
"chunks": 0,
|
||||
"status": "skipped",
|
||||
"detail": "Native CAD drawing format",
|
||||
"timestamp": "2026-05-11T03:55:03.301004"
|
||||
},
|
||||
{
|
||||
"name": "unsupported-binary.bin",
|
||||
"item_id": "01BP532DZ77VD5TK6SVRC3EBEF3PTWPQ7J",
|
||||
"doc_type": "binary",
|
||||
"policy": "unsupported",
|
||||
"chunks": 0,
|
||||
"status": "skipped",
|
||||
"detail": "Unsupported or binary extension: .bin",
|
||||
"timestamp": "2026-05-11T03:55:04.189531"
|
||||
},
|
||||
{
|
||||
"name": "mystery-file.xyzbin",
|
||||
"item_id": "01BP532D7RTGNA3Q2TRRAIOS7LPEIBRAVT",
|
||||
"doc_type": "binary",
|
||||
"policy": "unsupported",
|
||||
"chunks": 0,
|
||||
"status": "skipped",
|
||||
"detail": "Unsupported or binary extension: .xyzbin",
|
||||
"timestamp": "2026-05-11T03:55:05.013405"
|
||||
},
|
||||
{
|
||||
"name": "README.txt",
|
||||
"item_id": "01BP532D6PKB3WWG4X5VGYBMG7IFYZTG6M",
|
||||
"doc_type": "textual_document",
|
||||
"policy": "skip_ocr",
|
||||
"chunks": 1,
|
||||
"status": "indexed",
|
||||
"detail": "",
|
||||
"timestamp": "2026-05-11T03:55:06.986536"
|
||||
},
|
||||
{
|
||||
"name": "Bien-ban-noi-bo-restricted.docx",
|
||||
"item_id": "01BP532D65XW2KEXQQMRF3JVLAQZOKIW2V",
|
||||
"doc_type": "textual_document",
|
||||
"policy": "skip_ocr",
|
||||
"chunks": 1,
|
||||
"status": "indexed",
|
||||
"detail": "",
|
||||
"timestamp": "2026-05-11T03:55:09.096708"
|
||||
},
|
||||
{
|
||||
"name": "Bang-ngan-sach-du-an.xlsx",
|
||||
"item_id": "01BP532D6KRPO27NSMUBC3FXJYN7TKDMVR",
|
||||
"doc_type": "spreadsheet",
|
||||
"policy": "skip_ocr",
|
||||
"chunks": 1,
|
||||
"status": "indexed",
|
||||
"detail": "",
|
||||
"timestamp": "2026-05-11T03:55:11.376444"
|
||||
}
|
||||
],
|
||||
"errors": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user