{"action":"created","comment":{"url":"https://api.github.com/repos/spottradingllc/zoom/pulls/comments/29449391","id":29449391,"diff_hunk":"@@ -211,6 +287,46 @@ define(\n                 $('#groupCheckModal').modal('show');\n             };\n \n+            self.OpdepAjax = function(componentID) {\n+                return $.ajax({\n+                        url: '/api/application/opdep/spot/software/state/application/' + componentID,\n+                        type: 'GET'\n+                    });\n+            };\n+\n+            // Called from \"Show Opdep\" in group control\n+            self.displayOpdep = function(clickedApp) {\n+                self.clickedApp(clickedApp);\n+                var opdep = self.OpdepAjax(self.clickedApp().componentId)\n+                // waits for data to be available since ajax is async call\n+                opdep.success(function (data) {\n+                    swal({\n+                        title: self.clickedApp().componentId,\n+                        text: self.path_message_paths(data.opdep),\n+                        allowOutsideClick: true\n+                    });\n+                });\n+            };\n+\n+            // create string with componentId array\n+            self.path_message_paths = function(path_array){\n+                var message = 'Operation Dependencies: \\n';\n+                ko.utils.arrayForEach(path_array.sort(), function(path)  {\n+                    path = path.replace('/spot/software/state/application/', '')","path":"client/model/ApplicationStateModel.js","position":189,"original_position":189,"commit_id":"5337c3862b6075d0f2e6d61b9ec0aa0de196ced9","original_commit_id":"5337c3862b6075d0f2e6d61b9ec0aa0de196ced9","user":{"login":"nicmoski","id":4949635,"avatar_url":"https://avatars.githubusercontent.com/u/4949635?v=3","gravatar_id":"","url":"https://api.github.com/users/nicmoski","html_url":"https://github.com/nicmoski","followers_url":"https://api.github.com/users/nicmoski/followers","following_url":"https://api.github.com/users/nicmoski/following{/other_user}","gists_url":"https://api.github.com/users/nicmoski/gists{/gist_id}","starred_url":"https://api.github.com/users/nicmoski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicmoski/subscriptions","organizations_url":"https://api.github.com/users/nicmoski/orgs","repos_url":"https://api.github.com/users/nicmoski/repos","events_url":"https://api.github.com/users/nicmoski/events{/privacy}","received_events_url":"https://api.github.com/users/nicmoski/received_events","type":"User","site_admin":false},"body":"this path is available as `constants.appStatePath`, please don't hard-code it","created_at":"2015-04-30T17:16:37Z","updated_at":"2015-04-30T17:16:37Z","html_url":"https://github.com/spottradingllc/zoom/pull/254#discussion_r29449391","pull_request_url":"https://api.github.com/repos/spottradingllc/zoom/pulls/254","_links":{"self":{"href":"https://api.github.com/repos/spottradingllc/zoom/pulls/comments/29449391"},"html":{"href":"https://github.com/spottradingllc/zoom/pull/254#discussion_r29449391"},"pull_request":{"href":"https://api.github.com/repos/spottradingllc/zoom/pulls/254"}}},"pull_request":{"url":"https://api.github.com/repos/spottradingllc/zoom/pulls/254","id":34465619,"html_url":"https://github.com/spottradingllc/zoom/pull/254","diff_url":"https://github.com/spottradingllc/zoom/pull/254.diff","patch_url":"https://github.com/spottradingllc/zoom/pull/254.patch","issue_url":"https://api.github.com/repos/spottradingllc/zoom/issues/254","number":254,"state":"open","locked":false,"title":"Feature/opdep/api","user":{"login":"jlee4689","id":8172312,"avatar_url":"https://avatars.githubusercontent.com/u/8172312?v=3","gravatar_id":"","url":"https://api.github.com/users/jlee4689","html_url":"https://github.com/jlee4689","followers_url":"https://api.github.com/users/jlee4689/followers","following_url":"https://api.github.com/users/jlee4689/following{/other_user}","gists_url":"https://api.github.com/users/jlee4689/gists{/gist_id}","starred_url":"https://api.github.com/users/jlee4689/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlee4689/subscriptions","organizations_url":"https://api.github.com/users/jlee4689/orgs","repos_url":"https://api.github.com/users/jlee4689/repos","events_url":"https://api.github.com/users/jlee4689/events{/privacy}","received_events_url":"https://api.github.com/users/jlee4689/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-30T14:36:22Z","updated_at":"2015-04-30T17:16:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"123ad710abde7ca735890cc9b5e719f250666131","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spottradingllc/zoom/pulls/254/commits","review_comments_url":"https://api.github.com/repos/spottradingllc/zoom/pulls/254/comments","review_comment_url":"https://api.github.com/repos/spottradingllc/zoom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spottradingllc/zoom/issues/254/comments","statuses_url":"https://api.github.com/repos/spottradingllc/zoom/statuses/5337c3862b6075d0f2e6d61b9ec0aa0de196ced9","head":{"label":"spottradingllc:feature/opdep/api","ref":"feature/opdep/api","sha":"5337c3862b6075d0f2e6d61b9ec0aa0de196ced9","user":{"login":"spottradingllc","id":6201088,"avatar_url":"https://avatars.githubusercontent.com/u/6201088?v=3","gravatar_id":"","url":"https://api.github.com/users/spottradingllc","html_url":"https://github.com/spottradingllc","followers_url":"https://api.github.com/users/spottradingllc/followers","following_url":"https://api.github.com/users/spottradingllc/following{/other_user}","gists_url":"https://api.github.com/users/spottradingllc/gists{/gist_id}","starred_url":"https://api.github.com/users/spottradingllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spottradingllc/subscriptions","organizations_url":"https://api.github.com/users/spottradingllc/orgs","repos_url":"https://api.github.com/users/spottradingllc/repos","events_url":"https://api.github.com/users/spottradingllc/events{/privacy}","received_events_url":"https://api.github.com/users/spottradingllc/received_events","type":"Organization","site_admin":false},"repo":{"id":21750575,"name":"zoom","full_name":"spottradingllc/zoom","owner":{"login":"spottradingllc","id":6201088,"avatar_url":"https://avatars.githubusercontent.com/u/6201088?v=3","gravatar_id":"","url":"https://api.github.com/users/spottradingllc","html_url":"https://github.com/spottradingllc","followers_url":"https://api.github.com/users/spottradingllc/followers","following_url":"https://api.github.com/users/spottradingllc/following{/other_user}","gists_url":"https://api.github.com/users/spottradingllc/gists{/gist_id}","starred_url":"https://api.github.com/users/spottradingllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spottradingllc/subscriptions","organizations_url":"https://api.github.com/users/spottradingllc/orgs","repos_url":"https://api.github.com/users/spottradingllc/repos","events_url":"https://api.github.com/users/spottradingllc/events{/privacy}","received_events_url":"https://api.github.com/users/spottradingllc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spottradingllc/zoom","description":"","fork":false,"url":"https://api.github.com/repos/spottradingllc/zoom","forks_url":"https://api.github.com/repos/spottradingllc/zoom/forks","keys_url":"https://api.github.com/repos/spottradingllc/zoom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spottradingllc/zoom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spottradingllc/zoom/teams","hooks_url":"https://api.github.com/repos/spottradingllc/zoom/hooks","issue_events_url":"https://api.github.com/repos/spottradingllc/zoom/issues/events{/number}","events_url":"https://api.github.com/repos/spottradingllc/zoom/events","assignees_url":"https://api.github.com/repos/spottradingllc/zoom/assignees{/user}","branches_url":"https://api.github.com/repos/spottradingllc/zoom/branches{/branch}","tags_url":"https://api.github.com/repos/spottradingllc/zoom/tags","blobs_url":"https://api.github.com/repos/spottradingllc/zoom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spottradingllc/zoom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spottradingllc/zoom/git/refs{/sha}","trees_url":"https://api.github.com/repos/spottradingllc/zoom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spottradingllc/zoom/statuses/{sha}","languages_url":"https://api.github.com/repos/spottradingllc/zoom/languages","stargazers_url":"https://api.github.com/repos/spottradingllc/zoom/stargazers","contributors_url":"https://api.github.com/repos/spottradingllc/zoom/contributors","subscribers_url":"https://api.github.com/repos/spottradingllc/zoom/subscribers","subscription_url":"https://api.github.com/repos/spottradingllc/zoom/subscription","commits_url":"https://api.github.com/repos/spottradingllc/zoom/commits{/sha}","git_commits_url":"https://api.github.com/repos/spottradingllc/zoom/git/commits{/sha}","comments_url":"https://api.github.com/repos/spottradingllc/zoom/comments{/number}","issue_comment_url":"https://api.github.com/repos/spottradingllc/zoom/issues/comments{/number}","contents_url":"https://api.github.com/repos/spottradingllc/zoom/contents/{+path}","compare_url":"https://api.github.com/repos/spottradingllc/zoom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spottradingllc/zoom/merges","archive_url":"https://api.github.com/repos/spottradingllc/zoom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spottradingllc/zoom/downloads","issues_url":"https://api.github.com/repos/spottradingllc/zoom/issues{/number}","pulls_url":"https://api.github.com/repos/spottradingllc/zoom/pulls{/number}","milestones_url":"https://api.github.com/repos/spottradingllc/zoom/milestones{/number}","notifications_url":"https://api.github.com/repos/spottradingllc/zoom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spottradingllc/zoom/labels{/name}","releases_url":"https://api.github.com/repos/spottradingllc/zoom/releases{/id}","created_at":"2014-07-11T20:35:16Z","updated_at":"2015-04-27T16:06:49Z","pushed_at":"2015-04-30T16:05:16Z","git_url":"git://github.com/spottradingllc/zoom.git","ssh_url":"git@github.com:spottradingllc/zoom.git","clone_url":"https://github.com/spottradingllc/zoom.git","svn_url":"https://github.com/spottradingllc/zoom","homepage":null,"size":6875,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":19,"default_branch":"master"}},"base":{"label":"spottradingllc:master","ref":"master","sha":"39529709d233d8fd662593c0c557fa5bb7513593","user":{"login":"spottradingllc","id":6201088,"avatar_url":"https://avatars.githubusercontent.com/u/6201088?v=3","gravatar_id":"","url":"https://api.github.com/users/spottradingllc","html_url":"https://github.com/spottradingllc","followers_url":"https://api.github.com/users/spottradingllc/followers","following_url":"https://api.github.com/users/spottradingllc/following{/other_user}","gists_url":"https://api.github.com/users/spottradingllc/gists{/gist_id}","starred_url":"https://api.github.com/users/spottradingllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spottradingllc/subscriptions","organizations_url":"https://api.github.com/users/spottradingllc/orgs","repos_url":"https://api.github.com/users/spottradingllc/repos","events_url":"https://api.github.com/users/spottradingllc/events{/privacy}","received_events_url":"https://api.github.com/users/spottradingllc/received_events","type":"Organization","site_admin":false},"repo":{"id":21750575,"name":"zoom","full_name":"spottradingllc/zoom","owner":{"login":"spottradingllc","id":6201088,"avatar_url":"https://avatars.githubusercontent.com/u/6201088?v=3","gravatar_id":"","url":"https://api.github.com/users/spottradingllc","html_url":"https://github.com/spottradingllc","followers_url":"https://api.github.com/users/spottradingllc/followers","following_url":"https://api.github.com/users/spottradingllc/following{/other_user}","gists_url":"https://api.github.com/users/spottradingllc/gists{/gist_id}","starred_url":"https://api.github.com/users/spottradingllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spottradingllc/subscriptions","organizations_url":"https://api.github.com/users/spottradingllc/orgs","repos_url":"https://api.github.com/users/spottradingllc/repos","events_url":"https://api.github.com/users/spottradingllc/events{/privacy}","received_events_url":"https://api.github.com/users/spottradingllc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spottradingllc/zoom","description":"","fork":false,"url":"https://api.github.com/repos/spottradingllc/zoom","forks_url":"https://api.github.com/repos/spottradingllc/zoom/forks","keys_url":"https://api.github.com/repos/spottradingllc/zoom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spottradingllc/zoom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spottradingllc/zoom/teams","hooks_url":"https://api.github.com/repos/spottradingllc/zoom/hooks","issue_events_url":"https://api.github.com/repos/spottradingllc/zoom/issues/events{/number}","events_url":"https://api.github.com/repos/spottradingllc/zoom/events","assignees_url":"https://api.github.com/repos/spottradingllc/zoom/assignees{/user}","branches_url":"https://api.github.com/repos/spottradingllc/zoom/branches{/branch}","tags_url":"https://api.github.com/repos/spottradingllc/zoom/tags","blobs_url":"https://api.github.com/repos/spottradingllc/zoom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spottradingllc/zoom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spottradingllc/zoom/git/refs{/sha}","trees_url":"https://api.github.com/repos/spottradingllc/zoom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spottradingllc/zoom/statuses/{sha}","languages_url":"https://api.github.com/repos/spottradingllc/zoom/languages","stargazers_url":"https://api.github.com/repos/spottradingllc/zoom/stargazers","contributors_url":"https://api.github.com/repos/spottradingllc/zoom/contributors","subscribers_url":"https://api.github.com/repos/spottradingllc/zoom/subscribers","subscription_url":"https://api.github.com/repos/spottradingllc/zoom/subscription","commits_url":"https://api.github.com/repos/spottradingllc/zoom/commits{/sha}","git_commits_url":"https://api.github.com/repos/spottradingllc/zoom/git/commits{/sha}","comments_url":"https://api.github.com/repos/spottradingllc/zoom/comments{/number}","issue_comment_url":"https://api.github.com/repos/spottradingllc/zoom/issues/comments{/number}","contents_url":"https://api.github.com/repos/spottradingllc/zoom/contents/{+path}","compare_url":"https://api.github.com/repos/spottradingllc/zoom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spottradingllc/zoom/merges","archive_url":"https://api.github.com/repos/spottradingllc/zoom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spottradingllc/zoom/downloads","issues_url":"https://api.github.com/repos/spottradingllc/zoom/issues{/number}","pulls_url":"https://api.github.com/repos/spottradingllc/zoom/pulls{/number}","milestones_url":"https://api.github.com/repos/spottradingllc/zoom/milestones{/number}","notifications_url":"https://api.github.com/repos/spottradingllc/zoom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spottradingllc/zoom/labels{/name}","releases_url":"https://api.github.com/repos/spottradingllc/zoom/releases{/id}","created_at":"2014-07-11T20:35:16Z","updated_at":"2015-04-27T16:06:49Z","pushed_at":"2015-04-30T16:05:16Z","git_url":"git://github.com/spottradingllc/zoom.git","ssh_url":"git@github.com:spottradingllc/zoom.git","clone_url":"https://github.com/spottradingllc/zoom.git","svn_url":"https://github.com/spottradingllc/zoom","homepage":null,"size":6875,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spottradingllc/zoom/pulls/254"},"html":{"href":"https://github.com/spottradingllc/zoom/pull/254"},"issue":{"href":"https://api.github.com/repos/spottradingllc/zoom/issues/254"},"comments":{"href":"https://api.github.com/repos/spottradingllc/zoom/issues/254/comments"},"review_comments":{"href":"https://api.github.com/repos/spottradingllc/zoom/pulls/254/comments"},"review_comment":{"href":"https://api.github.com/repos/spottradingllc/zoom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spottradingllc/zoom/pulls/254/commits"},"statuses":{"href":"https://api.github.com/repos/spottradingllc/zoom/statuses/5337c3862b6075d0f2e6d61b9ec0aa0de196ced9"}}}}