GitHub PullRequestReviewCommentEvent at 2014-11-23 14:34:34
Repository: capacity4more
Actor: amitaibu
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/capacity4dev/capacity4more/pulls/comments/20764845","id":20764845,"diff_hunk":"@@ -55,16 +39,28 @@ angular.module('c4mApp')\n      */\n     function prepareData() {\n       $scope.popups = {};\n+\n       angular.forEach($scope.fieldSchema, function (data, field) {\n         // Don't change the group field Or resource object.\n-        if (field == 'resources' || field == 'group') {\n+        if (field == 'resources' || field == 'group' ) {\n           return;\n         }\n         var allowedValues = data.form_element.allowed_values;\n         if(angular.isObject(allowedValues) && Object.keys(allowedValues).length && field != \"tags\") {\n           $scope.referenceValues[field] = allowedValues;\n           $scope.popups[field] = 0;\n-          $scope.data[field] = {};\n+          if (!$scope.data[field]) {\n+            $scope.data[field] = {};\n+          }\n+          else {\n+            if (field != 'discussion_type' && field != 'event_type') {","path":"capacity4more/modules/c4m/restful/c4m_restful_quick_post/components/c4m-app/src/controllers/main.js","position":91,"original_position":91,"commit_id":"affaaf8fa76b6e3ee65c36a8936e248410462b6d","original_commit_id":"affaaf8fa76b6e3ee65c36a8936e248410462b6d","user":{"login":"amitaibu","id":125707,"avatar_url":"https://avatars.githubusercontent.com/u/125707?v=3","gravatar_id":"","url":"https://api.github.com/users/amitaibu","html_url":"https://github.com/amitaibu","followers_url":"https://api.github.com/users/amitaibu/followers","following_url":"https://api.github.com/users/amitaibu/following{/other_user}","gists_url":"https://api.github.com/users/amitaibu/gists{/gist_id}","starred_url":"https://api.github.com/users/amitaibu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitaibu/subscriptions","organizations_url":"https://api.github.com/users/amitaibu/orgs","repos_url":"https://api.github.com/users/amitaibu/repos","events_url":"https://api.github.com/users/amitaibu/events{/privacy}","received_events_url":"https://api.github.com/users/amitaibu/received_events","type":"User","site_admin":false},"body":"please comment.","created_at":"2014-11-23T14:34:34Z","updated_at":"2014-11-23T14:34:34Z","html_url":"https://github.com/capacity4dev/capacity4more/pull/213#discussion_r20764845","pull_request_url":"https://api.github.com/repos/capacity4dev/capacity4more/pulls/213","_links":{"self":{"href":"https://api.github.com/repos/capacity4dev/capacity4more/pulls/comments/20764845"},"html":{"href":"https://github.com/capacity4dev/capacity4more/pull/213#discussion_r20764845"},"pull_request":{"href":"https://api.github.com/repos/capacity4dev/capacity4more/pulls/213"}}},"pull_request":{"url":"https://api.github.com/repos/capacity4dev/capacity4more/pulls/213","id":24531841,"html_url":"https://github.com/capacity4dev/capacity4more/pull/213","diff_url":"https://github.com/capacity4dev/capacity4more/pull/213.diff","patch_url":"https://github.com/capacity4dev/capacity4more/pull/213.patch","issue_url":"https://api.github.com/repos/capacity4dev/capacity4more/issues/213","number":213,"state":"open","locked":false,"title":"WIP: CDF-174 Add discussion full form","user":{"login":"HelenaEksler","id":8306902,"avatar_url":"https://avatars.githubusercontent.com/u/8306902?v=3","gravatar_id":"","url":"https://api.github.com/users/HelenaEksler","html_url":"https://github.com/HelenaEksler","followers_url":"https://api.github.com/users/HelenaEksler/followers","following_url":"https://api.github.com/users/HelenaEksler/following{/other_user}","gists_url":"https://api.github.com/users/HelenaEksler/gists{/gist_id}","starred_url":"https://api.github.com/users/HelenaEksler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HelenaEksler/subscriptions","organizations_url":"https://api.github.com/users/HelenaEksler/orgs","repos_url":"https://api.github.com/users/HelenaEksler/repos","events_url":"https://api.github.com/users/HelenaEksler/events{/privacy}","received_events_url":"https://api.github.com/users/HelenaEksler/received_events","type":"User","site_admin":false},"body":"#207 ","created_at":"2014-11-17T12:20:55Z","updated_at":"2014-11-23T14:34:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83c1f2a821f75678f759e05e6f128333f57902f7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/capacity4dev/capacity4more/pulls/213/commits","review_comments_url":"https://api.github.com/repos/capacity4dev/capacity4more/pulls/213/comments","review_comment_url":"https://api.github.com/repos/capacity4dev/capacity4more/pulls/comments/{number}","comments_url":"https://api.github.com/repos/capacity4dev/capacity4more/issues/213/comments","statuses_url":"https://api.github.com/repos/capacity4dev/capacity4more/statuses/affaaf8fa76b6e3ee65c36a8936e248410462b6d","head":{"label":"capacity4dev:feature/CDF-174-add-discussion-full-form","ref":"feature/CDF-174-add-discussion-full-form","sha":"affaaf8fa76b6e3ee65c36a8936e248410462b6d","user":{"login":"capacity4dev","id":6919578,"avatar_url":"https://avatars.githubusercontent.com/u/6919578?v=3","gravatar_id":"","url":"https://api.github.com/users/capacity4dev","html_url":"https://github.com/capacity4dev","followers_url":"https://api.github.com/users/capacity4dev/followers","following_url":"https://api.github.com/users/capacity4dev/following{/other_user}","gists_url":"https://api.github.com/users/capacity4dev/gists{/gist_id}","starred_url":"https://api.github.com/users/capacity4dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capacity4dev/subscriptions","organizations_url":"https://api.github.com/users/capacity4dev/orgs","repos_url":"https://api.github.com/users/capacity4dev/repos","events_url":"https://api.github.com/users/capacity4dev/events{/privacy}","received_events_url":"https://api.github.com/users/capacity4dev/received_events","type":"Organization","site_admin":false},"repo":{"id":18283391,"name":"capacity4more","full_name":"capacity4dev/capacity4more","owner":{"login":"capacity4dev","id":6919578,"avatar_url":"https://avatars.githubusercontent.com/u/6919578?v=3","gravatar_id":"","url":"https://api.github.com/users/capacity4dev","html_url":"https://github.com/capacity4dev","followers_url":"https://api.github.com/users/capacity4dev/followers","following_url":"https://api.github.com/users/capacity4dev/following{/other_user}","gists_url":"https://api.github.com/users/capacity4dev/gists{/gist_id}","starred_url":"https://api.github.com/users/capacity4dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capacity4dev/subscriptions","organizations_url":"https://api.github.com/users/capacity4dev/orgs","repos_url":"https://api.github.com/users/capacity4dev/repos","events_url":"https://api.github.com/users/capacity4dev/events{/privacy}","received_events_url":"https://api.github.com/users/capacity4dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/capacity4dev/capacity4more","description":"A Drupal 7 powered distribution providing a community platform to share knowledge.","fork":false,"url":"https://api.github.com/repos/capacity4dev/capacity4more","forks_url":"https://api.github.com/repos/capacity4dev/capacity4more/forks","keys_url":"https://api.github.com/repos/capacity4dev/capacity4more/keys{/key_id}","collaborators_url":"https://api.github.com/repos/capacity4dev/capacity4more/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/capacity4dev/capacity4more/teams","hooks_url":"https://api.github.com/repos/capacity4dev/capacity4more/hooks","issue_events_url":"https://api.github.com/repos/capacity4dev/capacity4more/issues/events{/number}","events_url":"https://api.github.com/repos/capacity4dev/capacity4more/events","assignees_url":"https://api.github.com/repos/capacity4dev/capacity4more/assignees{/user}","branches_url":"https://api.github.com/repos/capacity4dev/capacity4more/branches{/branch}","tags_url":"https://api.github.com/repos/capacity4dev/capacity4more/tags","blobs_url":"https://api.github.com/repos/capacity4dev/capacity4more/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/capacity4dev/capacity4more/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/capacity4dev/capacity4more/git/refs{/sha}","trees_url":"https://api.github.com/repos/capacity4dev/capacity4more/git/trees{/sha}","statuses_url":"https://api.github.com/repos/capacity4dev/capacity4more/statuses/{sha}","languages_url":"https://api.github.com/repos/capacity4dev/capacity4more/languages","stargazers_url":"https://api.github.com/repos/capacity4dev/capacity4more/stargazers","contributors_url":"https://api.github.com/repos/capacity4dev/capacity4more/contributors","subscribers_url":"https://api.github.com/repos/capacity4dev/capacity4more/subscribers","subscription_url":"https://api.github.com/repos/capacity4dev/capacity4more/subscription","commits_url":"https://api.github.com/repos/capacity4dev/capacity4more/commits{/sha}","git_commits_url":"https://api.github.com/repos/capacity4dev/capacity4more/git/commits{/sha}","comments_url":"https://api.github.com/repos/capacity4dev/capacity4more/comments{/number}","issue_comment_url":"https://api.github.com/repos/capacity4dev/capacity4more/issues/comments/{number}","contents_url":"https://api.github.com/repos/capacity4dev/capacity4more/contents/{+path}","compare_url":"https://api.github.com/repos/capacity4dev/capacity4more/compare/{base}...{head}","merges_url":"https://api.github.com/repos/capacity4dev/capacity4more/merges","archive_url":"https://api.github.com/repos/capacity4dev/capacity4more/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/capacity4dev/capacity4more/downloads","issues_url":"https://api.github.com/repos/capacity4dev/capacity4more/issues{/number}","pulls_url":"https://api.github.com/repos/capacity4dev/capacity4more/pulls{/number}","milestones_url":"https://api.github.com/repos/capacity4dev/capacity4more/milestones{/number}","notifications_url":"https://api.github.com/repos/capacity4dev/capacity4more/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/capacity4dev/capacity4more/labels{/name}","releases_url":"https://api.github.com/repos/capacity4dev/capacity4more/releases{/id}","created_at":"2014-03-31T06:03:43Z","updated_at":"2014-11-21T10:45:49Z","pushed_at":"2014-11-23T13:40:17Z","git_url":"git://github.com/capacity4dev/capacity4more.git","ssh_url":"git@github.com:capacity4dev/capacity4more.git","clone_url":"https://github.com/capacity4dev/capacity4more.git","svn_url":"https://github.com/capacity4dev/capacity4more","homepage":null,"size":24424,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":36,"forks":0,"open_issues":36,"watchers":4,"default_branch":"develop"}},"base":{"label":"capacity4dev:develop","ref":"develop","sha":"ada6c30a966edd593647b3276267823f7fdcc2d7","user":{"login":"capacity4dev","id":6919578,"avatar_url":"https://avatars.githubusercontent.com/u/6919578?v=3","gravatar_id":"","url":"https://api.github.com/users/capacity4dev","html_url":"https://github.com/capacity4dev","followers_url":"https://api.github.com/users/capacity4dev/followers","following_url":"https://api.github.com/users/capacity4dev/following{/other_user}","gists_url":"https://api.github.com/users/capacity4dev/gists{/gist_id}","starred_url":"https://api.github.com/users/capacity4dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capacity4dev/subscriptions","organizations_url":"https://api.github.com/users/capacity4dev/orgs","repos_url":"https://api.github.com/users/capacity4dev/repos","events_url":"https://api.github.com/users/capacity4dev/events{/privacy}","received_events_url":"https://api.github.com/users/capacity4dev/received_events","type":"Organization","site_admin":false},"repo":{"id":18283391,"name":"capacity4more","full_name":"capacity4dev/capacity4more","owner":{"login":"capacity4dev","id":6919578,"avatar_url":"https://avatars.githubusercontent.com/u/6919578?v=3","gravatar_id":"","url":"https://api.github.com/users/capacity4dev","html_url":"https://github.com/capacity4dev","followers_url":"https://api.github.com/users/capacity4dev/followers","following_url":"https://api.github.com/users/capacity4dev/following{/other_user}","gists_url":"https://api.github.com/users/capacity4dev/gists{/gist_id}","starred_url":"https://api.github.com/users/capacity4dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capacity4dev/subscriptions","organizations_url":"https://api.github.com/users/capacity4dev/orgs","repos_url":"https://api.github.com/users/capacity4dev/repos","events_url":"https://api.github.com/users/capacity4dev/events{/privacy}","received_events_url":"https://api.github.com/users/capacity4dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/capacity4dev/capacity4more","description":"A Drupal 7 powered distribution providing a community platform to share knowledge.","fork":false,"url":"https://api.github.com/repos/capacity4dev/capacity4more","forks_url":"https://api.github.com/repos/capacity4dev/capacity4more/forks","keys_url":"https://api.github.com/repos/capacity4dev/capacity4more/keys{/key_id}","collaborators_url":"https://api.github.com/repos/capacity4dev/capacity4more/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/capacity4dev/capacity4more/teams","hooks_url":"https://api.github.com/repos/capacity4dev/capacity4more/hooks","issue_events_url":"https://api.github.com/repos/capacity4dev/capacity4more/issues/events{/number}","events_url":"https://api.github.com/repos/capacity4dev/capacity4more/events","assignees_url":"https://api.github.com/repos/capacity4dev/capacity4more/assignees{/user}","branches_url":"https://api.github.com/repos/capacity4dev/capacity4more/branches{/branch}","tags_url":"https://api.github.com/repos/capacity4dev/capacity4more/tags","blobs_url":"https://api.github.com/repos/capacity4dev/capacity4more/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/capacity4dev/capacity4more/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/capacity4dev/capacity4more/git/refs{/sha}","trees_url":"https://api.github.com/repos/capacity4dev/capacity4more/git/trees{/sha}","statuses_url":"https://api.github.com/repos/capacity4dev/capacity4more/statuses/{sha}","languages_url":"https://api.github.com/repos/capacity4dev/capacity4more/languages","stargazers_url":"https://api.github.com/repos/capacity4dev/capacity4more/stargazers","contributors_url":"https://api.github.com/repos/capacity4dev/capacity4more/contributors","subscribers_url":"https://api.github.com/repos/capacity4dev/capacity4more/subscribers","subscription_url":"https://api.github.com/repos/capacity4dev/capacity4more/subscription","commits_url":"https://api.github.com/repos/capacity4dev/capacity4more/commits{/sha}","git_commits_url":"https://api.github.com/repos/capacity4dev/capacity4more/git/commits{/sha}","comments_url":"https://api.github.com/repos/capacity4dev/capacity4more/comments{/number}","issue_comment_url":"https://api.github.com/repos/capacity4dev/capacity4more/issues/comments/{number}","contents_url":"https://api.github.com/repos/capacity4dev/capacity4more/contents/{+path}","compare_url":"https://api.github.com/repos/capacity4dev/capacity4more/compare/{base}...{head}","merges_url":"https://api.github.com/repos/capacity4dev/capacity4more/merges","archive_url":"https://api.github.com/repos/capacity4dev/capacity4more/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/capacity4dev/capacity4more/downloads","issues_url":"https://api.github.com/repos/capacity4dev/capacity4more/issues{/number}","pulls_url":"https://api.github.com/repos/capacity4dev/capacity4more/pulls{/number}","milestones_url":"https://api.github.com/repos/capacity4dev/capacity4more/milestones{/number}","notifications_url":"https://api.github.com/repos/capacity4dev/capacity4more/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/capacity4dev/capacity4more/labels{/name}","releases_url":"https://api.github.com/repos/capacity4dev/capacity4more/releases{/id}","created_at":"2014-03-31T06:03:43Z","updated_at":"2014-11-21T10:45:49Z","pushed_at":"2014-11-23T13:40:17Z","git_url":"git://github.com/capacity4dev/capacity4more.git","ssh_url":"git@github.com:capacity4dev/capacity4more.git","clone_url":"https://github.com/capacity4dev/capacity4more.git","svn_url":"https://github.com/capacity4dev/capacity4more","homepage":null,"size":24424,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":36,"forks":0,"open_issues":36,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/capacity4dev/capacity4more/pulls/213"},"html":{"href":"https://github.com/capacity4dev/capacity4more/pull/213"},"issue":{"href":"https://api.github.com/repos/capacity4dev/capacity4more/issues/213"},"comments":{"href":"https://api.github.com/repos/capacity4dev/capacity4more/issues/213/comments"},"review_comments":{"href":"https://api.github.com/repos/capacity4dev/capacity4more/pulls/213/comments"},"review_comment":{"href":"https://api.github.com/repos/capacity4dev/capacity4more/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/capacity4dev/capacity4more/pulls/213/commits"},"statuses":{"href":"https://api.github.com/repos/capacity4dev/capacity4more/statuses/affaaf8fa76b6e3ee65c36a8936e248410462b6d"}}}}