{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/pulls/comments/225447956","pull_request_review_id":165032672,"id":225447956,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTQ0Nzk1Ng==","diff_hunk":"@@ -0,0 +1,84 @@\n+import * as actionTypes from './actionTypes';\n+import { buildDropDown } from './helpers';\n+\n+const sortOn = property => (a, b) => {\n+  if (a[property] < b[property]) {\n+    return -1;\n+  } else if (a[property] > b[property]) {\n+    return 1;\n+  }\n+  return 0;\n+};\n+const mapCloudType = (cloudTypes) => {\n+  const credentialTypes = cloudTypes.embedded_ansible_credential_types;\n+  const cloudTypeList = [];\n+  Object.keys(credentialTypes).forEach((key) => {","path":"app/javascript/react/ansibleCatalog/catalogReducer.js","position":15,"original_position":15,"commit_id":"4d0a693f955e77dcc78625267d93bf99cf73bd53","original_commit_id":"4d0a693f955e77dcc78625267d93bf99cf73bd53","user":{"login":"Hyperkid123","id":22619452,"node_id":"MDQ6VXNlcjIyNjE5NDUy","avatar_url":"https://avatars1.githubusercontent.com/u/22619452?v=4","gravatar_id":"","url":"https://api.github.com/users/Hyperkid123","html_url":"https://github.com/Hyperkid123","followers_url":"https://api.github.com/users/Hyperkid123/followers","following_url":"https://api.github.com/users/Hyperkid123/following{/other_user}","gists_url":"https://api.github.com/users/Hyperkid123/gists{/gist_id}","starred_url":"https://api.github.com/users/Hyperkid123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hyperkid123/subscriptions","organizations_url":"https://api.github.com/users/Hyperkid123/orgs","repos_url":"https://api.github.com/users/Hyperkid123/repos","events_url":"https://api.github.com/users/Hyperkid123/events{/privacy}","received_events_url":"https://api.github.com/users/Hyperkid123/received_events","type":"User","site_admin":false},"body":"Another example how to save some lines.\r\n\r\n```javascript\r\nconst mapCloudType = ({ embedded_ansible_credential_types }) =>\r\n  Object.keys(embedded_ansible_credential_types).filter(key => embedded_ansible_credential_types[key].type === 'cloud').map(key => ({\r\n    label: embedded_ansible_credential_types[key].label,\r\n    value: key,\r\n  }));\r\n}))\r\n```","created_at":"2018-10-16T08:43:01Z","updated_at":"2018-10-16T08:52:01Z","html_url":"https://github.com/ManageIQ/manageiq-ui-classic/pull/4696#discussion_r225447956","pull_request_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/pulls/4696","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/pulls/comments/225447956"},"html":{"href":"https://github.com/ManageIQ/manageiq-ui-classic/pull/4696#discussion_r225447956"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/pulls/4696"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/pulls/4696","id":217371413,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3MzcxNDEz","html_url":"https://github.com/ManageIQ/manageiq-ui-classic/pull/4696","diff_url":"https://github.com/ManageIQ/manageiq-ui-classic/pull/4696.diff","patch_url":"https://github.com/ManageIQ/manageiq-ui-classic/pull/4696.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/issues/4696","number":4696,"state":"open","locked":false,"title":"Update Ansible playbook catalog item form to be written in React","user":{"login":"chalettu","id":230549,"node_id":"MDQ6VXNlcjIzMDU0OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/230549?v=4","gravatar_id":"","url":"https://api.github.com/users/chalettu","html_url":"https://github.com/chalettu","followers_url":"https://api.github.com/users/chalettu/followers","following_url":"https://api.github.com/users/chalettu/following{/other_user}","gists_url":"https://api.github.com/users/chalettu/gists{/gist_id}","starred_url":"https://api.github.com/users/chalettu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalettu/subscriptions","organizations_url":"https://api.github.com/users/chalettu/orgs","repos_url":"https://api.github.com/users/chalettu/repos","events_url":"https://api.github.com/users/chalettu/events{/privacy}","received_events_url":"https://api.github.com/users/chalettu/received_events","type":"User","site_admin":false},"body":"This PR updates the ansible catalog item form to use react instead of Angular.    ","created_at":"2018-09-21T18:54:00Z","updated_at":"2018-10-16T08:52:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f0d0deaaaa01837b92b25ac39b53ff6a0aa1de0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/pulls/4696/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/pulls/4696/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/issues/4696/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/statuses/4d0a693f955e77dcc78625267d93bf99cf73bd53","head":{"label":"chalettu:react-form-playbooks","ref":"react-form-playbooks","sha":"4d0a693f955e77dcc78625267d93bf99cf73bd53","user":{"login":"chalettu","id":230549,"node_id":"MDQ6VXNlcjIzMDU0OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/230549?v=4","gravatar_id":"","url":"https://api.github.com/users/chalettu","html_url":"https://github.com/chalettu","followers_url":"https://api.github.com/users/chalettu/followers","following_url":"https://api.github.com/users/chalettu/following{/other_user}","gists_url":"https://api.github.com/users/chalettu/gists{/gist_id}","starred_url":"https://api.github.com/users/chalettu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalettu/subscriptions","organizations_url":"https://api.github.com/users/chalettu/orgs","repos_url":"https://api.github.com/users/chalettu/repos","events_url":"https://api.github.com/users/chalettu/events{/privacy}","received_events_url":"https://api.github.com/users/chalettu/received_events","type":"User","site_admin":false},"repo":{"id":105178367,"node_id":"MDEwOlJlcG9zaXRvcnkxMDUxNzgzNjc=","name":"manageiq-ui-classic","full_name":"chalettu/manageiq-ui-classic","private":false,"owner":{"login":"chalettu","id":230549,"node_id":"MDQ6VXNlcjIzMDU0OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/230549?v=4","gravatar_id":"","url":"https://api.github.com/users/chalettu","html_url":"https://github.com/chalettu","followers_url":"https://api.github.com/users/chalettu/followers","following_url":"https://api.github.com/users/chalettu/following{/other_user}","gists_url":"https://api.github.com/users/chalettu/gists{/gist_id}","starred_url":"https://api.github.com/users/chalettu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalettu/subscriptions","organizations_url":"https://api.github.com/users/chalettu/orgs","repos_url":"https://api.github.com/users/chalettu/repos","events_url":"https://api.github.com/users/chalettu/events{/privacy}","received_events_url":"https://api.github.com/users/chalettu/received_events","type":"User","site_admin":false},"html_url":"https://github.com/chalettu/manageiq-ui-classic","description":"Classic UI of ManageIQ","fork":true,"url":"https://api.github.com/repos/chalettu/manageiq-ui-classic","forks_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/forks","keys_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/teams","hooks_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/hooks","issue_events_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/issues/events{/number}","events_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/events","assignees_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/assignees{/user}","branches_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/branches{/branch}","tags_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/tags","blobs_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/git/refs{/sha}","trees_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/statuses/{sha}","languages_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/languages","stargazers_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/stargazers","contributors_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/contributors","subscribers_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/subscribers","subscription_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/subscription","commits_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/commits{/sha}","git_commits_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/git/commits{/sha}","comments_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/comments{/number}","issue_comment_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/issues/comments{/number}","contents_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/contents/{+path}","compare_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/merges","archive_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/downloads","issues_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/issues{/number}","pulls_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/pulls{/number}","milestones_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/milestones{/number}","notifications_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/labels{/name}","releases_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/releases{/id}","deployments_url":"https://api.github.com/repos/chalettu/manageiq-ui-classic/deployments","created_at":"2017-09-28T17:25:59Z","updated_at":"2018-10-10T17:53:07Z","pushed_at":"2018-10-15T19:02:36Z","git_url":"git://github.com/chalettu/manageiq-ui-classic.git","ssh_url":"git@github.com:chalettu/manageiq-ui-classic.git","clone_url":"https://github.com/chalettu/manageiq-ui-classic.git","svn_url":"https://github.com/chalettu/manageiq-ui-classic","homepage":null,"size":61970,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ManageIQ:master","ref":"master","sha":"3ccb6899fac63e3824ceca4aff9e156bcaf0794d","user":{"login":"ManageIQ","id":1125575,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjU1NzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1125575?v=4","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":77085298,"node_id":"MDEwOlJlcG9zaXRvcnk3NzA4NTI5OA==","name":"manageiq-ui-classic","full_name":"ManageIQ/manageiq-ui-classic","private":false,"owner":{"login":"ManageIQ","id":1125575,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjU1NzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1125575?v=4","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ManageIQ/manageiq-ui-classic","description":"Classic UI of ManageIQ","fork":false,"url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic","forks_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/forks","keys_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/teams","hooks_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/events","assignees_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/tags","blobs_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/subscription","commits_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/merges","archive_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/downloads","issues_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/releases{/id}","deployments_url":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/deployments","created_at":"2016-12-21T20:53:08Z","updated_at":"2018-10-15T12:51:29Z","pushed_at":"2018-10-16T08:42:24Z","git_url":"git://github.com/ManageIQ/manageiq-ui-classic.git","ssh_url":"git@github.com:ManageIQ/manageiq-ui-classic.git","clone_url":"https://github.com/ManageIQ/manageiq-ui-classic.git","svn_url":"https://github.com/ManageIQ/manageiq-ui-classic","homepage":null,"size":68529,"stargazers_count":30,"watchers_count":30,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":256,"mirror_url":null,"archived":false,"open_issues_count":247,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":256,"open_issues":247,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/pulls/4696"},"html":{"href":"https://github.com/ManageIQ/manageiq-ui-classic/pull/4696"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/issues/4696"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/issues/4696/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/pulls/4696/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/pulls/4696/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq-ui-classic/statuses/4d0a693f955e77dcc78625267d93bf99cf73bd53"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Hyperkid123"}}