From fd50f7288907d3679f5e2d0b064253a6c34cf5cf Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Mon, 10 Nov 2025 21:31:06 +0100 Subject: [PATCH] fix: remove duplicate deployment queue call causing false error messages Removed duplicate queue_application_deployment() call in Heading.php deploy method that was causing "Deployment already queued for this commit" error to display even though deployment was successfully queued. Also changed notification type from 'success' to 'error' when deployment is actually skipped for proper user feedback. --- app/Livewire/Project/Application/Heading.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/app/Livewire/Project/Application/Heading.php b/app/Livewire/Project/Application/Heading.php index c89baea67..fc63c7f4b 100644 --- a/app/Livewire/Project/Application/Heading.php +++ b/app/Livewire/Project/Application/Heading.php @@ -101,7 +101,7 @@ public function deploy(bool $force_rebuild = false) force_rebuild: $force_rebuild, ); if ($result['status'] === 'skipped') { - $this->dispatch('success', 'Deployment skipped', $result['message']); + $this->dispatch('error', 'Deployment skipped', $result['message']); return; } @@ -113,18 +113,6 @@ public function deploy(bool $force_rebuild = false) 'last_restart_type' => null, ]); - $this->setDeploymentUuid(); - $result = queue_application_deployment( - application: $this->application, - deployment_uuid: $this->deploymentUuid, - force_rebuild: $force_rebuild, - ); - if ($result['status'] === 'skipped') { - $this->dispatch('success', 'Deployment skipped', $result['message']); - - return; - } - return $this->redirectRoute('project.application.deployment.show', [ 'project_uuid' => $this->parameters['project_uuid'], 'application_uuid' => $this->parameters['application_uuid'],