{"action":"created","comment":{"url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/pulls/comments/244924935","pull_request_review_id":188916070,"id":244924935,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDkyNDkzNQ==","diff_hunk":"@@ -23,6 +23,9 @@ const { TitleBar } = require('../windowsTitlebar');\n const titleBar = new TitleBar();\n const { buildNumber } = require('../../package.json');\n const SnackBar = require('../snackBar').SnackBar;\n+const fs = remote.require('fs');","path":"js/preload/preloadMain.js","position":4,"original_position":4,"commit_id":"430bc42c9d6e417c72e80d61dcab1a5a9331004a","original_commit_id":"ab9b575ffb84604a98da515bb8b6bea8819c4b46","user":{"login":"KiranNiranjan","id":13243259,"node_id":"MDQ6VXNlcjEzMjQzMjU5","avatar_url":"https://avatars3.githubusercontent.com/u/13243259?v=4","gravatar_id":"","url":"https://api.github.com/users/KiranNiranjan","html_url":"https://github.com/KiranNiranjan","followers_url":"https://api.github.com/users/KiranNiranjan/followers","following_url":"https://api.github.com/users/KiranNiranjan/following{/other_user}","gists_url":"https://api.github.com/users/KiranNiranjan/gists{/gist_id}","starred_url":"https://api.github.com/users/KiranNiranjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiranNiranjan/subscriptions","organizations_url":"https://api.github.com/users/KiranNiranjan/orgs","repos_url":"https://api.github.com/users/KiranNiranjan/repos","events_url":"https://api.github.com/users/KiranNiranjan/events{/privacy}","received_events_url":"https://api.github.com/users/KiranNiranjan/received_events","type":"User","site_admin":false},"body":"Currently, I don't think there are any solutions as IPC don't support buffers","created_at":"2019-01-03T07:33:06Z","updated_at":"2019-01-03T07:33:06Z","html_url":"https://github.com/symphonyoss/SymphonyElectron/pull/540#discussion_r244924935","pull_request_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/pulls/540","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/symphonyoss/SymphonyElectron/pulls/comments/244924935"},"html":{"href":"https://github.com/symphonyoss/SymphonyElectron/pull/540#discussion_r244924935"},"pull_request":{"href":"https://api.github.com/repos/symphonyoss/SymphonyElectron/pulls/540"}},"in_reply_to_id":244694852},"pull_request":{"url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/pulls/540","id":240969116,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwOTY5MTE2","html_url":"https://github.com/symphonyoss/SymphonyElectron/pull/540","diff_url":"https://github.com/symphonyoss/SymphonyElectron/pull/540.diff","patch_url":"https://github.com/symphonyoss/SymphonyElectron/pull/540.patch","issue_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/issues/540","number":540,"state":"open","locked":false,"title":"ELECTRON-978 (Implement native file picker modal window)","user":{"login":"KiranNiranjan","id":13243259,"node_id":"MDQ6VXNlcjEzMjQzMjU5","avatar_url":"https://avatars3.githubusercontent.com/u/13243259?v=4","gravatar_id":"","url":"https://api.github.com/users/KiranNiranjan","html_url":"https://github.com/KiranNiranjan","followers_url":"https://api.github.com/users/KiranNiranjan/followers","following_url":"https://api.github.com/users/KiranNiranjan/following{/other_user}","gists_url":"https://api.github.com/users/KiranNiranjan/gists{/gist_id}","starred_url":"https://api.github.com/users/KiranNiranjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiranNiranjan/subscriptions","organizations_url":"https://api.github.com/users/KiranNiranjan/orgs","repos_url":"https://api.github.com/users/KiranNiranjan/repos","events_url":"https://api.github.com/users/KiranNiranjan/events{/privacy}","received_events_url":"https://api.github.com/users/KiranNiranjan/received_events","type":"User","site_admin":false},"body":"## Description\r\nExposes an API to the web app to open a native file picker modal [ELECTRON-978](https://perzoinc.atlassian.net/browse/ELECTRON-978)\r\n\r\n## Solution Approach\r\nExpose an API which invokes `dialog.showOpenDialog` inturn\r\n\r\n\r\n## Screenshot\r\n![screenshot 2018-12-26 at 5 24 56 pm](https://user-images.githubusercontent.com/13243259/50445249-5543ce80-0933-11e9-9614-68650982d72d.png)\r\n\r\n\r\n## Related PRs\r\nList related PRs against other branches / repositories:\r\n\r\nbranch | PR\r\n------ | ------\r\nSFE-Client-App | [#13157](https://github.com/SymphonyOSF/SFE-Client-App/pull/13157)\r\nSFE-Packages | [#2239](https://github.com/SymphonyOSF/SFE-Packages/pull/2239)\r\n\r\n## QA Checklist\r\n- [X] Unit-Tests\r\n- [ ] Automation-Tests","created_at":"2018-12-26T11:57:44Z","updated_at":"2019-01-03T07:33:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"712eb99104c385b3320d3b7c6d55df890ea65288","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1172694462,"node_id":"MDU6TGFiZWwxMTcyNjk0NDYy","url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/labels/18.26","name":"18.26","color":"bc5f01","default":false},{"id":1015710647,"node_id":"MDU6TGFiZWwxMDE1NzEwNjQ3","url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/labels/:apple:%20%20MacOS","name":":apple:  MacOS","color":"d93f0b","default":false},{"id":450296769,"node_id":"MDU6TGFiZWw0NTAyOTY3Njk=","url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/labels/:bug:%20%20bug","name":":bug:  bug","color":"ee0701","default":false},{"id":939508765,"node_id":"MDU6TGFiZWw5Mzk1MDg3NjU=","url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/labels/cla-present","name":"cla-present","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/pulls/540/commits","review_comments_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/pulls/540/comments","review_comment_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/issues/540/comments","statuses_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/statuses/430bc42c9d6e417c72e80d61dcab1a5a9331004a","head":{"label":"KiranNiranjan:ELECTRON-978","ref":"ELECTRON-978","sha":"430bc42c9d6e417c72e80d61dcab1a5a9331004a","user":{"login":"KiranNiranjan","id":13243259,"node_id":"MDQ6VXNlcjEzMjQzMjU5","avatar_url":"https://avatars3.githubusercontent.com/u/13243259?v=4","gravatar_id":"","url":"https://api.github.com/users/KiranNiranjan","html_url":"https://github.com/KiranNiranjan","followers_url":"https://api.github.com/users/KiranNiranjan/followers","following_url":"https://api.github.com/users/KiranNiranjan/following{/other_user}","gists_url":"https://api.github.com/users/KiranNiranjan/gists{/gist_id}","starred_url":"https://api.github.com/users/KiranNiranjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiranNiranjan/subscriptions","organizations_url":"https://api.github.com/users/KiranNiranjan/orgs","repos_url":"https://api.github.com/users/KiranNiranjan/repos","events_url":"https://api.github.com/users/KiranNiranjan/events{/privacy}","received_events_url":"https://api.github.com/users/KiranNiranjan/received_events","type":"User","site_admin":false},"repo":{"id":89199750,"node_id":"MDEwOlJlcG9zaXRvcnk4OTE5OTc1MA==","name":"SymphonyElectron","full_name":"KiranNiranjan/SymphonyElectron","private":false,"owner":{"login":"KiranNiranjan","id":13243259,"node_id":"MDQ6VXNlcjEzMjQzMjU5","avatar_url":"https://avatars3.githubusercontent.com/u/13243259?v=4","gravatar_id":"","url":"https://api.github.com/users/KiranNiranjan","html_url":"https://github.com/KiranNiranjan","followers_url":"https://api.github.com/users/KiranNiranjan/followers","following_url":"https://api.github.com/users/KiranNiranjan/following{/other_user}","gists_url":"https://api.github.com/users/KiranNiranjan/gists{/gist_id}","starred_url":"https://api.github.com/users/KiranNiranjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KiranNiranjan/subscriptions","organizations_url":"https://api.github.com/users/KiranNiranjan/orgs","repos_url":"https://api.github.com/users/KiranNiranjan/repos","events_url":"https://api.github.com/users/KiranNiranjan/events{/privacy}","received_events_url":"https://api.github.com/users/KiranNiranjan/received_events","type":"User","site_admin":false},"html_url":"https://github.com/KiranNiranjan/SymphonyElectron","description":null,"fork":true,"url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron","forks_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/forks","keys_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/teams","hooks_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/hooks","issue_events_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/issues/events{/number}","events_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/events","assignees_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/assignees{/user}","branches_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/branches{/branch}","tags_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/tags","blobs_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/git/refs{/sha}","trees_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/statuses/{sha}","languages_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/languages","stargazers_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/stargazers","contributors_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/contributors","subscribers_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/subscribers","subscription_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/subscription","commits_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/commits{/sha}","git_commits_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/git/commits{/sha}","comments_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/comments{/number}","issue_comment_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/issues/comments{/number}","contents_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/contents/{+path}","compare_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/merges","archive_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/downloads","issues_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/issues{/number}","pulls_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/pulls{/number}","milestones_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/milestones{/number}","notifications_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/labels{/name}","releases_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/releases{/id}","deployments_url":"https://api.github.com/repos/KiranNiranjan/SymphonyElectron/deployments","created_at":"2017-04-24T05:04:55Z","updated_at":"2018-12-27T03:48:20Z","pushed_at":"2019-01-03T07:30:32Z","git_url":"git://github.com/KiranNiranjan/SymphonyElectron.git","ssh_url":"git@github.com:KiranNiranjan/SymphonyElectron.git","clone_url":"https://github.com/KiranNiranjan/SymphonyElectron.git","svn_url":"https://github.com/KiranNiranjan/SymphonyElectron","homepage":null,"size":31727,"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":"symphonyoss:master","ref":"master","sha":"a6df31cc006b85b3846beb9926f77e89bca7fd25","user":{"login":"symphonyoss","id":16778380,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Nzc4Mzgw","avatar_url":"https://avatars1.githubusercontent.com/u/16778380?v=4","gravatar_id":"","url":"https://api.github.com/users/symphonyoss","html_url":"https://github.com/symphonyoss","followers_url":"https://api.github.com/users/symphonyoss/followers","following_url":"https://api.github.com/users/symphonyoss/following{/other_user}","gists_url":"https://api.github.com/users/symphonyoss/gists{/gist_id}","starred_url":"https://api.github.com/users/symphonyoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symphonyoss/subscriptions","organizations_url":"https://api.github.com/users/symphonyoss/orgs","repos_url":"https://api.github.com/users/symphonyoss/repos","events_url":"https://api.github.com/users/symphonyoss/events{/privacy}","received_events_url":"https://api.github.com/users/symphonyoss/received_events","type":"Organization","site_admin":false},"repo":{"id":69311918,"node_id":"MDEwOlJlcG9zaXRvcnk2OTMxMTkxOA==","name":"SymphonyElectron","full_name":"symphonyoss/SymphonyElectron","private":false,"owner":{"login":"symphonyoss","id":16778380,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Nzc4Mzgw","avatar_url":"https://avatars1.githubusercontent.com/u/16778380?v=4","gravatar_id":"","url":"https://api.github.com/users/symphonyoss","html_url":"https://github.com/symphonyoss","followers_url":"https://api.github.com/users/symphonyoss/followers","following_url":"https://api.github.com/users/symphonyoss/following{/other_user}","gists_url":"https://api.github.com/users/symphonyoss/gists{/gist_id}","starred_url":"https://api.github.com/users/symphonyoss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symphonyoss/subscriptions","organizations_url":"https://api.github.com/users/symphonyoss/orgs","repos_url":"https://api.github.com/users/symphonyoss/repos","events_url":"https://api.github.com/users/symphonyoss/events{/privacy}","received_events_url":"https://api.github.com/users/symphonyoss/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/symphonyoss/SymphonyElectron","description":null,"fork":false,"url":"https://api.github.com/repos/symphonyoss/SymphonyElectron","forks_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/forks","keys_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/teams","hooks_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/hooks","issue_events_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/issues/events{/number}","events_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/events","assignees_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/assignees{/user}","branches_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/branches{/branch}","tags_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/tags","blobs_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/git/refs{/sha}","trees_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/statuses/{sha}","languages_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/languages","stargazers_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/stargazers","contributors_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/contributors","subscribers_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/subscribers","subscription_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/subscription","commits_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/commits{/sha}","git_commits_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/git/commits{/sha}","comments_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/comments{/number}","issue_comment_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/issues/comments{/number}","contents_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/contents/{+path}","compare_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/merges","archive_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/downloads","issues_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/issues{/number}","pulls_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/pulls{/number}","milestones_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/milestones{/number}","notifications_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/labels{/name}","releases_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/releases{/id}","deployments_url":"https://api.github.com/repos/symphonyoss/SymphonyElectron/deployments","created_at":"2016-09-27T02:33:08Z","updated_at":"2018-12-27T05:08:50Z","pushed_at":"2019-01-03T07:30:33Z","git_url":"git://github.com/symphonyoss/SymphonyElectron.git","ssh_url":"git@github.com:symphonyoss/SymphonyElectron.git","clone_url":"https://github.com/symphonyoss/SymphonyElectron.git","svn_url":"https://github.com/symphonyoss/SymphonyElectron","homepage":null,"size":31270,"stargazers_count":31,"watchers_count":31,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"archived":false,"open_issues_count":5,"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":36,"open_issues":5,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/symphonyoss/SymphonyElectron/pulls/540"},"html":{"href":"https://github.com/symphonyoss/SymphonyElectron/pull/540"},"issue":{"href":"https://api.github.com/repos/symphonyoss/SymphonyElectron/issues/540"},"comments":{"href":"https://api.github.com/repos/symphonyoss/SymphonyElectron/issues/540/comments"},"review_comments":{"href":"https://api.github.com/repos/symphonyoss/SymphonyElectron/pulls/540/comments"},"review_comment":{"href":"https://api.github.com/repos/symphonyoss/SymphonyElectron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symphonyoss/SymphonyElectron/pulls/540/commits"},"statuses":{"href":"https://api.github.com/repos/symphonyoss/SymphonyElectron/statuses/430bc42c9d6e417c72e80d61dcab1a5a9331004a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"KiranNiranjan"}}