feat: show feishu notification status
This commit is contained in:
@@ -11,6 +11,7 @@ from review_agent.application_form_fill.workflow import (
|
||||
start_application_form_fill_workflow,
|
||||
)
|
||||
from review_agent.models import ApplicationFormFillBatch, Conversation, ExportedSummaryFile, FileSummaryBatch, WorkflowNodeRun
|
||||
from review_agent.notifications.presenter import serialize_notification_records
|
||||
|
||||
|
||||
@require_http_methods(["GET"])
|
||||
@@ -75,6 +76,7 @@ def batch_status(request, batch_id: int):
|
||||
workflow_type="application_form_fill",
|
||||
workflow_batch_id=batch.pk,
|
||||
).order_by("id")
|
||||
notifications = serialize_notification_records("application_form_fill", batch.pk)
|
||||
return JsonResponse(
|
||||
{
|
||||
"batch": {
|
||||
@@ -112,6 +114,8 @@ def batch_status(request, batch_id: int):
|
||||
}
|
||||
for export in exports
|
||||
],
|
||||
"notifications": notifications,
|
||||
"latest_notification": notifications[0] if notifications else None,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user