Compare commits
No commits in common. "1ed3b953da8e39b26047430963a3c4e0862b9a82" and "6737ba7d85131c8437bb71e5c6ca8d3276f97542" have entirely different histories.
1ed3b953da
...
6737ba7d85
@ -17,6 +17,8 @@
|
||||
use App\Support\OpsUx\OperationUxPresenter;
|
||||
use App\Support\OpsUx\OpsUxBrowserEvents;
|
||||
use BackedEnum;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Notifications\Notification;
|
||||
use Filament\Pages\Page;
|
||||
use UnitEnum;
|
||||
|
||||
|
||||
@ -105,6 +105,7 @@ protected function getActions(): array
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
OperationUxPresenter::queuedToast('policy.capture_snapshot')
|
||||
->actions([
|
||||
\Filament\Actions\Action::make('view_run')
|
||||
|
||||
@ -459,16 +459,9 @@ public static function table(Table $table): Table
|
||||
->url(OperationRunLinks::view($opRun, $tenant)),
|
||||
])
|
||||
->duration(8000)
|
||||
->sendToDatabase($initiator);
|
||||
}
|
||||
|
||||
OperationUxPresenter::queuedToast('policy_version.prune')
|
||||
->actions([
|
||||
Actions\Action::make('view_run')
|
||||
->label('View run')
|
||||
->url(OperationRunLinks::view($opRun, $tenant)),
|
||||
])
|
||||
->sendToDatabase($initiator)
|
||||
->send();
|
||||
}
|
||||
})
|
||||
->deselectRecordsAfterCompletion(),
|
||||
|
||||
@ -616,16 +609,9 @@ public static function table(Table $table): Table
|
||||
->url(OperationRunLinks::view($opRun, $tenant)),
|
||||
])
|
||||
->duration(8000)
|
||||
->sendToDatabase($initiator);
|
||||
}
|
||||
|
||||
OperationUxPresenter::queuedToast('policy_version.force_delete')
|
||||
->actions([
|
||||
Actions\Action::make('view_run')
|
||||
->label('View run')
|
||||
->url(OperationRunLinks::view($opRun, $tenant)),
|
||||
])
|
||||
->sendToDatabase($initiator)
|
||||
->send();
|
||||
}
|
||||
})
|
||||
->deselectRecordsAfterCompletion(),
|
||||
]),
|
||||
|
||||
@ -317,6 +317,7 @@ public function table(Table $table): Table
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
OperationUxPresenter::queuedToast((string) $opRun->type)
|
||||
->actions([
|
||||
\Filament\Actions\Action::make('view_run')
|
||||
|
||||
@ -5,7 +5,6 @@
|
||||
use App\Jobs\ExecuteRestoreRunJob;
|
||||
use App\Models\OperationRun;
|
||||
use App\Models\RestoreRun;
|
||||
use App\Services\BulkOperationService;
|
||||
use App\Services\Intune\AuditLogger;
|
||||
use App\Services\Intune\RestoreService;
|
||||
|
||||
@ -35,9 +34,6 @@
|
||||
expect($operationRun)->not->toBeNull();
|
||||
expect($operationRun?->status)->toBe('queued');
|
||||
|
||||
$this->mock(BulkOperationService::class, function ($mock): void {
|
||||
$mock->shouldReceive('sanitizeFailureReason')->andReturnUsing(fn (string $message): string => $message);
|
||||
});
|
||||
// Simulate downstream code updating RestoreRun status via query builder (no model events).
|
||||
$this->mock(RestoreService::class, function ($mock) use ($restoreRun): void {
|
||||
$mock->shouldReceive('executeForRun')
|
||||
@ -56,7 +52,6 @@
|
||||
$job->handle(
|
||||
app(RestoreService::class),
|
||||
app(AuditLogger::class),
|
||||
app(BulkOperationService::class),
|
||||
);
|
||||
|
||||
$operationRun = $operationRun?->fresh();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user