Werk #20173: Fix crash rendering BI availability reports filtered by a specific customer
| Component | Reporting & availability | ||
| Title | Fix crash rendering BI availability reports filtered by a specific customer | ||
| Date | Jul 1, 2026 | ||
| Level | Trivial Change | ||
| Class | Bug Fix | ||
| Compatibility | Compatible - no manual interaction needed | ||
| Checkmk versions & editions |
|
Previously, rendering a report that contained a BI aggregation availability
element crashed with KeyError: 'customer_id' when the report's customer
context was set to a specific customer.
BI aggregation rows did not carry the customer the aggregation is assigned to, so the customer filter could not be applied to them. The assigned customer is now propagated onto the aggregation's rows. Reports (and views) filtered by a specific customer therefore include only the BI aggregations assigned to that customer, and no longer crash. Aggregations without an assigned customer (global scope) are excluded from customer-specific reports, as expected.