{"action":"created","comment":{"url":"https://api.github.com/repos/crowbar/crowbar-ui/pulls/comments/81130706","pull_request_review_id":2132723,"id":81130706,"diff_hunk":"@@ -0,0 +1,99 @@\n+(function() {\n+    'use strict';\n+\n+    /**\n+    * @ngdoc function\n+    * @name crowbarApp.controller:Upgrade7OpenStackServicesController\n+    * @description\n+    * # Upgrade7OpenStackServicesController\n+    * This is the controller used on the Stop OpenStack Services page\n+    */\n+    angular.module('crowbarApp')\n+        .controller('Upgrade7OpenStackServicesController', Upgrade7OpenStackServicesController);\n+\n+    Upgrade7OpenStackServicesController.$inject = ['$translate', 'openStackFactory'];\n+    // @ngInject\n+    function Upgrade7OpenStackServicesController($translate, openStackFactory) {\n+        var vm = this;\n+            \n+\n+        vm.openStackServices = {\n+            completed: false,\n+            valid: false,\n+            checks: {\n+                services: {\n+                    status: false, \n+                    label: 'upgrade7.steps.openstack-services.codes.services'\n+                },\n+                backup: {\n+                    status: false, \n+                    label: 'upgrade7.steps.openstack-services.codes.backup'\n+                }\n+            },\n+            runOpenStackServices: runOpenStackServices\n+        };\n+\n+\n+        /**\n+         *  Validate OpenStackServices required for Cloud 7 Upgrade\n+         */\n+        function runOpenStackServices() {\n+   \n+            openStackFactory.stopOpenstackServices()\n+                .then(\n+                    //Success handler. Stop all OpenStackServices successfully:\n+                    stopOpenstackServicesSuccess,\n+                    //Failure handler:\n+                    stopOpenstackServicesError\n+                    \n+                ).finally(function() {\n+                    // Either on sucess or failure, the openStackServices has been completed.\n+                    vm.openStackServices.completed = true;\n+\n+                    // Update openStackServices validity\n+                    \n+\n+                });\n+\n+            function stopOpenstackServicesSuccess (openStackServicesResponse) {\n+\n+                vm.openStackServices.checks.services.status = openStackServicesResponse.data.services;","path":"assets/app/features/upgrade/controllers/upgrade7-openstack-services.controller.js","position":60,"original_position":60,"commit_id":"62ecc04fd0e8cd24ee1cd7aa0d762e97cd484bd3","original_commit_id":"62ecc04fd0e8cd24ee1cd7aa0d762e97cd484bd3","user":{"login":"bisht-richa","id":18264463,"avatar_url":"https://avatars.githubusercontent.com/u/18264463?v=3","gravatar_id":"","url":"https://api.github.com/users/bisht-richa","html_url":"https://github.com/bisht-richa","followers_url":"https://api.github.com/users/bisht-richa/followers","following_url":"https://api.github.com/users/bisht-richa/following{/other_user}","gists_url":"https://api.github.com/users/bisht-richa/gists{/gist_id}","starred_url":"https://api.github.com/users/bisht-richa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bisht-richa/subscriptions","organizations_url":"https://api.github.com/users/bisht-richa/orgs","repos_url":"https://api.github.com/users/bisht-richa/repos","events_url":"https://api.github.com/users/bisht-richa/events{/privacy}","received_events_url":"https://api.github.com/users/bisht-richa/received_events","type":"User","site_admin":false},"body":"Can not keep everything in one line, because it has character limitation upto 120.","created_at":"2016-09-29T13:03:42Z","updated_at":"2016-09-29T13:03:42Z","html_url":"https://github.com/crowbar/crowbar-ui/pull/26#discussion_r81130706","pull_request_url":"https://api.github.com/repos/crowbar/crowbar-ui/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/crowbar/crowbar-ui/pulls/comments/81130706"},"html":{"href":"https://github.com/crowbar/crowbar-ui/pull/26#discussion_r81130706"},"pull_request":{"href":"https://api.github.com/repos/crowbar/crowbar-ui/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/crowbar/crowbar-ui/pulls/26","id":84630449,"html_url":"https://github.com/crowbar/crowbar-ui/pull/26","diff_url":"https://github.com/crowbar/crowbar-ui/pull/26.diff","patch_url":"https://github.com/crowbar/crowbar-ui/pull/26.patch","issue_url":"https://api.github.com/repos/crowbar/crowbar-ui/issues/26","number":26,"state":"open","locked":false,"title":"[WIP] Features/upgrade7/open stack services/openstack services ui","user":{"login":"bisht-richa","id":18264463,"avatar_url":"https://avatars.githubusercontent.com/u/18264463?v=3","gravatar_id":"","url":"https://api.github.com/users/bisht-richa","html_url":"https://github.com/bisht-richa","followers_url":"https://api.github.com/users/bisht-richa/followers","following_url":"https://api.github.com/users/bisht-richa/following{/other_user}","gists_url":"https://api.github.com/users/bisht-richa/gists{/gist_id}","starred_url":"https://api.github.com/users/bisht-richa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bisht-richa/subscriptions","organizations_url":"https://api.github.com/users/bisht-richa/orgs","repos_url":"https://api.github.com/users/bisht-richa/repos","events_url":"https://api.github.com/users/bisht-richa/events{/privacy}","received_events_url":"https://api.github.com/users/bisht-richa/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-09T10:46:37Z","updated_at":"2016-09-29T13:03:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"11142e9baeac14af2f6fd4b33926999deab0ce31","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/crowbar/crowbar-ui/pulls/26/commits","review_comments_url":"https://api.github.com/repos/crowbar/crowbar-ui/pulls/26/comments","review_comment_url":"https://api.github.com/repos/crowbar/crowbar-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crowbar/crowbar-ui/issues/26/comments","statuses_url":"https://api.github.com/repos/crowbar/crowbar-ui/statuses/62ecc04fd0e8cd24ee1cd7aa0d762e97cd484bd3","head":{"label":"crowbar:features/upgrade7/openStack-services/openstack-services-UI","ref":"features/upgrade7/openStack-services/openstack-services-UI","sha":"62ecc04fd0e8cd24ee1cd7aa0d762e97cd484bd3","user":{"login":"crowbar","id":2910205,"avatar_url":"https://avatars.githubusercontent.com/u/2910205?v=3","gravatar_id":"","url":"https://api.github.com/users/crowbar","html_url":"https://github.com/crowbar","followers_url":"https://api.github.com/users/crowbar/followers","following_url":"https://api.github.com/users/crowbar/following{/other_user}","gists_url":"https://api.github.com/users/crowbar/gists{/gist_id}","starred_url":"https://api.github.com/users/crowbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowbar/subscriptions","organizations_url":"https://api.github.com/users/crowbar/orgs","repos_url":"https://api.github.com/users/crowbar/repos","events_url":"https://api.github.com/users/crowbar/events{/privacy}","received_events_url":"https://api.github.com/users/crowbar/received_events","type":"Organization","site_admin":false},"repo":{"id":63954363,"name":"crowbar-ui","full_name":"crowbar/crowbar-ui","owner":{"login":"crowbar","id":2910205,"avatar_url":"https://avatars.githubusercontent.com/u/2910205?v=3","gravatar_id":"","url":"https://api.github.com/users/crowbar","html_url":"https://github.com/crowbar","followers_url":"https://api.github.com/users/crowbar/followers","following_url":"https://api.github.com/users/crowbar/following{/other_user}","gists_url":"https://api.github.com/users/crowbar/gists{/gist_id}","starred_url":"https://api.github.com/users/crowbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowbar/subscriptions","organizations_url":"https://api.github.com/users/crowbar/orgs","repos_url":"https://api.github.com/users/crowbar/repos","events_url":"https://api.github.com/users/crowbar/events{/privacy}","received_events_url":"https://api.github.com/users/crowbar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crowbar/crowbar-ui","description":"Crowbar Web UI based on Angular","fork":false,"url":"https://api.github.com/repos/crowbar/crowbar-ui","forks_url":"https://api.github.com/repos/crowbar/crowbar-ui/forks","keys_url":"https://api.github.com/repos/crowbar/crowbar-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowbar/crowbar-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowbar/crowbar-ui/teams","hooks_url":"https://api.github.com/repos/crowbar/crowbar-ui/hooks","issue_events_url":"https://api.github.com/repos/crowbar/crowbar-ui/issues/events{/number}","events_url":"https://api.github.com/repos/crowbar/crowbar-ui/events","assignees_url":"https://api.github.com/repos/crowbar/crowbar-ui/assignees{/user}","branches_url":"https://api.github.com/repos/crowbar/crowbar-ui/branches{/branch}","tags_url":"https://api.github.com/repos/crowbar/crowbar-ui/tags","blobs_url":"https://api.github.com/repos/crowbar/crowbar-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowbar/crowbar-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowbar/crowbar-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowbar/crowbar-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowbar/crowbar-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/crowbar/crowbar-ui/languages","stargazers_url":"https://api.github.com/repos/crowbar/crowbar-ui/stargazers","contributors_url":"https://api.github.com/repos/crowbar/crowbar-ui/contributors","subscribers_url":"https://api.github.com/repos/crowbar/crowbar-ui/subscribers","subscription_url":"https://api.github.com/repos/crowbar/crowbar-ui/subscription","commits_url":"https://api.github.com/repos/crowbar/crowbar-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowbar/crowbar-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowbar/crowbar-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowbar/crowbar-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/crowbar/crowbar-ui/contents/{+path}","compare_url":"https://api.github.com/repos/crowbar/crowbar-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowbar/crowbar-ui/merges","archive_url":"https://api.github.com/repos/crowbar/crowbar-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowbar/crowbar-ui/downloads","issues_url":"https://api.github.com/repos/crowbar/crowbar-ui/issues{/number}","pulls_url":"https://api.github.com/repos/crowbar/crowbar-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/crowbar/crowbar-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/crowbar/crowbar-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowbar/crowbar-ui/labels{/name}","releases_url":"https://api.github.com/repos/crowbar/crowbar-ui/releases{/id}","deployments_url":"https://api.github.com/repos/crowbar/crowbar-ui/deployments","created_at":"2016-07-22T13:11:54Z","updated_at":"2016-09-17T09:05:32Z","pushed_at":"2016-09-29T11:54:29Z","git_url":"git://github.com/crowbar/crowbar-ui.git","ssh_url":"git@github.com:crowbar/crowbar-ui.git","clone_url":"https://github.com/crowbar/crowbar-ui.git","svn_url":"https://github.com/crowbar/crowbar-ui","homepage":"","size":59492,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":3,"default_branch":"master"}},"base":{"label":"crowbar:master","ref":"master","sha":"fe69004f071d3093760c1feff4d5cc495761e7e8","user":{"login":"crowbar","id":2910205,"avatar_url":"https://avatars.githubusercontent.com/u/2910205?v=3","gravatar_id":"","url":"https://api.github.com/users/crowbar","html_url":"https://github.com/crowbar","followers_url":"https://api.github.com/users/crowbar/followers","following_url":"https://api.github.com/users/crowbar/following{/other_user}","gists_url":"https://api.github.com/users/crowbar/gists{/gist_id}","starred_url":"https://api.github.com/users/crowbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowbar/subscriptions","organizations_url":"https://api.github.com/users/crowbar/orgs","repos_url":"https://api.github.com/users/crowbar/repos","events_url":"https://api.github.com/users/crowbar/events{/privacy}","received_events_url":"https://api.github.com/users/crowbar/received_events","type":"Organization","site_admin":false},"repo":{"id":63954363,"name":"crowbar-ui","full_name":"crowbar/crowbar-ui","owner":{"login":"crowbar","id":2910205,"avatar_url":"https://avatars.githubusercontent.com/u/2910205?v=3","gravatar_id":"","url":"https://api.github.com/users/crowbar","html_url":"https://github.com/crowbar","followers_url":"https://api.github.com/users/crowbar/followers","following_url":"https://api.github.com/users/crowbar/following{/other_user}","gists_url":"https://api.github.com/users/crowbar/gists{/gist_id}","starred_url":"https://api.github.com/users/crowbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowbar/subscriptions","organizations_url":"https://api.github.com/users/crowbar/orgs","repos_url":"https://api.github.com/users/crowbar/repos","events_url":"https://api.github.com/users/crowbar/events{/privacy}","received_events_url":"https://api.github.com/users/crowbar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crowbar/crowbar-ui","description":"Crowbar Web UI based on Angular","fork":false,"url":"https://api.github.com/repos/crowbar/crowbar-ui","forks_url":"https://api.github.com/repos/crowbar/crowbar-ui/forks","keys_url":"https://api.github.com/repos/crowbar/crowbar-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowbar/crowbar-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowbar/crowbar-ui/teams","hooks_url":"https://api.github.com/repos/crowbar/crowbar-ui/hooks","issue_events_url":"https://api.github.com/repos/crowbar/crowbar-ui/issues/events{/number}","events_url":"https://api.github.com/repos/crowbar/crowbar-ui/events","assignees_url":"https://api.github.com/repos/crowbar/crowbar-ui/assignees{/user}","branches_url":"https://api.github.com/repos/crowbar/crowbar-ui/branches{/branch}","tags_url":"https://api.github.com/repos/crowbar/crowbar-ui/tags","blobs_url":"https://api.github.com/repos/crowbar/crowbar-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowbar/crowbar-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowbar/crowbar-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowbar/crowbar-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowbar/crowbar-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/crowbar/crowbar-ui/languages","stargazers_url":"https://api.github.com/repos/crowbar/crowbar-ui/stargazers","contributors_url":"https://api.github.com/repos/crowbar/crowbar-ui/contributors","subscribers_url":"https://api.github.com/repos/crowbar/crowbar-ui/subscribers","subscription_url":"https://api.github.com/repos/crowbar/crowbar-ui/subscription","commits_url":"https://api.github.com/repos/crowbar/crowbar-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowbar/crowbar-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowbar/crowbar-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowbar/crowbar-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/crowbar/crowbar-ui/contents/{+path}","compare_url":"https://api.github.com/repos/crowbar/crowbar-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowbar/crowbar-ui/merges","archive_url":"https://api.github.com/repos/crowbar/crowbar-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowbar/crowbar-ui/downloads","issues_url":"https://api.github.com/repos/crowbar/crowbar-ui/issues{/number}","pulls_url":"https://api.github.com/repos/crowbar/crowbar-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/crowbar/crowbar-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/crowbar/crowbar-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowbar/crowbar-ui/labels{/name}","releases_url":"https://api.github.com/repos/crowbar/crowbar-ui/releases{/id}","deployments_url":"https://api.github.com/repos/crowbar/crowbar-ui/deployments","created_at":"2016-07-22T13:11:54Z","updated_at":"2016-09-17T09:05:32Z","pushed_at":"2016-09-29T11:54:29Z","git_url":"git://github.com/crowbar/crowbar-ui.git","ssh_url":"git@github.com:crowbar/crowbar-ui.git","clone_url":"https://github.com/crowbar/crowbar-ui.git","svn_url":"https://github.com/crowbar/crowbar-ui","homepage":"","size":59492,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crowbar/crowbar-ui/pulls/26"},"html":{"href":"https://github.com/crowbar/crowbar-ui/pull/26"},"issue":{"href":"https://api.github.com/repos/crowbar/crowbar-ui/issues/26"},"comments":{"href":"https://api.github.com/repos/crowbar/crowbar-ui/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/crowbar/crowbar-ui/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/crowbar/crowbar-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crowbar/crowbar-ui/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/crowbar/crowbar-ui/statuses/62ecc04fd0e8cd24ee1cd7aa0d762e97cd484bd3"}}}}
{"actor":{"display_login":"bisht-richa"}}