1005 B
1005 B
Implementation Plan: BaselineCompareRun model bugfix
Branch: feat/700-bugfix | Date: 2026-02-20 | Spec: specs/feat/700-bugfix/spec.md
Summary
Fix runtime crash caused by a missing Eloquent model referenced by a Filament dashboard widget.
Technical Context
- PHP 8.4.x, Laravel 12
- Filament v5, Livewire v4
- PostgreSQL (Sail locally)
- Tests: Pest v4 (
vendor/bin/sail artisan test --compact)
Approach
- Identify intended storage for baseline compare runs:
- If a
baseline_compare_runstable already exists, implementApp\Models\BaselineCompareRunmapped to it. - If not, align the widget to an existing persistence type (likely
OperationRun) without changing UX.
- If a
- Add a regression test that exercises the tenant dashboard route and asserts a successful response.
- Run Pint on dirty files and run the focused test.
Risks
- Introducing a new model without an existing table could still fail at runtime. Prefer minimal, compatibility-first changes.