Fix tenant dashboard 500 (missing BaselineCompareRun) #125

Merged
ahmido merged 2 commits from feat/700-bugfix into dev 2026-02-20 21:07:35 +00:00
Owner

Summary

Fixes a tenant dashboard Internal Server Error caused by App\\Models\\BaselineCompareRun being referenced but not existing.

What changed

  • Dashboard widget now uses OperationRun (type=baseline_compare, context baseline_profile_id, ordered by completed_at) instead of the missing model.
  • Added regression test ensuring tenant dashboard renders when a baseline assignment exists.

Tests

  • vendor/bin/sail artisan test --compact tests/Feature/Filament/BaselineCompareNowWidgetTest.php
  • vendor/bin/sail artisan test --compact tests/Feature/Filament/TenantDashboardDbOnlyTest.php tests/Feature/Filament/TenantDashboardTenantScopeTest.php

Notes

No UX changes; this is a runtime stability fix only.

## Summary Fixes a tenant dashboard Internal Server Error caused by `App\\Models\\BaselineCompareRun` being referenced but not existing. ## What changed - Dashboard widget now uses `OperationRun` (`type=baseline_compare`, context baseline_profile_id, ordered by completed_at) instead of the missing model. - Added regression test ensuring tenant dashboard renders when a baseline assignment exists. ## Tests - `vendor/bin/sail artisan test --compact tests/Feature/Filament/BaselineCompareNowWidgetTest.php` - `vendor/bin/sail artisan test --compact tests/Feature/Filament/TenantDashboardDbOnlyTest.php tests/Feature/Filament/TenantDashboardTenantScopeTest.php` ## Notes No UX changes; this is a runtime stability fix only.
ahmido added 1 commit 2026-02-20 13:15:49 +00:00
ahmido added 1 commit 2026-02-20 21:07:13 +00:00
ahmido merged commit 558b5d3807 into dev 2026-02-20 21:07:35 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ahmido/TenantAtlas#125
No description provided.