feat(keel): reflect change in how resource history works in Keel API
MODIFY
gate-core/src/main/groovy/com/netflix/spinnaker/gate/services/internal/KeelService.java
gate-core/src/main/groovy/com/netflix/spinnaker/gate/services/internal/KeelService.java
@@ -19,7 +19,6 @@ package com.netflix.spinnaker.gate.services.internal;
import com.netflix.spinnaker.kork.manageddelivery.model.Resource;
import com.netflix.spinnaker.kork.manageddelivery.model.ResourceEvent;
-import java.time.Instant;
import java.util.List;
import java.util.Map;
import retrofit.http.Body;
@@ -32,7 +31,7 @@ import retrofit.http.Query;
public interface KeelService {
@GET("/resources/events/{name}")
- List<ResourceEvent> getResourceEvents(@Path("name") String name, @Query("since") Instant since);
+ List<ResourceEvent> getResourceEvents(@Path("name") String name, @Query("limit") Integer limit);
@GET("/resources/{name}")
Resource getResource(@Path("name") String name);

MODIFY
gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/HistoryController.java
gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/HistoryController.java
@@ -4,7 +4,6 @@ import com.netflix.spinnaker.gate.services.internal.KeelService;
import com.netflix.spinnaker.kork.manageddelivery.model.ResourceEvent;
import groovy.util.logging.Slf4j;
import io.swagger.annotations.ApiOperation;
-import java.time.Instant;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -34,7 +33,7 @@ public class HistoryController {
@RequestMapping(value = "/{name}", method = RequestMethod.GET)
List<ResourceEvent> getHistory(
@PathVariable("name") String name,
- @RequestParam(value = "since", required = false) Instant since) {
- return keelService.getResourceEvents(name, since);
+ @RequestParam(value = "limit", required = false) Integer limit) {
+ return keelService.getResourceEvents(name, limit);
}
}

feat(keel): reflect change in how resource history works in Keel API