Add support for selfserve_enabled lanes and synchronize behavior across tasks, sessions, and projections
- Introduced `selfserve_enabled` property for `department_lanes` with schema update, object properties, and associated methods/tests. - Enhanced `selfserve_wash_flow` and session logic to respect lane self-serve settings, including block handling and task filtering. - Updated API routes and Studio Graph projections to include `selfserve_enabled` in payloads and progress callbacks. - Added unit tests for session statuses, lane configuration, and blocking behavior due to disabled self-serve settings.
This commit is contained in:
@@ -75,6 +75,7 @@ it('documents the all-in-one self-serve studio replacement API', function (): vo
|
||||
expect($content)->toContain('/department/selfserve/studio/validate:');
|
||||
expect($content)->toContain('/department/selfserve/studio/simulate:');
|
||||
expect($content)->toContain('/department/selfserve/studio/path-outcomes:');
|
||||
expect($content)->toContain('/department/selfserve/studio/path-outcomes/stream:');
|
||||
expect($content)->toContain('/department/selfserve/studio/publish:');
|
||||
expect($content)->toContain('/department/selfserve/studio/rollback:');
|
||||
expect($content)->toContain('/department/selfserve/studio/gateway-action:');
|
||||
@@ -84,7 +85,9 @@ it('documents the all-in-one self-serve studio replacement API', function (): vo
|
||||
expect($content)->toContain('SelfserveStudioPathOutcomesRequest:');
|
||||
expect($content)->toContain('SelfserveStudioPathOutcomesResponse:');
|
||||
expect($content)->toContain('SelfserveStudioPathResult:');
|
||||
expect($content)->toContain('SelfserveStudioPathProgress:');
|
||||
expect($content)->toContain('projectSelfserveStudioPathOutcomes');
|
||||
expect($content)->toContain('streamSelfserveStudioPathOutcomes');
|
||||
expect($content)->toContain('runSelfserveStudioGatewayAction');
|
||||
});
|
||||
|
||||
@@ -96,6 +99,9 @@ it('defines reusable self-serve wash and machine type schemas', function (): voi
|
||||
expect($content)->toContain('SelfserveWashSummary:');
|
||||
expect($content)->toContain('MachineButtonPressWebhookResponse:');
|
||||
expect($content)->toContain('DepartmentSelfserveVehicleConditionMutationResponse:');
|
||||
expect($content)->toContain('DepartmentLane:');
|
||||
expect($content)->toContain('selfserve_enabled:');
|
||||
expect($content)->toContain('blocked_reason:');
|
||||
expect($content)->toContain('machine_type_id:');
|
||||
expect($content)->toContain('SelfServeLaneMachineRelayStatus:');
|
||||
expect($content)->toContain(' wash_started_at:');
|
||||
|
||||
Reference in New Issue
Block a user