(ui) Surface retention warnings on run detail
Show host-level retention warnings on run detail pages so successful or warning runs still expose scheduled prune limit issues and incomplete snapshots that need operator attention.
This commit is contained in:
@@ -429,6 +429,7 @@ def run_detail(request, run_id: int):
|
||||
"failure_summary": failure.get("message") or failure.get("summary") or "",
|
||||
"prune_result": prune_result,
|
||||
"has_prune_result": bool(prune_result),
|
||||
"retention_warning": _retention_warning_for_host(run.host, _schedule_for_host(run.host)),
|
||||
"rsync_log_path": str(rsync_log_path) if rsync_log_path is not None else "",
|
||||
"rsync_log_exists": bool(rsync_log_path and rsync_log_path.exists()),
|
||||
"rsync_log_tail": rsync_log_tail,
|
||||
|
||||
Reference in New Issue
Block a user