Update API

This commit is contained in:
DerDavidBohl
2025-09-29 16:03:32 +02:00
parent 94a7d8413b
commit eae6467b75
3 changed files with 3 additions and 3 deletions

View File

@@ -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());

View File

@@ -35,6 +35,6 @@ export class ApiService {
}
startDeployment(deploymentState: Deployment, force: boolean): Observable<void> {
return this.http.post<void>(`api/v1/deployments/${deploymentState.name}/start?force=${force}`, {});
return this.http.post<void>(`api/v1/deployments/${deploymentState.name}/start?forceRecreate=${force}`, {});
}
}

View File

@@ -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('');
}