From b7a65fc2ea20ea32dca94205618f94aea3939f33 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 18 Nov 2017 21:28:54 +0100 Subject: Drop: /projects/.../builds from controller API --- ick2/projectapi.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'ick2/projectapi.py') diff --git a/ick2/projectapi.py b/ick2/projectapi.py index fec4585..71fe5ee 100644 --- a/ick2/projectapi.py +++ b/ick2/projectapi.py @@ -29,7 +29,6 @@ class ProjectAPI(ick2.ResourceApiBase): def get_pipeline_routes(self, path): # pragma: no cover pipeline_path = '{}//pipelines/'.format(path) - builds_path = '{}//builds'.format(path) return [ { 'method': 'GET', @@ -41,11 +40,6 @@ class ProjectAPI(ick2.ResourceApiBase): 'path': pipeline_path, 'callback': self.PUT(self.set_pipeline_callback), }, - { - 'method': 'GET', - 'path': builds_path, - 'callback': self.GET(self.get_builds), - }, ] def get_pipeline(self, project, pipeline): @@ -77,10 +71,3 @@ class ProjectAPI(ick2.ResourceApiBase): self._state.update_resource(self._type_name, project, p) return {'status': state} raise ick2.NotFound() - - def get_builds(self, project): - p = self._state.get_resource(self._type_name, project) - return { - 'project': project, - 'builds': p.get('builds', []), - } -- cgit v1.2.1