From debc1745e064548130083774b28af7b486238d3e Mon Sep 17 00:00:00 2001 From: Nathan219 Date: Tue, 20 Sep 2016 15:03:45 -0700 Subject: [PATCH 1/2] remove the polling I added as a stop gap --- .../buildLogs/buildLogsController.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/client/directives/components/buildLogs/buildLogsController.js b/client/directives/components/buildLogs/buildLogsController.js index 96930dcfe..f99d58e65 100644 --- a/client/directives/components/buildLogs/buildLogsController.js +++ b/client/directives/components/buildLogs/buildLogsController.js @@ -6,9 +6,7 @@ function BuildLogsController( $scope, $rootScope, $timeout, - ahaGuide, errs, - keypather, launchDebugContainer, loading, updateInstanceWithNewBuild, @@ -60,25 +58,9 @@ function BuildLogsController( if (oldStream) { closeStream(oldStream); } - var pollingCount = 10; - function pollForCv() { - promisify(BLC.instance, 'fetch')() - .then(function (instance) { - keypather.set($scope, 'BLC.instance', instance); - }) - .finally(function () { - pollingCount--; - if (pollingCount > 0 && !keypather.get($scope, 'BLC.instance.attrs.contextVersion.build.dockerContainer')) { - $timeout(pollForCv, 1000); - } - }); - } BLC.streamFailure = false; var stream = null; if (BLC.instance) { - if (ahaGuide.isInGuide()) { - $timeout(pollForCv, 1000); - } BLC.buildStatus = 'starting'; BLC.buildLogs = []; BLC.buildLogTiming = {}; From b04cf3d937768c101363eaddd220f2e1ce13fcf7 Mon Sep 17 00:00:00 2001 From: Nathan219 Date: Wed, 21 Sep 2016 16:31:00 -0700 Subject: [PATCH 2/2] update api-client to latest for the best fixes --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 816086fbe..0f12b7304 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ ], "dependencies": { "101": "0.14.1", - "@runnable/api-client": "v9.2.1", + "@runnable/api-client": "v9.2.2", "angular": "1.3.15", "angular-animate": "1.3.15", "angular-clipboard": "1.4.x",