chore(orca): removed active executions / instance endpoint no longer in orca
MODIFY
gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/ExecutionsController.java
gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/ExecutionsController.java
*/
package com.netflix.spinnaker.gate.controllers;
-import com.netflix.spinnaker.gate.services.TaskService;
+import java.util.List;
import com.netflix.spinnaker.gate.services.internal.OrcaService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
@@ -24,28 +24,17 @@ import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
-import java.util.List;
-import java.util.Map;
-
@RequestMapping("/executions")
@RestController
public class ExecutionsController {
- private TaskService taskService;
private OrcaService orcaService;
@Autowired
- public ExecutionsController(TaskService taskService, OrcaService orcaService) {
- this.taskService = taskService;
+ public ExecutionsController(OrcaService orcaService) {
this.orcaService = orcaService;
}
- @ApiOperation(value = "Retrieve a list of active executions, grouped by Orca instance")
- @RequestMapping(value = "/activeByInstance", method = RequestMethod.GET)
- Map getActiveExecutionsByInstance() {
- return taskService.getActiveExecutionsByInstance();
- }
-
@ApiOperation(value = "Retrieve a list of the most recent pipeline executions for the provided `pipelineConfigIds` that match the provided `statuses` query parameter")
@RequestMapping(method = RequestMethod.GET)
List getLatestExecutionsByConfigIds(@RequestParam(value = "pipelineConfigIds") String pipelineConfigIds,

MODIFY
gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/TaskService.groovy
gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/TaskService.groovy
@@ -77,12 +77,6 @@ class TaskService {
} execute()
}
- Map getActiveExecutionsByInstance() {
- HystrixFactory.newMapCommand(GROUP, "getActiveExecutionsByInstance") {
- orcaService.getActiveExecutionsByInstance()
- } execute()
- }
-
/**
* @deprecated This pipeline operation does not belong here.
*/

MODIFY
gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OrcaService.groovy
gate-web/src/main/groovy/com/netflix/spinnaker/gate/services/internal/OrcaService.groovy
@@ -56,10 +56,6 @@ interface OrcaService {
@PUT("/tasks/cancel")
Map cancelTasks(@Body List<String> taskIds)
- @Headers("Accept: application/json")
- @GET("/executions/activeByInstance")
- Map getActiveExecutionsByInstance()
-
@Headers("Accept: application/json")
@GET("/pipelines")
List getLatestExecutionsByConfigIds(@Query("pipelineConfigIds") String pipelineConfigIds, @Query("limit") Integer limit, @Query("statuses") String statuses)

chore(orca): removed active executions / instance endpoint no longer in orca