Recover empty Care demo tenants after onboarding races.
Deploy Ladill Care / deploy (push) Successful in 54s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user