{"action":"created","comment":{"url":"https://api.github.com/repos/kubevirt/web-ui-components/pulls/comments/261588416","pull_request_review_id":209558047,"id":261588416,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2MTU4ODQxNg==","diff_hunk":"@@ -387,3 +392,50 @@ export const addPrefixToPatch = (prefix, patch) => ({\n   ...patch,\n   path: `${prefix}${patch.path}`,\n });\n+\n+const getWrappedDeviceType = device => {\n+  let type;\n+  if (isNic(device)) {\n+    type = DEVICE_TYPE_INTERFACE;\n+  } else if (isDisk(device)) {","path":"src/utils/patches.js","position":54,"original_position":54,"commit_id":"84ac1579c484d40cf4a744b9617fb4aa1de3523e","original_commit_id":"84ac1579c484d40cf4a744b9617fb4aa1de3523e","user":{"login":"suomiy","id":3648838,"node_id":"MDQ6VXNlcjM2NDg4Mzg=","avatar_url":"https://avatars0.githubusercontent.com/u/3648838?v=4","gravatar_id":"","url":"https://api.github.com/users/suomiy","html_url":"https://github.com/suomiy","followers_url":"https://api.github.com/users/suomiy/followers","following_url":"https://api.github.com/users/suomiy/following{/other_user}","gists_url":"https://api.github.com/users/suomiy/gists{/gist_id}","starred_url":"https://api.github.com/users/suomiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suomiy/subscriptions","organizations_url":"https://api.github.com/users/suomiy/orgs","repos_url":"https://api.github.com/users/suomiy/repos","events_url":"https://api.github.com/users/suomiy/events{/privacy}","received_events_url":"https://api.github.com/users/suomiy/received_events","type":"User","site_admin":false},"body":"I know this was needed historically but `isNic` and `isDisk` are not needed anymore. You can just call `get(device, 'type')` instead of this method,","created_at":"2019-03-01T12:41:07Z","updated_at":"2019-03-01T12:51:10Z","html_url":"https://github.com/kubevirt/web-ui-components/pull/199#discussion_r261588416","pull_request_url":"https://api.github.com/repos/kubevirt/web-ui-components/pulls/199","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/kubevirt/web-ui-components/pulls/comments/261588416"},"html":{"href":"https://github.com/kubevirt/web-ui-components/pull/199#discussion_r261588416"},"pull_request":{"href":"https://api.github.com/repos/kubevirt/web-ui-components/pulls/199"}}},"pull_request":{"url":"https://api.github.com/repos/kubevirt/web-ui-components/pulls/199","id":248720107,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQ4NzIwMTA3","html_url":"https://github.com/kubevirt/web-ui-components/pull/199","diff_url":"https://github.com/kubevirt/web-ui-components/pull/199.diff","patch_url":"https://github.com/kubevirt/web-ui-components/pull/199.patch","issue_url":"https://api.github.com/repos/kubevirt/web-ui-components/issues/199","number":199,"state":"open","locked":false,"title":"WIP: Add boot order component to VM details dialog","user":{"login":"pcbailey","id":8544299,"node_id":"MDQ6VXNlcjg1NDQyOTk=","avatar_url":"https://avatars0.githubusercontent.com/u/8544299?v=4","gravatar_id":"","url":"https://api.github.com/users/pcbailey","html_url":"https://github.com/pcbailey","followers_url":"https://api.github.com/users/pcbailey/followers","following_url":"https://api.github.com/users/pcbailey/following{/other_user}","gists_url":"https://api.github.com/users/pcbailey/gists{/gist_id}","starred_url":"https://api.github.com/users/pcbailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcbailey/subscriptions","organizations_url":"https://api.github.com/users/pcbailey/orgs","repos_url":"https://api.github.com/users/pcbailey/repos","events_url":"https://api.github.com/users/pcbailey/events{/privacy}","received_events_url":"https://api.github.com/users/pcbailey/received_events","type":"User","site_admin":false},"body":"This PR is to add a boot order component to the VM details dialog.\r\n\r\nTODOs: \r\n- Rewrite existing tests that are failing and write new tests for new code\r\n- Update boot order assignments when a device is removed\r\n- Edit functionality (can be added to this PR or a separate one)","created_at":"2019-01-30T01:58:45Z","updated_at":"2019-03-01T12:51:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec7d9f558965e076c7569ff28d707eb40062a44c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"vojtechszocs","id":648971,"node_id":"MDQ6VXNlcjY0ODk3MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/648971?v=4","gravatar_id":"","url":"https://api.github.com/users/vojtechszocs","html_url":"https://github.com/vojtechszocs","followers_url":"https://api.github.com/users/vojtechszocs/followers","following_url":"https://api.github.com/users/vojtechszocs/following{/other_user}","gists_url":"https://api.github.com/users/vojtechszocs/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtechszocs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtechszocs/subscriptions","organizations_url":"https://api.github.com/users/vojtechszocs/orgs","repos_url":"https://api.github.com/users/vojtechszocs/repos","events_url":"https://api.github.com/users/vojtechszocs/events{/privacy}","received_events_url":"https://api.github.com/users/vojtechszocs/received_events","type":"User","site_admin":false},{"login":"jelkosz","id":701107,"node_id":"MDQ6VXNlcjcwMTEwNw==","avatar_url":"https://avatars0.githubusercontent.com/u/701107?v=4","gravatar_id":"","url":"https://api.github.com/users/jelkosz","html_url":"https://github.com/jelkosz","followers_url":"https://api.github.com/users/jelkosz/followers","following_url":"https://api.github.com/users/jelkosz/following{/other_user}","gists_url":"https://api.github.com/users/jelkosz/gists{/gist_id}","starred_url":"https://api.github.com/users/jelkosz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelkosz/subscriptions","organizations_url":"https://api.github.com/users/jelkosz/orgs","repos_url":"https://api.github.com/users/jelkosz/repos","events_url":"https://api.github.com/users/jelkosz/events{/privacy}","received_events_url":"https://api.github.com/users/jelkosz/received_events","type":"User","site_admin":false},{"login":"mareklibra","id":17194943,"node_id":"MDQ6VXNlcjE3MTk0OTQz","avatar_url":"https://avatars2.githubusercontent.com/u/17194943?v=4","gravatar_id":"","url":"https://api.github.com/users/mareklibra","html_url":"https://github.com/mareklibra","followers_url":"https://api.github.com/users/mareklibra/followers","following_url":"https://api.github.com/users/mareklibra/following{/other_user}","gists_url":"https://api.github.com/users/mareklibra/gists{/gist_id}","starred_url":"https://api.github.com/users/mareklibra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mareklibra/subscriptions","organizations_url":"https://api.github.com/users/mareklibra/orgs","repos_url":"https://api.github.com/users/mareklibra/repos","events_url":"https://api.github.com/users/mareklibra/events{/privacy}","received_events_url":"https://api.github.com/users/mareklibra/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1080237671,"node_id":"MDU6TGFiZWwxMDgwMjM3Njcx","url":"https://api.github.com/repos/kubevirt/web-ui-components/labels/size/L","name":"size/L","color":"ee9900","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kubevirt/web-ui-components/pulls/199/commits","review_comments_url":"https://api.github.com/repos/kubevirt/web-ui-components/pulls/199/comments","review_comment_url":"https://api.github.com/repos/kubevirt/web-ui-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubevirt/web-ui-components/issues/199/comments","statuses_url":"https://api.github.com/repos/kubevirt/web-ui-components/statuses/84ac1579c484d40cf4a744b9617fb4aa1de3523e","head":{"label":"pcbailey:boot-order","ref":"boot-order","sha":"84ac1579c484d40cf4a744b9617fb4aa1de3523e","user":{"login":"pcbailey","id":8544299,"node_id":"MDQ6VXNlcjg1NDQyOTk=","avatar_url":"https://avatars0.githubusercontent.com/u/8544299?v=4","gravatar_id":"","url":"https://api.github.com/users/pcbailey","html_url":"https://github.com/pcbailey","followers_url":"https://api.github.com/users/pcbailey/followers","following_url":"https://api.github.com/users/pcbailey/following{/other_user}","gists_url":"https://api.github.com/users/pcbailey/gists{/gist_id}","starred_url":"https://api.github.com/users/pcbailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcbailey/subscriptions","organizations_url":"https://api.github.com/users/pcbailey/orgs","repos_url":"https://api.github.com/users/pcbailey/repos","events_url":"https://api.github.com/users/pcbailey/events{/privacy}","received_events_url":"https://api.github.com/users/pcbailey/received_events","type":"User","site_admin":false},"repo":{"id":151403307,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE0MDMzMDc=","name":"web-ui-components","full_name":"pcbailey/web-ui-components","private":false,"owner":{"login":"pcbailey","id":8544299,"node_id":"MDQ6VXNlcjg1NDQyOTk=","avatar_url":"https://avatars0.githubusercontent.com/u/8544299?v=4","gravatar_id":"","url":"https://api.github.com/users/pcbailey","html_url":"https://github.com/pcbailey","followers_url":"https://api.github.com/users/pcbailey/followers","following_url":"https://api.github.com/users/pcbailey/following{/other_user}","gists_url":"https://api.github.com/users/pcbailey/gists{/gist_id}","starred_url":"https://api.github.com/users/pcbailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcbailey/subscriptions","organizations_url":"https://api.github.com/users/pcbailey/orgs","repos_url":"https://api.github.com/users/pcbailey/repos","events_url":"https://api.github.com/users/pcbailey/events{/privacy}","received_events_url":"https://api.github.com/users/pcbailey/received_events","type":"User","site_admin":false},"html_url":"https://github.com/pcbailey/web-ui-components","description":"User interface project","fork":true,"url":"https://api.github.com/repos/pcbailey/web-ui-components","forks_url":"https://api.github.com/repos/pcbailey/web-ui-components/forks","keys_url":"https://api.github.com/repos/pcbailey/web-ui-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pcbailey/web-ui-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pcbailey/web-ui-components/teams","hooks_url":"https://api.github.com/repos/pcbailey/web-ui-components/hooks","issue_events_url":"https://api.github.com/repos/pcbailey/web-ui-components/issues/events{/number}","events_url":"https://api.github.com/repos/pcbailey/web-ui-components/events","assignees_url":"https://api.github.com/repos/pcbailey/web-ui-components/assignees{/user}","branches_url":"https://api.github.com/repos/pcbailey/web-ui-components/branches{/branch}","tags_url":"https://api.github.com/repos/pcbailey/web-ui-components/tags","blobs_url":"https://api.github.com/repos/pcbailey/web-ui-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pcbailey/web-ui-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pcbailey/web-ui-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/pcbailey/web-ui-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pcbailey/web-ui-components/statuses/{sha}","languages_url":"https://api.github.com/repos/pcbailey/web-ui-components/languages","stargazers_url":"https://api.github.com/repos/pcbailey/web-ui-components/stargazers","contributors_url":"https://api.github.com/repos/pcbailey/web-ui-components/contributors","subscribers_url":"https://api.github.com/repos/pcbailey/web-ui-components/subscribers","subscription_url":"https://api.github.com/repos/pcbailey/web-ui-components/subscription","commits_url":"https://api.github.com/repos/pcbailey/web-ui-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/pcbailey/web-ui-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/pcbailey/web-ui-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/pcbailey/web-ui-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/pcbailey/web-ui-components/contents/{+path}","compare_url":"https://api.github.com/repos/pcbailey/web-ui-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pcbailey/web-ui-components/merges","archive_url":"https://api.github.com/repos/pcbailey/web-ui-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pcbailey/web-ui-components/downloads","issues_url":"https://api.github.com/repos/pcbailey/web-ui-components/issues{/number}","pulls_url":"https://api.github.com/repos/pcbailey/web-ui-components/pulls{/number}","milestones_url":"https://api.github.com/repos/pcbailey/web-ui-components/milestones{/number}","notifications_url":"https://api.github.com/repos/pcbailey/web-ui-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pcbailey/web-ui-components/labels{/name}","releases_url":"https://api.github.com/repos/pcbailey/web-ui-components/releases{/id}","deployments_url":"https://api.github.com/repos/pcbailey/web-ui-components/deployments","created_at":"2018-10-03T11:39:44Z","updated_at":"2019-01-16T14:13:29Z","pushed_at":"2019-02-28T14:31:27Z","git_url":"git://github.com/pcbailey/web-ui-components.git","ssh_url":"git@github.com:pcbailey/web-ui-components.git","clone_url":"https://github.com/pcbailey/web-ui-components.git","svn_url":"https://github.com/pcbailey/web-ui-components","homepage":null,"size":1163,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kubevirt:master","ref":"master","sha":"5b949883d2ed8c20b3157d1007f521801d0af4ad","user":{"login":"kubevirt","id":18700703,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NzAwNzAz","avatar_url":"https://avatars1.githubusercontent.com/u/18700703?v=4","gravatar_id":"","url":"https://api.github.com/users/kubevirt","html_url":"https://github.com/kubevirt","followers_url":"https://api.github.com/users/kubevirt/followers","following_url":"https://api.github.com/users/kubevirt/following{/other_user}","gists_url":"https://api.github.com/users/kubevirt/gists{/gist_id}","starred_url":"https://api.github.com/users/kubevirt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubevirt/subscriptions","organizations_url":"https://api.github.com/users/kubevirt/orgs","repos_url":"https://api.github.com/users/kubevirt/repos","events_url":"https://api.github.com/users/kubevirt/events{/privacy}","received_events_url":"https://api.github.com/users/kubevirt/received_events","type":"Organization","site_admin":false},"repo":{"id":145694008,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU2OTQwMDg=","name":"web-ui-components","full_name":"kubevirt/web-ui-components","private":false,"owner":{"login":"kubevirt","id":18700703,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NzAwNzAz","avatar_url":"https://avatars1.githubusercontent.com/u/18700703?v=4","gravatar_id":"","url":"https://api.github.com/users/kubevirt","html_url":"https://github.com/kubevirt","followers_url":"https://api.github.com/users/kubevirt/followers","following_url":"https://api.github.com/users/kubevirt/following{/other_user}","gists_url":"https://api.github.com/users/kubevirt/gists{/gist_id}","starred_url":"https://api.github.com/users/kubevirt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubevirt/subscriptions","organizations_url":"https://api.github.com/users/kubevirt/orgs","repos_url":"https://api.github.com/users/kubevirt/repos","events_url":"https://api.github.com/users/kubevirt/events{/privacy}","received_events_url":"https://api.github.com/users/kubevirt/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kubevirt/web-ui-components","description":"https://kubevirt.io/web-ui-components","fork":false,"url":"https://api.github.com/repos/kubevirt/web-ui-components","forks_url":"https://api.github.com/repos/kubevirt/web-ui-components/forks","keys_url":"https://api.github.com/repos/kubevirt/web-ui-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubevirt/web-ui-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubevirt/web-ui-components/teams","hooks_url":"https://api.github.com/repos/kubevirt/web-ui-components/hooks","issue_events_url":"https://api.github.com/repos/kubevirt/web-ui-components/issues/events{/number}","events_url":"https://api.github.com/repos/kubevirt/web-ui-components/events","assignees_url":"https://api.github.com/repos/kubevirt/web-ui-components/assignees{/user}","branches_url":"https://api.github.com/repos/kubevirt/web-ui-components/branches{/branch}","tags_url":"https://api.github.com/repos/kubevirt/web-ui-components/tags","blobs_url":"https://api.github.com/repos/kubevirt/web-ui-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubevirt/web-ui-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubevirt/web-ui-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubevirt/web-ui-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubevirt/web-ui-components/statuses/{sha}","languages_url":"https://api.github.com/repos/kubevirt/web-ui-components/languages","stargazers_url":"https://api.github.com/repos/kubevirt/web-ui-components/stargazers","contributors_url":"https://api.github.com/repos/kubevirt/web-ui-components/contributors","subscribers_url":"https://api.github.com/repos/kubevirt/web-ui-components/subscribers","subscription_url":"https://api.github.com/repos/kubevirt/web-ui-components/subscription","commits_url":"https://api.github.com/repos/kubevirt/web-ui-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubevirt/web-ui-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubevirt/web-ui-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubevirt/web-ui-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubevirt/web-ui-components/contents/{+path}","compare_url":"https://api.github.com/repos/kubevirt/web-ui-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubevirt/web-ui-components/merges","archive_url":"https://api.github.com/repos/kubevirt/web-ui-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubevirt/web-ui-components/downloads","issues_url":"https://api.github.com/repos/kubevirt/web-ui-components/issues{/number}","pulls_url":"https://api.github.com/repos/kubevirt/web-ui-components/pulls{/number}","milestones_url":"https://api.github.com/repos/kubevirt/web-ui-components/milestones{/number}","notifications_url":"https://api.github.com/repos/kubevirt/web-ui-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubevirt/web-ui-components/labels{/name}","releases_url":"https://api.github.com/repos/kubevirt/web-ui-components/releases{/id}","deployments_url":"https://api.github.com/repos/kubevirt/web-ui-components/deployments","created_at":"2018-08-22T10:32:30Z","updated_at":"2019-02-28T10:59:48Z","pushed_at":"2019-03-01T11:38:28Z","git_url":"git://github.com/kubevirt/web-ui-components.git","ssh_url":"git@github.com:kubevirt/web-ui-components.git","clone_url":"https://github.com/kubevirt/web-ui-components.git","svn_url":"https://github.com/kubevirt/web-ui-components","homepage":"","size":7532,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":31,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":10,"open_issues":31,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubevirt/web-ui-components/pulls/199"},"html":{"href":"https://github.com/kubevirt/web-ui-components/pull/199"},"issue":{"href":"https://api.github.com/repos/kubevirt/web-ui-components/issues/199"},"comments":{"href":"https://api.github.com/repos/kubevirt/web-ui-components/issues/199/comments"},"review_comments":{"href":"https://api.github.com/repos/kubevirt/web-ui-components/pulls/199/comments"},"review_comment":{"href":"https://api.github.com/repos/kubevirt/web-ui-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubevirt/web-ui-components/pulls/199/commits"},"statuses":{"href":"https://api.github.com/repos/kubevirt/web-ui-components/statuses/84ac1579c484d40cf4a744b9617fb4aa1de3523e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"suomiy"}}