mirror of
https://github.com/DerDavidBohl/dirigent-spring.git
synced 2026-02-19 10:09:18 -06:00
Update API
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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}`, {});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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('');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user