Auto-commit local changes before build (2026-01-04 14:34:57)
This commit is contained in:
parent
c880121cd3
commit
b3f3ac90fd
@ -1 +1 @@
|
|||||||
v20260104-06-reports-html-jobs-summary-success-rate
|
v20260104-07-reports-html-export-fix-json
|
||||||
|
|||||||
@ -1392,8 +1392,8 @@ def _export_html_response(report: ReportDefinition, report_id: int, view: str):
|
|||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
(function() {{
|
(function() {{
|
||||||
const labels = {_json.dumps(job_labels)};
|
const labels = {json.dumps(job_labels)};
|
||||||
const data = {_json.dumps(job_rates)};
|
const data = {json.dumps(job_rates)};
|
||||||
const ctx = document.getElementById('jobSuccessRateChart');
|
const ctx = document.getElementById('jobSuccessRateChart');
|
||||||
if (!ctx) return;
|
if (!ctx) return;
|
||||||
new Chart(ctx, {{
|
new Chart(ctx, {{
|
||||||
@ -1638,8 +1638,8 @@ def _export_html_response(report: ReportDefinition, report_id: int, view: str):
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const trends = {_json.dumps(trends)};
|
const trends = {json.dumps(trends)};
|
||||||
const dist = {_json.dumps(status_dist)};
|
const dist = {json.dumps(status_dist)};
|
||||||
const labels = trends.map(t => t.day);
|
const labels = trends.map(t => t.day);
|
||||||
const rates = trends.map(t => t.success_rate);
|
const rates = trends.map(t => t.success_rate);
|
||||||
|
|
||||||
|
|||||||
@ -238,6 +238,16 @@
|
|||||||
- Added a **per-job success rate chart** to the HTML report to visualize backup performance per job.
|
- Added a **per-job success rate chart** to the HTML report to visualize backup performance per job.
|
||||||
- Prevented job status from being presented as a summary value, as it represents a momentary state rather than a stable metric.
|
- Prevented job status from being presented as a summary value, as it represents a momentary state rather than a stable metric.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## v20260104-07-reports-html-export-fix-json
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Resolved Internal Server Error when downloading HTML reports.
|
||||||
|
- Fixed an `UnboundLocalError` caused by an uninitialized `_json` variable in the HTML export response.
|
||||||
|
- Replaced usage of `_json` with a consistent `json.dumps(...)` call using the top-level JSON import.
|
||||||
|
- Ensured stable HTML report export handling across all report download actions.
|
||||||
|
|
||||||
================================================================================================================================================
|
================================================================================================================================================
|
||||||
|
|
||||||
## v0.1.15
|
## v0.1.15
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user