Auto-commit local changes before build (2026-01-04 12:11:00)
This commit is contained in:
parent
cea1df3e38
commit
985397afa1
@ -1 +1 @@
|
|||||||
v20260104-02-reports-html-content-and-success-rate-basis
|
v20260104-03-reports-html-view-selection-fix
|
||||||
|
|||||||
@ -1092,10 +1092,13 @@ def _export_html_response(report: ReportDefinition, report_id: int, view: str):
|
|||||||
html_content = (pres.get("html_content") or "").strip().lower() or None
|
html_content = (pres.get("html_content") or "").strip().lower() or None
|
||||||
|
|
||||||
# Default behavior:
|
# Default behavior:
|
||||||
# - single customer: jobs (snapshot preview) is more useful
|
# - honor selected view: Summary should not show Snapshot rows unless explicitly requested
|
||||||
# - multiple/all: customers table is useful
|
# - when html_content is not set, pick a sensible default based on scope + view
|
||||||
scope = (getattr(report, "customer_scope", None) or "all").strip().lower()
|
scope = (getattr(report, "customer_scope", None) or "all").strip().lower()
|
||||||
if not html_content:
|
if not html_content:
|
||||||
|
if scope == "single" and (view or "summary").strip().lower() == "summary":
|
||||||
|
html_content = "customers"
|
||||||
|
else:
|
||||||
html_content = "jobs" if scope == "single" else "customers"
|
html_content = "jobs" if scope == "single" else "customers"
|
||||||
|
|
||||||
include_customers = html_content in ("customers", "both")
|
include_customers = html_content in ("customers", "both")
|
||||||
@ -1103,7 +1106,7 @@ def _export_html_response(report: ReportDefinition, report_id: int, view: str):
|
|||||||
|
|
||||||
# Snapshot preview table can be requested either explicitly via view=snapshot
|
# Snapshot preview table can be requested either explicitly via view=snapshot
|
||||||
# or via the report config (include_jobs).
|
# or via the report config (include_jobs).
|
||||||
want_snapshot_table = (view or "summary").strip().lower() == "snapshot" or include_jobs
|
want_snapshot_table = (view or "summary").strip().lower() == "snapshot"
|
||||||
|
|
||||||
snapshot_table_html = ""
|
snapshot_table_html = ""
|
||||||
if want_snapshot_table:
|
if want_snapshot_table:
|
||||||
|
|||||||
@ -200,6 +200,15 @@
|
|||||||
- Excluded non-selected statuses (such as Missed runs) from success rate calculations to avoid distorted results.
|
- Excluded non-selected statuses (such as Missed runs) from success rate calculations to avoid distorted results.
|
||||||
- Aligned success rate logic consistently across HTML output, PDF summaries, and report statistics.
|
- Aligned success rate logic consistently across HTML output, PDF summaries, and report statistics.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## v20260104-03-reports-html-view-selection-fix
|
||||||
|
|
||||||
|
- Fixed HTML report generation to correctly respect the selected report view.
|
||||||
|
- When "Summary" is selected, the HTML output now renders the summary content instead of the snapshot with individual runs.
|
||||||
|
- Prevented unintended fallback to Snapshot view when generating HTML reports.
|
||||||
|
- Improved default behavior for single-customer summary reports to ensure a meaningful summary is displayed.
|
||||||
|
|
||||||
================================================================================================================================================
|
================================================================================================================================================
|
||||||
|
|
||||||
## v0.1.15
|
## v0.1.15
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user