1672a042afa31a1905d5a329ee82c3206ea091de
Problem:
- GET /api/v1/files (list) returns DB status
- GET /api/v1/file/:uuid (detail) returns DB status
- DB status may be stale
- Results in inconsistency
Solution:
1. Add compute_file_status() helper function
- Checks processing_status->>'phase'
- Checks processor JSON files
- Derives actual status
2. Fix get_file_detail:
- Always use computed status
- Ensures accuracy for single file queries
3. Fix list_files:
- Add sync_status query parameter
- sync_status=true: compute status for each file
- sync_status=false (default): use DB status
- Balances performance and accuracy
Verification: cargo check --lib passes
Impact:
- detail endpoint now returns accurate status
- list endpoint can optionally sync status
- Both endpoints use same derivation logic
G-4 status: ✅ Completed
momentry_core
Digital asset management system with video analysis and RAG - Production version with API Key authentication
Description
Digital asset management system with video analysis and RAG - Production version with API Key authentication
Releases
2
v0.9.20260325_151200
Latest
Languages
PLpgSQL
30.5%
Python
27.4%
HTML
20.4%
Rust
13.3%
Shell
3.1%
Other
5.2%