{"action":"created","comment":{"url":"https://api.github.com/repos/spinnaker/deck/pulls/comments/217522490","pull_request_review_id":155251351,"id":217522490,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzUyMjQ5MA==","diff_hunk":"@@ -0,0 +1,132 @@\n+'use strict';\n+\n+const angular = require('angular');\n+\n+import { AccountService, Registry, StageConstants } from '@spinnaker/core';\n+\n+module.exports = angular\n+  .module('spinnaker.cloudfoundry.pipeline.stage.resizeAsgStage', [])\n+  .config(function() {\n+    Registry.pipeline.registerStage({\n+      provides: 'resizeServerGroup',\n+      cloudProvider: 'cloudfoundry',\n+      templateUrl: require('./resizeAsgStage.html'),\n+      executionStepLabelUrl: require('./resizeAsgStepLabel.html'),\n+      accountExtractor: stage => [stage.context.credentials],\n+      configAccountExtractor: stage => [stage.credentials],\n+      defaultTimeoutMs: 3 * 60 * 60 * 1000 + 21 * 60 * 1000, // 3h21m\n+      validators: [\n+        {\n+          type: 'cfTargetImpedance',\n+          message:\n+            'This pipeline will attempt to resize a server group without deploying a new version into the same cluster.',\n+        },\n+        { type: 'requiredField', fieldName: 'cluster' },\n+        { type: 'requiredField', fieldName: 'target' },\n+        { type: 'requiredField', fieldName: 'action' },\n+        { type: 'requiredField', fieldName: 'regions' },\n+        { type: 'requiredField', fieldName: 'credentials', fieldLabel: 'account' },\n+        { type: 'cfInstanceSizeField', fieldName: 'instanceCount', min: 0, preventSave: true },\n+        { type: 'cfInstanceSizeField', fieldName: 'memoryInMb', min: 256, preventSave: true },\n+        { type: 'cfInstanceSizeField', fieldName: 'diskInMb', min: 256, preventSave: true },\n+      ],\n+    });\n+  })\n+  .controller('cloudfoundryResizeAsgStageCtrl', function($scope) {\n+    var ctrl = this;\n+\n+    let stage = $scope.stage;\n+\n+    $scope.state = {\n+      accounts: false,\n+      regionsLoaded: false,\n+    };\n+\n+    AccountService.listAccounts('cloudfoundry').then(function(accounts) {\n+      $scope.accounts = accounts;\n+      $scope.state.accounts = true;\n+    });\n+\n+    $scope.resizeTargets = StageConstants.TARGET_LIST;\n+\n+    $scope.scaleActions = [\n+      //      {","path":"app/scripts/modules/cloudfoundry/src/pipeline/stages/resizeAsg/cloudfoundryResizeAsgStage.js","position":53,"original_position":53,"commit_id":"0a48079d9074e37137c32da3b6252a493261eb9f","original_commit_id":"0a48079d9074e37137c32da3b6252a493261eb9f","user":{"login":"danielpeach","id":13868700,"node_id":"MDQ6VXNlcjEzODY4NzAw","avatar_url":"https://avatars3.githubusercontent.com/u/13868700?v=4","gravatar_id":"","url":"https://api.github.com/users/danielpeach","html_url":"https://github.com/danielpeach","followers_url":"https://api.github.com/users/danielpeach/followers","following_url":"https://api.github.com/users/danielpeach/following{/other_user}","gists_url":"https://api.github.com/users/danielpeach/gists{/gist_id}","starred_url":"https://api.github.com/users/danielpeach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielpeach/subscriptions","organizations_url":"https://api.github.com/users/danielpeach/orgs","repos_url":"https://api.github.com/users/danielpeach/repos","events_url":"https://api.github.com/users/danielpeach/events{/privacy}","received_events_url":"https://api.github.com/users/danielpeach/received_events","type":"User","site_admin":false},"body":"uncomment or delete?","created_at":"2018-09-13T20:26:23Z","updated_at":"2018-09-13T20:34:50Z","html_url":"https://github.com/spinnaker/deck/pull/5734#discussion_r217522490","pull_request_url":"https://api.github.com/repos/spinnaker/deck/pulls/5734","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/spinnaker/deck/pulls/comments/217522490"},"html":{"href":"https://github.com/spinnaker/deck/pull/5734#discussion_r217522490"},"pull_request":{"href":"https://api.github.com/repos/spinnaker/deck/pulls/5734"}}},"pull_request":{"url":"https://api.github.com/repos/spinnaker/deck/pulls/5734","id":215327916,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1MzI3OTE2","html_url":"https://github.com/spinnaker/deck/pull/5734","diff_url":"https://github.com/spinnaker/deck/pull/5734.diff","patch_url":"https://github.com/spinnaker/deck/pull/5734.patch","issue_url":"https://api.github.com/repos/spinnaker/deck/issues/5734","number":5734,"state":"open","locked":false,"title":"feature(provider/cf): new CloudFoundry implementation","user":{"login":"pivotal-Jammy-Louie","id":8474965,"node_id":"MDQ6VXNlcjg0NzQ5NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/8474965?v=4","gravatar_id":"","url":"https://api.github.com/users/pivotal-Jammy-Louie","html_url":"https://github.com/pivotal-Jammy-Louie","followers_url":"https://api.github.com/users/pivotal-Jammy-Louie/followers","following_url":"https://api.github.com/users/pivotal-Jammy-Louie/following{/other_user}","gists_url":"https://api.github.com/users/pivotal-Jammy-Louie/gists{/gist_id}","starred_url":"https://api.github.com/users/pivotal-Jammy-Louie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pivotal-Jammy-Louie/subscriptions","organizations_url":"https://api.github.com/users/pivotal-Jammy-Louie/orgs","repos_url":"https://api.github.com/users/pivotal-Jammy-Louie/repos","events_url":"https://api.github.com/users/pivotal-Jammy-Louie/events{/privacy}","received_events_url":"https://api.github.com/users/pivotal-Jammy-Louie/received_events","type":"User","site_admin":false},"body":"This is part of a series of commits to introduce the new CloudFoundry implementation. The existing provider code was unused.","created_at":"2018-09-13T15:42:22Z","updated_at":"2018-09-13T20:34:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce099bd315cdb083252c3281f48c13d19db9f400","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/spinnaker/deck/pulls/5734/commits","review_comments_url":"https://api.github.com/repos/spinnaker/deck/pulls/5734/comments","review_comment_url":"https://api.github.com/repos/spinnaker/deck/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spinnaker/deck/issues/5734/comments","statuses_url":"https://api.github.com/repos/spinnaker/deck/statuses/0a48079d9074e37137c32da3b6252a493261eb9f","head":{"label":"pivotal-Jammy-Louie:cloudfoundry","ref":"cloudfoundry","sha":"0a48079d9074e37137c32da3b6252a493261eb9f","user":{"login":"pivotal-Jammy-Louie","id":8474965,"node_id":"MDQ6VXNlcjg0NzQ5NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/8474965?v=4","gravatar_id":"","url":"https://api.github.com/users/pivotal-Jammy-Louie","html_url":"https://github.com/pivotal-Jammy-Louie","followers_url":"https://api.github.com/users/pivotal-Jammy-Louie/followers","following_url":"https://api.github.com/users/pivotal-Jammy-Louie/following{/other_user}","gists_url":"https://api.github.com/users/pivotal-Jammy-Louie/gists{/gist_id}","starred_url":"https://api.github.com/users/pivotal-Jammy-Louie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pivotal-Jammy-Louie/subscriptions","organizations_url":"https://api.github.com/users/pivotal-Jammy-Louie/orgs","repos_url":"https://api.github.com/users/pivotal-Jammy-Louie/repos","events_url":"https://api.github.com/users/pivotal-Jammy-Louie/events{/privacy}","received_events_url":"https://api.github.com/users/pivotal-Jammy-Louie/received_events","type":"User","site_admin":false},"repo":{"id":148646484,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg2NDY0ODQ=","name":"deck","full_name":"pivotal-Jammy-Louie/deck","owner":{"login":"pivotal-Jammy-Louie","id":8474965,"node_id":"MDQ6VXNlcjg0NzQ5NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/8474965?v=4","gravatar_id":"","url":"https://api.github.com/users/pivotal-Jammy-Louie","html_url":"https://github.com/pivotal-Jammy-Louie","followers_url":"https://api.github.com/users/pivotal-Jammy-Louie/followers","following_url":"https://api.github.com/users/pivotal-Jammy-Louie/following{/other_user}","gists_url":"https://api.github.com/users/pivotal-Jammy-Louie/gists{/gist_id}","starred_url":"https://api.github.com/users/pivotal-Jammy-Louie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pivotal-Jammy-Louie/subscriptions","organizations_url":"https://api.github.com/users/pivotal-Jammy-Louie/orgs","repos_url":"https://api.github.com/users/pivotal-Jammy-Louie/repos","events_url":"https://api.github.com/users/pivotal-Jammy-Louie/events{/privacy}","received_events_url":"https://api.github.com/users/pivotal-Jammy-Louie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pivotal-Jammy-Louie/deck","description":"Management UI for Spinnaker","fork":true,"url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck","forks_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/forks","keys_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/teams","hooks_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/hooks","issue_events_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/issues/events{/number}","events_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/events","assignees_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/assignees{/user}","branches_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/branches{/branch}","tags_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/tags","blobs_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/git/refs{/sha}","trees_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/statuses/{sha}","languages_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/languages","stargazers_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/stargazers","contributors_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/contributors","subscribers_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/subscribers","subscription_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/subscription","commits_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/commits{/sha}","git_commits_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/git/commits{/sha}","comments_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/comments{/number}","issue_comment_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/issues/comments{/number}","contents_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/contents/{+path}","compare_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/merges","archive_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/downloads","issues_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/issues{/number}","pulls_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/pulls{/number}","milestones_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/milestones{/number}","notifications_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/labels{/name}","releases_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/releases{/id}","deployments_url":"https://api.github.com/repos/pivotal-Jammy-Louie/deck/deployments","created_at":"2018-09-13T14:02:45Z","updated_at":"2018-09-13T14:02:55Z","pushed_at":"2018-09-13T16:03:27Z","git_url":"git://github.com/pivotal-Jammy-Louie/deck.git","ssh_url":"git@github.com:pivotal-Jammy-Louie/deck.git","clone_url":"https://github.com/pivotal-Jammy-Louie/deck.git","svn_url":"https://github.com/pivotal-Jammy-Louie/deck","homepage":"","size":33105,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spinnaker:master","ref":"master","sha":"95c3420e9d569b45bf0d65ab4ec9f623328a0c9a","user":{"login":"spinnaker","id":7634182,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2MzQxODI=","avatar_url":"https://avatars1.githubusercontent.com/u/7634182?v=4","gravatar_id":"","url":"https://api.github.com/users/spinnaker","html_url":"https://github.com/spinnaker","followers_url":"https://api.github.com/users/spinnaker/followers","following_url":"https://api.github.com/users/spinnaker/following{/other_user}","gists_url":"https://api.github.com/users/spinnaker/gists{/gist_id}","starred_url":"https://api.github.com/users/spinnaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinnaker/subscriptions","organizations_url":"https://api.github.com/users/spinnaker/orgs","repos_url":"https://api.github.com/users/spinnaker/repos","events_url":"https://api.github.com/users/spinnaker/events{/privacy}","received_events_url":"https://api.github.com/users/spinnaker/received_events","type":"Organization","site_admin":false},"repo":{"id":21953642,"node_id":"MDEwOlJlcG9zaXRvcnkyMTk1MzY0Mg==","name":"deck","full_name":"spinnaker/deck","owner":{"login":"spinnaker","id":7634182,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2MzQxODI=","avatar_url":"https://avatars1.githubusercontent.com/u/7634182?v=4","gravatar_id":"","url":"https://api.github.com/users/spinnaker","html_url":"https://github.com/spinnaker","followers_url":"https://api.github.com/users/spinnaker/followers","following_url":"https://api.github.com/users/spinnaker/following{/other_user}","gists_url":"https://api.github.com/users/spinnaker/gists{/gist_id}","starred_url":"https://api.github.com/users/spinnaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinnaker/subscriptions","organizations_url":"https://api.github.com/users/spinnaker/orgs","repos_url":"https://api.github.com/users/spinnaker/repos","events_url":"https://api.github.com/users/spinnaker/events{/privacy}","received_events_url":"https://api.github.com/users/spinnaker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spinnaker/deck","description":"Management UI for Spinnaker","fork":false,"url":"https://api.github.com/repos/spinnaker/deck","forks_url":"https://api.github.com/repos/spinnaker/deck/forks","keys_url":"https://api.github.com/repos/spinnaker/deck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spinnaker/deck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spinnaker/deck/teams","hooks_url":"https://api.github.com/repos/spinnaker/deck/hooks","issue_events_url":"https://api.github.com/repos/spinnaker/deck/issues/events{/number}","events_url":"https://api.github.com/repos/spinnaker/deck/events","assignees_url":"https://api.github.com/repos/spinnaker/deck/assignees{/user}","branches_url":"https://api.github.com/repos/spinnaker/deck/branches{/branch}","tags_url":"https://api.github.com/repos/spinnaker/deck/tags","blobs_url":"https://api.github.com/repos/spinnaker/deck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spinnaker/deck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spinnaker/deck/git/refs{/sha}","trees_url":"https://api.github.com/repos/spinnaker/deck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spinnaker/deck/statuses/{sha}","languages_url":"https://api.github.com/repos/spinnaker/deck/languages","stargazers_url":"https://api.github.com/repos/spinnaker/deck/stargazers","contributors_url":"https://api.github.com/repos/spinnaker/deck/contributors","subscribers_url":"https://api.github.com/repos/spinnaker/deck/subscribers","subscription_url":"https://api.github.com/repos/spinnaker/deck/subscription","commits_url":"https://api.github.com/repos/spinnaker/deck/commits{/sha}","git_commits_url":"https://api.github.com/repos/spinnaker/deck/git/commits{/sha}","comments_url":"https://api.github.com/repos/spinnaker/deck/comments{/number}","issue_comment_url":"https://api.github.com/repos/spinnaker/deck/issues/comments{/number}","contents_url":"https://api.github.com/repos/spinnaker/deck/contents/{+path}","compare_url":"https://api.github.com/repos/spinnaker/deck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spinnaker/deck/merges","archive_url":"https://api.github.com/repos/spinnaker/deck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spinnaker/deck/downloads","issues_url":"https://api.github.com/repos/spinnaker/deck/issues{/number}","pulls_url":"https://api.github.com/repos/spinnaker/deck/pulls{/number}","milestones_url":"https://api.github.com/repos/spinnaker/deck/milestones{/number}","notifications_url":"https://api.github.com/repos/spinnaker/deck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spinnaker/deck/labels{/name}","releases_url":"https://api.github.com/repos/spinnaker/deck/releases{/id}","deployments_url":"https://api.github.com/repos/spinnaker/deck/deployments","created_at":"2014-07-17T18:51:00Z","updated_at":"2018-09-13T19:03:07Z","pushed_at":"2018-09-13T19:03:03Z","git_url":"git://github.com/spinnaker/deck.git","ssh_url":"git@github.com:spinnaker/deck.git","clone_url":"https://github.com/spinnaker/deck.git","svn_url":"https://github.com/spinnaker/deck","homepage":"","size":33063,"stargazers_count":154,"watchers_count":154,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":366,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":366,"open_issues":7,"watchers":154,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spinnaker/deck/pulls/5734"},"html":{"href":"https://github.com/spinnaker/deck/pull/5734"},"issue":{"href":"https://api.github.com/repos/spinnaker/deck/issues/5734"},"comments":{"href":"https://api.github.com/repos/spinnaker/deck/issues/5734/comments"},"review_comments":{"href":"https://api.github.com/repos/spinnaker/deck/pulls/5734/comments"},"review_comment":{"href":"https://api.github.com/repos/spinnaker/deck/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spinnaker/deck/pulls/5734/commits"},"statuses":{"href":"https://api.github.com/repos/spinnaker/deck/statuses/0a48079d9074e37137c32da3b6252a493261eb9f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"danielpeach"}}