From eae6467b7549f7b153db5f7f8b3875cf8d0e2b9f Mon Sep 17 00:00:00 2001 From: DerDavidBohl Date: Mon, 29 Sep 2025 16:03:32 +0200 Subject: [PATCH] Update API --- .../dirigent/deployments/management/DeploymentsService.java | 2 +- frontend/src/app/overview/api.service.ts | 2 +- frontend/src/app/overview/overview.component.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/org/davidbohl/dirigent/deployments/management/DeploymentsService.java b/backend/src/main/java/org/davidbohl/dirigent/deployments/management/DeploymentsService.java index cbe9861..ef17a31 100644 --- a/backend/src/main/java/org/davidbohl/dirigent/deployments/management/DeploymentsService.java +++ b/backend/src/main/java/org/davidbohl/dirigent/deployments/management/DeploymentsService.java @@ -132,7 +132,7 @@ public class DeploymentsService { boolean deployWouldChangeState = optionalState.isEmpty() || optionalState.get().getState() != DeploymentState.State.RUNNING; - + if (!updated && !forceRecreate && !deployWouldChangeState) { applicationEventPublisher.publishEvent(new DeploymentStateEvent(this, deployment.name(), DeploymentState.State.RUNNING, "Deployment '%s' successfully started".formatted(deployment.name()))); logger.info("No update, forced recreation or changed states in deployment. Skipping {}", deployment.name()); diff --git a/frontend/src/app/overview/api.service.ts b/frontend/src/app/overview/api.service.ts index effb270..504d43b 100644 --- a/frontend/src/app/overview/api.service.ts +++ b/frontend/src/app/overview/api.service.ts @@ -35,6 +35,6 @@ export class ApiService { } startDeployment(deploymentState: Deployment, force: boolean): Observable { - return this.http.post(`api/v1/deployments/${deploymentState.name}/start?force=${force}`, {}); + return this.http.post(`api/v1/deployments/${deploymentState.name}/start?forceRecreate=${force}`, {}); } } diff --git a/frontend/src/app/overview/overview.component.ts b/frontend/src/app/overview/overview.component.ts index f610cf9..703eb26 100644 --- a/frontend/src/app/overview/overview.component.ts +++ b/frontend/src/app/overview/overview.component.ts @@ -120,7 +120,7 @@ export class OverviewComponent implements OnInit { } ngOnInit(): void { - this.selectedFilterValues$.next(['RUNNING', 'FAILED', 'STOPPED']); + this.selectedFilterValues$.next(['RUNNING', 'STOPPED', 'FAILED', 'UPDATED', 'UNKNOWN', 'STARTING', 'STOPPING']); this.sort$.next({active: 'name', direction: 'asc'}); this.search$.next(''); }