{"action":"created","comment":{"url":"https://api.github.com/repos/openshift/origin-web-console/pulls/comments/87893075","pull_request_review_id":8486140,"id":87893075,"diff_hunk":"@@ -0,0 +1,69 @@\n+'use strict';\n+\n+/**\n+ * @ngdoc function\n+ * @name openshiftConsole.controller:ConfigMapController\n+ * @description\n+ * # ConfigMapController\n+ * Controller of the openshiftConsole\n+ */\n+angular.module('openshiftConsole')\n+  .controller('ConfigMapController',\n+              function ($scope,\n+                        $filter,\n+                        $routeParams,\n+                        AlertMessageService,\n+                        BreadcrumbsService,\n+                        DataService,\n+                        ProjectsService) {\n+    $scope.projectName = $routeParams.project;\n+    $scope.alerts = $scope.alerts || {};\n+    $scope.loaded = false;\n+    $scope.labelSuggestions = {};\n+    $scope.breadcrumbs = BreadcrumbsService.getBreadcrumbs({\n+      name: $routeParams.configMap,\n+      kind: 'ConfigMap',\n+      namespace: $routeParams.project\n+    });\n+\n+    AlertMessageService.getAlerts().forEach(function(alert) {\n+      $scope.alerts[alert.name] = alert.data;\n+    });\n+\n+    AlertMessageService.clearAlerts();\n+\n+    var watches = [];\n+\n+    var configMapResolved = function(configMap, action) {\n+      $scope.loaded = true;\n+      $scope.configMap = configMap;\n+      if (action === \"DELETED\") {\n+        $scope.alerts[\"deleted\"] = {\n+          type: \"warning\",\n+          message: \"This config map has been deleted.\"\n+        };\n+      }\n+    };\n+\n+    ProjectsService\n+      .get($routeParams.project)\n+      .then(_.spread(function(project, context) {\n+        DataService\n+          .get(\"configmaps\", $routeParams.configMap, context)\n+          .then(function(configMap) {\n+            configMapResolved(configMap);\n+            watches.push(DataService.watchObject(\"configmaps\", $routeParams.configMap, context, configMapResolved));\n+          }, function(e) {\n+            $scope.loaded = true;\n+            $scope.alerts[\"load\"] = {\n+              type: \"error\",\n+              message: \"The route details could not be loaded.\",","path":"app/scripts/controllers/configMap.js","position":60,"original_position":60,"commit_id":"bb1fa086dae940912afd5ff2e47a4a06cf36ceec","original_commit_id":"d0ae866139abfbf36de5ec7b38ae7440b919f053","user":{"login":"jwforres","id":1467629,"avatar_url":"https://avatars.githubusercontent.com/u/1467629?v=3","gravatar_id":"","url":"https://api.github.com/users/jwforres","html_url":"https://github.com/jwforres","followers_url":"https://api.github.com/users/jwforres/followers","following_url":"https://api.github.com/users/jwforres/following{/other_user}","gists_url":"https://api.github.com/users/jwforres/gists{/gist_id}","starred_url":"https://api.github.com/users/jwforres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwforres/subscriptions","organizations_url":"https://api.github.com/users/jwforres/orgs","repos_url":"https://api.github.com/users/jwforres/repos","events_url":"https://api.github.com/users/jwforres/events{/privacy}","received_events_url":"https://api.github.com/users/jwforres/received_events","type":"User","site_admin":false},"body":"The config map details","created_at":"2016-11-14T21:09:21Z","updated_at":"2016-11-14T21:29:41Z","html_url":"https://github.com/openshift/origin-web-console/pull/856#discussion_r87893075","pull_request_url":"https://api.github.com/repos/openshift/origin-web-console/pulls/856","_links":{"self":{"href":"https://api.github.com/repos/openshift/origin-web-console/pulls/comments/87893075"},"html":{"href":"https://github.com/openshift/origin-web-console/pull/856#discussion_r87893075"},"pull_request":{"href":"https://api.github.com/repos/openshift/origin-web-console/pulls/856"}}},"pull_request":{"url":"https://api.github.com/repos/openshift/origin-web-console/pulls/856","id":93236265,"html_url":"https://github.com/openshift/origin-web-console/pull/856","diff_url":"https://github.com/openshift/origin-web-console/pull/856.diff","patch_url":"https://github.com/openshift/origin-web-console/pull/856.patch","issue_url":"https://api.github.com/repos/openshift/origin-web-console/issues/856","number":856,"state":"open","locked":false,"title":"View, create, and edit config maps","user":{"login":"spadgett","id":1167259,"avatar_url":"https://avatars.githubusercontent.com/u/1167259?v=3","gravatar_id":"","url":"https://api.github.com/users/spadgett","html_url":"https://github.com/spadgett","followers_url":"https://api.github.com/users/spadgett/followers","following_url":"https://api.github.com/users/spadgett/following{/other_user}","gists_url":"https://api.github.com/users/spadgett/gists{/gist_id}","starred_url":"https://api.github.com/users/spadgett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spadgett/subscriptions","organizations_url":"https://api.github.com/users/spadgett/orgs","repos_url":"https://api.github.com/users/spadgett/repos","events_url":"https://api.github.com/users/spadgett/events{/privacy}","received_events_url":"https://api.github.com/users/spadgett/received_events","type":"User","site_admin":false},"body":"https://trello.com/c/gUzfL5OA\r\n\r\nConfig map list:\r\n\r\n![screen shot 2016-11-14 at 2 58 42 pm](https://cloud.githubusercontent.com/assets/1167259/20280568/fb2506f8-aa7a-11e6-82b8-5264e8b448dd.png)\r\n\r\nBrowse config map:\r\n\r\n![screen shot 2016-11-10 at 4 38 00 pm](https://cloud.githubusercontent.com/assets/1167259/20280571/fe626ae0-aa7a-11e6-8949-0ca024c9e021.png)\r\n\r\nCreate config map:\r\n\r\n![screen shot 2016-11-14 at 2 59 09 pm](https://cloud.githubusercontent.com/assets/1167259/20280574/0242cd1c-aa7b-11e6-9aa8-fefbc1c0513d.png)\r\n\r\nCC @jwforres ","created_at":"2016-11-10T21:41:36Z","updated_at":"2016-11-14T21:29:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c05d9f0af80524120e5f86ad50f57c4e9cdd9f3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openshift/origin-web-console/pulls/856/commits","review_comments_url":"https://api.github.com/repos/openshift/origin-web-console/pulls/856/comments","review_comment_url":"https://api.github.com/repos/openshift/origin-web-console/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openshift/origin-web-console/issues/856/comments","statuses_url":"https://api.github.com/repos/openshift/origin-web-console/statuses/bb1fa086dae940912afd5ff2e47a4a06cf36ceec","head":{"label":"spadgett:config-maps","ref":"config-maps","sha":"bb1fa086dae940912afd5ff2e47a4a06cf36ceec","user":{"login":"spadgett","id":1167259,"avatar_url":"https://avatars.githubusercontent.com/u/1167259?v=3","gravatar_id":"","url":"https://api.github.com/users/spadgett","html_url":"https://github.com/spadgett","followers_url":"https://api.github.com/users/spadgett/followers","following_url":"https://api.github.com/users/spadgett/following{/other_user}","gists_url":"https://api.github.com/users/spadgett/gists{/gist_id}","starred_url":"https://api.github.com/users/spadgett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spadgett/subscriptions","organizations_url":"https://api.github.com/users/spadgett/orgs","repos_url":"https://api.github.com/users/spadgett/repos","events_url":"https://api.github.com/users/spadgett/events{/privacy}","received_events_url":"https://api.github.com/users/spadgett/received_events","type":"User","site_admin":false},"repo":{"id":58545409,"name":"origin-web-console","full_name":"spadgett/origin-web-console","owner":{"login":"spadgett","id":1167259,"avatar_url":"https://avatars.githubusercontent.com/u/1167259?v=3","gravatar_id":"","url":"https://api.github.com/users/spadgett","html_url":"https://github.com/spadgett","followers_url":"https://api.github.com/users/spadgett/followers","following_url":"https://api.github.com/users/spadgett/following{/other_user}","gists_url":"https://api.github.com/users/spadgett/gists{/gist_id}","starred_url":"https://api.github.com/users/spadgett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spadgett/subscriptions","organizations_url":"https://api.github.com/users/spadgett/orgs","repos_url":"https://api.github.com/users/spadgett/repos","events_url":"https://api.github.com/users/spadgett/events{/privacy}","received_events_url":"https://api.github.com/users/spadgett/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spadgett/origin-web-console","description":null,"fork":true,"url":"https://api.github.com/repos/spadgett/origin-web-console","forks_url":"https://api.github.com/repos/spadgett/origin-web-console/forks","keys_url":"https://api.github.com/repos/spadgett/origin-web-console/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spadgett/origin-web-console/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spadgett/origin-web-console/teams","hooks_url":"https://api.github.com/repos/spadgett/origin-web-console/hooks","issue_events_url":"https://api.github.com/repos/spadgett/origin-web-console/issues/events{/number}","events_url":"https://api.github.com/repos/spadgett/origin-web-console/events","assignees_url":"https://api.github.com/repos/spadgett/origin-web-console/assignees{/user}","branches_url":"https://api.github.com/repos/spadgett/origin-web-console/branches{/branch}","tags_url":"https://api.github.com/repos/spadgett/origin-web-console/tags","blobs_url":"https://api.github.com/repos/spadgett/origin-web-console/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spadgett/origin-web-console/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spadgett/origin-web-console/git/refs{/sha}","trees_url":"https://api.github.com/repos/spadgett/origin-web-console/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spadgett/origin-web-console/statuses/{sha}","languages_url":"https://api.github.com/repos/spadgett/origin-web-console/languages","stargazers_url":"https://api.github.com/repos/spadgett/origin-web-console/stargazers","contributors_url":"https://api.github.com/repos/spadgett/origin-web-console/contributors","subscribers_url":"https://api.github.com/repos/spadgett/origin-web-console/subscribers","subscription_url":"https://api.github.com/repos/spadgett/origin-web-console/subscription","commits_url":"https://api.github.com/repos/spadgett/origin-web-console/commits{/sha}","git_commits_url":"https://api.github.com/repos/spadgett/origin-web-console/git/commits{/sha}","comments_url":"https://api.github.com/repos/spadgett/origin-web-console/comments{/number}","issue_comment_url":"https://api.github.com/repos/spadgett/origin-web-console/issues/comments{/number}","contents_url":"https://api.github.com/repos/spadgett/origin-web-console/contents/{+path}","compare_url":"https://api.github.com/repos/spadgett/origin-web-console/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spadgett/origin-web-console/merges","archive_url":"https://api.github.com/repos/spadgett/origin-web-console/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spadgett/origin-web-console/downloads","issues_url":"https://api.github.com/repos/spadgett/origin-web-console/issues{/number}","pulls_url":"https://api.github.com/repos/spadgett/origin-web-console/pulls{/number}","milestones_url":"https://api.github.com/repos/spadgett/origin-web-console/milestones{/number}","notifications_url":"https://api.github.com/repos/spadgett/origin-web-console/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spadgett/origin-web-console/labels{/name}","releases_url":"https://api.github.com/repos/spadgett/origin-web-console/releases{/id}","deployments_url":"https://api.github.com/repos/spadgett/origin-web-console/deployments","created_at":"2016-05-11T13:03:37Z","updated_at":"2016-05-11T13:03:40Z","pushed_at":"2016-11-14T21:16:03Z","git_url":"git://github.com/spadgett/origin-web-console.git","ssh_url":"git@github.com:spadgett/origin-web-console.git","clone_url":"https://github.com/spadgett/origin-web-console.git","svn_url":"https://github.com/spadgett/origin-web-console","homepage":null,"size":20282,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openshift:master","ref":"master","sha":"3d8c136b9089d687db197eb6c80daf243076c06a","user":{"login":"openshift","id":792337,"avatar_url":"https://avatars.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"repo":{"id":58488264,"name":"origin-web-console","full_name":"openshift/origin-web-console","owner":{"login":"openshift","id":792337,"avatar_url":"https://avatars.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openshift/origin-web-console","description":null,"fork":false,"url":"https://api.github.com/repos/openshift/origin-web-console","forks_url":"https://api.github.com/repos/openshift/origin-web-console/forks","keys_url":"https://api.github.com/repos/openshift/origin-web-console/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openshift/origin-web-console/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openshift/origin-web-console/teams","hooks_url":"https://api.github.com/repos/openshift/origin-web-console/hooks","issue_events_url":"https://api.github.com/repos/openshift/origin-web-console/issues/events{/number}","events_url":"https://api.github.com/repos/openshift/origin-web-console/events","assignees_url":"https://api.github.com/repos/openshift/origin-web-console/assignees{/user}","branches_url":"https://api.github.com/repos/openshift/origin-web-console/branches{/branch}","tags_url":"https://api.github.com/repos/openshift/origin-web-console/tags","blobs_url":"https://api.github.com/repos/openshift/origin-web-console/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openshift/origin-web-console/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openshift/origin-web-console/git/refs{/sha}","trees_url":"https://api.github.com/repos/openshift/origin-web-console/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openshift/origin-web-console/statuses/{sha}","languages_url":"https://api.github.com/repos/openshift/origin-web-console/languages","stargazers_url":"https://api.github.com/repos/openshift/origin-web-console/stargazers","contributors_url":"https://api.github.com/repos/openshift/origin-web-console/contributors","subscribers_url":"https://api.github.com/repos/openshift/origin-web-console/subscribers","subscription_url":"https://api.github.com/repos/openshift/origin-web-console/subscription","commits_url":"https://api.github.com/repos/openshift/origin-web-console/commits{/sha}","git_commits_url":"https://api.github.com/repos/openshift/origin-web-console/git/commits{/sha}","comments_url":"https://api.github.com/repos/openshift/origin-web-console/comments{/number}","issue_comment_url":"https://api.github.com/repos/openshift/origin-web-console/issues/comments{/number}","contents_url":"https://api.github.com/repos/openshift/origin-web-console/contents/{+path}","compare_url":"https://api.github.com/repos/openshift/origin-web-console/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openshift/origin-web-console/merges","archive_url":"https://api.github.com/repos/openshift/origin-web-console/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openshift/origin-web-console/downloads","issues_url":"https://api.github.com/repos/openshift/origin-web-console/issues{/number}","pulls_url":"https://api.github.com/repos/openshift/origin-web-console/pulls{/number}","milestones_url":"https://api.github.com/repos/openshift/origin-web-console/milestones{/number}","notifications_url":"https://api.github.com/repos/openshift/origin-web-console/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openshift/origin-web-console/labels{/name}","releases_url":"https://api.github.com/repos/openshift/origin-web-console/releases{/id}","deployments_url":"https://api.github.com/repos/openshift/origin-web-console/deployments","created_at":"2016-05-10T19:31:50Z","updated_at":"2016-10-22T14:01:16Z","pushed_at":"2016-11-14T21:16:04Z","git_url":"git://github.com/openshift/origin-web-console.git","ssh_url":"git@github.com:openshift/origin-web-console.git","clone_url":"https://github.com/openshift/origin-web-console.git","svn_url":"https://github.com/openshift/origin-web-console","homepage":null,"size":20882,"stargazers_count":22,"watchers_count":22,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":60,"mirror_url":null,"open_issues_count":87,"forks":60,"open_issues":87,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openshift/origin-web-console/pulls/856"},"html":{"href":"https://github.com/openshift/origin-web-console/pull/856"},"issue":{"href":"https://api.github.com/repos/openshift/origin-web-console/issues/856"},"comments":{"href":"https://api.github.com/repos/openshift/origin-web-console/issues/856/comments"},"review_comments":{"href":"https://api.github.com/repos/openshift/origin-web-console/pulls/856/comments"},"review_comment":{"href":"https://api.github.com/repos/openshift/origin-web-console/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openshift/origin-web-console/pulls/856/commits"},"statuses":{"href":"https://api.github.com/repos/openshift/origin-web-console/statuses/bb1fa086dae940912afd5ff2e47a4a06cf36ceec"}}}}
{"actor":{"display_login":"jwforres"}}