Recover empty Care demo tenants after onboarding races.
Deploy Ladill Care / deploy (push) Successful in 54s

Demo Pro was left as an empty workflow shell after lock-timeout races; clear leftover rollout flags on seed, sync-reseed empty tenants on login, and repair missing facility workflow indexes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-17 21:38:21 +00:00
co-authored by Cursor
parent e172d3c5d1
commit c461430441
7 changed files with 247 additions and 55 deletions
+5
View File
@@ -132,6 +132,11 @@ class DemoSeedCommandTest extends TestCase
$this->assertSame($appointments, Appointment::query()->where('owner_ref', $user->public_id)->count());
$this->assertSame($orgs, Organization::query()->where('owner_ref', $user->public_id)->count());
$this->assertSame(1, Branch::query()->where('owner_ref', $user->public_id)->count());
$organization = Organization::query()->where('owner_ref', $user->public_id)->first();
$this->assertTrue((bool) data_get($organization?->settings, 'demo'));
$this->assertFalse((bool) data_get($organization?->settings, 'rollout.workflow_engine'));
$this->assertFalse((bool) data_get($organization?->settings, 'rollout.financial_gates'));
}
public function test_reset_wipes_only_tenant_scoped_data_then_reseeds(): void