Fix API/frontend type mismatch for dashboard

- Backend: Change 'id' to 'artifact_id' in most_referenced_artifacts response
- Backend: Add content_type field to referenced artifacts
- Frontend: Add orphaned_size_bytes to Stats interface
- Frontend: Add missing fields to DeduplicationStats interface
This commit is contained in:
Mondo Diaz
2026-01-05 15:05:41 -06:00
parent e37e1892b2
commit c977d1d465
2 changed files with 8 additions and 1 deletions

View File

@@ -2436,11 +2436,12 @@ def get_deduplication_stats(
most_referenced = [
{
"id": a.id,
"artifact_id": a.id,
"ref_count": a.ref_count,
"size": a.size,
"storage_saved": a.size * (a.ref_count - 1),
"original_name": a.original_name,
"content_type": a.content_type,
}
for a in top_artifacts
]