feat: Display document reindexing status in the sidebar by adding document ID to logs

This commit is contained in:
Anish Sarkar 2025-12-28 01:07:42 +05:30
parent 2570360079
commit 8b10b0cd24
5 changed files with 33 additions and 4 deletions

View file

@ -319,6 +319,9 @@ async def get_logs_summary(
if log.log_metadata
else "Unknown"
)
document_id = (
log.log_metadata.get("document_id") if log.log_metadata else None
)
summary["active_tasks"].append(
{
"id": log.id,
@ -326,6 +329,7 @@ async def get_logs_summary(
"message": log.message,
"started_at": log.created_at,
"source": log.source,
"document_id": document_id,
}
)