-
refactor(diagnostics): address review — type enum, faster issues query, clearer doc
发布于
2026-07-01 08:34:10 +00:00 - ReportFailure.type is now a ReportFailureType enum (AGENT_INSIGHTS) with a
@JsonCreator that returns 400 for unknown values; drops the manual type check. - AgentInsightsIssueDAO.findIssues: replace window functions with a GROUP BY
aggregate subquery + a join to the latest report-day row (per BorisTkachenko),
so the aggregation can use the details index instead of partitioning every row. - Clarify the latestCount @Schema description.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
下载附件
- ReportFailure.type is now a ReportFailureType enum (AGENT_INSIGHTS) with a