Auto-commit local changes before build (2026-03-20 11:36:15)
This commit is contained in:
parent
c7021d393d
commit
e46d4be1c2
@ -198,6 +198,8 @@ def inbox_message_detail(message_id: int):
|
||||
if _run and getattr(_run, "source_type", None) == "cloud_connect" and _run.job_id:
|
||||
_cc_acc = CloudConnectAccount.query.filter_by(job_id=_run.job_id).first()
|
||||
if _cc_acc:
|
||||
# Use the run's own stored status (not the account's latest status)
|
||||
# so historical runs show their actual status, not today's.
|
||||
cloud_connect_summary = {
|
||||
"user": _cc_acc.user or "",
|
||||
"section": _cc_acc.section or "",
|
||||
@ -207,7 +209,7 @@ def inbox_message_detail(message_id: int):
|
||||
"total_quota": _cc_acc.total_quota or "",
|
||||
"free_space": _cc_acc.free_space or "",
|
||||
"last_active": _cc_acc.last_active_raw or "",
|
||||
"status": _cc_acc.last_status or "",
|
||||
"status": _run.status or "",
|
||||
}
|
||||
# Replace MailObject list with per-run objects from run_object_links
|
||||
cc_rows = db.session.execute(
|
||||
|
||||
@ -1492,7 +1492,7 @@ def run_checks_details():
|
||||
"total_quota": _cc_acc.total_quota or "",
|
||||
"free_space": _cc_acc.free_space or "",
|
||||
"last_active": _cc_acc.last_active_raw or "",
|
||||
"status": _cc_acc.last_status or "",
|
||||
"status": run.status or "",
|
||||
}
|
||||
# Keep mail meta, EML link, and body for the collapsible source panel.
|
||||
if msg:
|
||||
|
||||
@ -738,8 +738,10 @@ function renderObjects(objects) {
|
||||
document.getElementById("run_msg_job").textContent = meta.job_name || "";
|
||||
var overallEl = document.getElementById("run_msg_overall");
|
||||
if (overallEl) {
|
||||
var d = statusDotClass(meta.overall_status);
|
||||
overallEl.innerHTML = (d ? ('<span class="status-dot ' + d + ' me-2" aria-hidden="true"></span>') : '') + escapeHtml(meta.overall_status || "");
|
||||
// For CC runs use the run's own status; for regular runs use the mail's overall_status.
|
||||
var overallStatus = (data.cloud_connect_summary ? (data.cloud_connect_summary.status || "") : (meta.overall_status || ""));
|
||||
var d = statusDotClass(overallStatus);
|
||||
overallEl.innerHTML = (d ? ('<span class="status-dot ' + d + ' me-2" aria-hidden="true"></span>') : '') + escapeHtml(overallStatus);
|
||||
}
|
||||
document.getElementById("run_msg_overall_message").textContent = meta.overall_message || "";
|
||||
document.getElementById("run_msg_customer").textContent = meta.customer_name || "";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user