{"action":"created","comment":{"url":"https://api.github.com/repos/process-engine/bpmn-studio/pulls/comments/202954122","pull_request_review_id":137745841,"id":202954122,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjk1NDEyMg==","diff_hunk":"@@ -115,8 +119,21 @@ export class ProcessSolutionPanel {\n    */\n   public async onSolutionInputChange(event: any): Promise<void> {\n     await this._solutionExplorerServiceFileSystem.openSolution(event.target.files[0].path, this._identity);\n-    const solution: ISolution = await this._solutionExplorerServiceFileSystem.loadSolution();\n-    this.openedFileSystemSolutions.push(solution);\n+    const newSolution: ISolution = await this._solutionExplorerServiceFileSystem.loadSolution();\n+\n+    let solutionIsAlreadyOpen: boolean = false;\n+    this.openedFileSystemSolutions.forEach((solution: ISolution) => {\n+      if (solution.uri === newSolution.uri) {\n+        solutionIsAlreadyOpen = true;\n+      }\n+    });\n+\n+    if (solutionIsAlreadyOpen) {\n+      this._notificationService.showNotification(NotificationType.INFO, 'Solution is already open');\n+      return;\n+    }\n+\n+    this.openedFileSystemSolutions.push(newSolution);\n     this.solutionInput.value = '';","path":"src/modules/process-solution-panel/process-solution-panel.ts","position":59,"original_position":59,"commit_id":"aee05325eec1f9e606b3427ef313f4fc9495abec","original_commit_id":"aee05325eec1f9e606b3427ef313f4fc9495abec","user":{"login":"SteffenKn","id":20394992,"node_id":"MDQ6VXNlcjIwMzk0OTky","avatar_url":"https://avatars2.githubusercontent.com/u/20394992?v=4","gravatar_id":"","url":"https://api.github.com/users/SteffenKn","html_url":"https://github.com/SteffenKn","followers_url":"https://api.github.com/users/SteffenKn/followers","following_url":"https://api.github.com/users/SteffenKn/following{/other_user}","gists_url":"https://api.github.com/users/SteffenKn/gists{/gist_id}","starred_url":"https://api.github.com/users/SteffenKn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteffenKn/subscriptions","organizations_url":"https://api.github.com/users/SteffenKn/orgs","repos_url":"https://api.github.com/users/SteffenKn/repos","events_url":"https://api.github.com/users/SteffenKn/events{/privacy}","received_events_url":"https://api.github.com/users/SteffenKn/received_events","type":"User","site_admin":false},"body":"When the solution is already open the solutionInput will not be resetted. So when adding a already added diagram more than one times the info message will NOT be shown.","created_at":"2018-07-17T09:31:01Z","updated_at":"2018-07-17T09:31:20Z","html_url":"https://github.com/process-engine/bpmn-studio/pull/548#discussion_r202954122","pull_request_url":"https://api.github.com/repos/process-engine/bpmn-studio/pulls/548","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/process-engine/bpmn-studio/pulls/comments/202954122"},"html":{"href":"https://github.com/process-engine/bpmn-studio/pull/548#discussion_r202954122"},"pull_request":{"href":"https://api.github.com/repos/process-engine/bpmn-studio/pulls/548"}}},"pull_request":{"url":"https://api.github.com/repos/process-engine/bpmn-studio/pulls/548","id":201238884,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxMjM4ODg0","html_url":"https://github.com/process-engine/bpmn-studio/pull/548","diff_url":"https://github.com/process-engine/bpmn-studio/pull/548.diff","patch_url":"https://github.com/process-engine/bpmn-studio/pull/548.patch","issue_url":"https://api.github.com/repos/process-engine/bpmn-studio/issues/548","number":548,"state":"open","locked":false,"title":"✨Check for already open solution","user":{"login":"Vyperus","id":17248802,"node_id":"MDQ6VXNlcjE3MjQ4ODAy","avatar_url":"https://avatars3.githubusercontent.com/u/17248802?v=4","gravatar_id":"","url":"https://api.github.com/users/Vyperus","html_url":"https://github.com/Vyperus","followers_url":"https://api.github.com/users/Vyperus/followers","following_url":"https://api.github.com/users/Vyperus/following{/other_user}","gists_url":"https://api.github.com/users/Vyperus/gists{/gist_id}","starred_url":"https://api.github.com/users/Vyperus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vyperus/subscriptions","organizations_url":"https://api.github.com/users/Vyperus/orgs","repos_url":"https://api.github.com/users/Vyperus/repos","events_url":"https://api.github.com/users/Vyperus/events{/privacy}","received_events_url":"https://api.github.com/users/Vyperus/received_events","type":"User","site_admin":false},"body":"## What did you change?\r\n\r\nThis branch:\r\n\r\n- Adds a check for double solutions and diagrams.\r\n- Shows a notification when the solution or diagram is already open.\r\n\r\nCloses #545\r\n\r\n## How can others test the changes?\r\n\r\nTry to open the same diagram or solution twice with the SolutionExplorer.\r\n\r\n## PR-Checklist\r\n\r\nPlease check the boxes in this list after submitting your PR:\r\n\r\n- [x] You can merge this PR **right now** (if not, please prefix the title with \"WIP: \")\r\n- [x] I've tested **all** changes included in this PR.\r\n- [x] I've also reviewed this PR myself before submitting (e.g. for scrambled letters, typos, etc.)\r\n- [x] I've merged the `develop` branch into my branch before finishing this PR.\r\n- [x] I've **not added any other changes** than the ones described above.\r\n- [x] I've mentioned all **PRs, which relate to this one**\r\n","created_at":"2018-07-13T09:41:55Z","updated_at":"2018-07-17T09:31:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a4147f2a74a5e38cae3e6c1f2fe695080b91227","assignee":{"login":"Vyperus","id":17248802,"node_id":"MDQ6VXNlcjE3MjQ4ODAy","avatar_url":"https://avatars3.githubusercontent.com/u/17248802?v=4","gravatar_id":"","url":"https://api.github.com/users/Vyperus","html_url":"https://github.com/Vyperus","followers_url":"https://api.github.com/users/Vyperus/followers","following_url":"https://api.github.com/users/Vyperus/following{/other_user}","gists_url":"https://api.github.com/users/Vyperus/gists{/gist_id}","starred_url":"https://api.github.com/users/Vyperus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vyperus/subscriptions","organizations_url":"https://api.github.com/users/Vyperus/orgs","repos_url":"https://api.github.com/users/Vyperus/repos","events_url":"https://api.github.com/users/Vyperus/events{/privacy}","received_events_url":"https://api.github.com/users/Vyperus/received_events","type":"User","site_admin":false},"assignees":[{"login":"Vyperus","id":17248802,"node_id":"MDQ6VXNlcjE3MjQ4ODAy","avatar_url":"https://avatars3.githubusercontent.com/u/17248802?v=4","gravatar_id":"","url":"https://api.github.com/users/Vyperus","html_url":"https://github.com/Vyperus","followers_url":"https://api.github.com/users/Vyperus/followers","following_url":"https://api.github.com/users/Vyperus/following{/other_user}","gists_url":"https://api.github.com/users/Vyperus/gists{/gist_id}","starred_url":"https://api.github.com/users/Vyperus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vyperus/subscriptions","organizations_url":"https://api.github.com/users/Vyperus/orgs","repos_url":"https://api.github.com/users/Vyperus/repos","events_url":"https://api.github.com/users/Vyperus/events{/privacy}","received_events_url":"https://api.github.com/users/Vyperus/received_events","type":"User","site_admin":false},{"login":"SteffenKn","id":20394992,"node_id":"MDQ6VXNlcjIwMzk0OTky","avatar_url":"https://avatars2.githubusercontent.com/u/20394992?v=4","gravatar_id":"","url":"https://api.github.com/users/SteffenKn","html_url":"https://github.com/SteffenKn","followers_url":"https://api.github.com/users/SteffenKn/followers","following_url":"https://api.github.com/users/SteffenKn/following{/other_user}","gists_url":"https://api.github.com/users/SteffenKn/gists{/gist_id}","starred_url":"https://api.github.com/users/SteffenKn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteffenKn/subscriptions","organizations_url":"https://api.github.com/users/SteffenKn/orgs","repos_url":"https://api.github.com/users/SteffenKn/repos","events_url":"https://api.github.com/users/SteffenKn/events{/privacy}","received_events_url":"https://api.github.com/users/SteffenKn/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/process-engine/bpmn-studio/pulls/548/commits","review_comments_url":"https://api.github.com/repos/process-engine/bpmn-studio/pulls/548/comments","review_comment_url":"https://api.github.com/repos/process-engine/bpmn-studio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/process-engine/bpmn-studio/issues/548/comments","statuses_url":"https://api.github.com/repos/process-engine/bpmn-studio/statuses/aee05325eec1f9e606b3427ef313f4fc9495abec","head":{"label":"process-engine:feature/double_folder","ref":"feature/double_folder","sha":"aee05325eec1f9e606b3427ef313f4fc9495abec","user":{"login":"process-engine","id":32196207,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMTk2MjA3","avatar_url":"https://avatars2.githubusercontent.com/u/32196207?v=4","gravatar_id":"","url":"https://api.github.com/users/process-engine","html_url":"https://github.com/process-engine","followers_url":"https://api.github.com/users/process-engine/followers","following_url":"https://api.github.com/users/process-engine/following{/other_user}","gists_url":"https://api.github.com/users/process-engine/gists{/gist_id}","starred_url":"https://api.github.com/users/process-engine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/process-engine/subscriptions","organizations_url":"https://api.github.com/users/process-engine/orgs","repos_url":"https://api.github.com/users/process-engine/repos","events_url":"https://api.github.com/users/process-engine/events{/privacy}","received_events_url":"https://api.github.com/users/process-engine/received_events","type":"Organization","site_admin":false},"repo":{"id":106867605,"node_id":"MDEwOlJlcG9zaXRvcnkxMDY4Njc2MDU=","name":"bpmn-studio","full_name":"process-engine/bpmn-studio","owner":{"login":"process-engine","id":32196207,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMTk2MjA3","avatar_url":"https://avatars2.githubusercontent.com/u/32196207?v=4","gravatar_id":"","url":"https://api.github.com/users/process-engine","html_url":"https://github.com/process-engine","followers_url":"https://api.github.com/users/process-engine/followers","following_url":"https://api.github.com/users/process-engine/following{/other_user}","gists_url":"https://api.github.com/users/process-engine/gists{/gist_id}","starred_url":"https://api.github.com/users/process-engine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/process-engine/subscriptions","organizations_url":"https://api.github.com/users/process-engine/orgs","repos_url":"https://api.github.com/users/process-engine/repos","events_url":"https://api.github.com/users/process-engine/events{/privacy}","received_events_url":"https://api.github.com/users/process-engine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/process-engine/bpmn-studio","description":"The Front-End for Designing Runnable BPMN-Diagrams","fork":false,"url":"https://api.github.com/repos/process-engine/bpmn-studio","forks_url":"https://api.github.com/repos/process-engine/bpmn-studio/forks","keys_url":"https://api.github.com/repos/process-engine/bpmn-studio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/process-engine/bpmn-studio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/process-engine/bpmn-studio/teams","hooks_url":"https://api.github.com/repos/process-engine/bpmn-studio/hooks","issue_events_url":"https://api.github.com/repos/process-engine/bpmn-studio/issues/events{/number}","events_url":"https://api.github.com/repos/process-engine/bpmn-studio/events","assignees_url":"https://api.github.com/repos/process-engine/bpmn-studio/assignees{/user}","branches_url":"https://api.github.com/repos/process-engine/bpmn-studio/branches{/branch}","tags_url":"https://api.github.com/repos/process-engine/bpmn-studio/tags","blobs_url":"https://api.github.com/repos/process-engine/bpmn-studio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/process-engine/bpmn-studio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/process-engine/bpmn-studio/git/refs{/sha}","trees_url":"https://api.github.com/repos/process-engine/bpmn-studio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/process-engine/bpmn-studio/statuses/{sha}","languages_url":"https://api.github.com/repos/process-engine/bpmn-studio/languages","stargazers_url":"https://api.github.com/repos/process-engine/bpmn-studio/stargazers","contributors_url":"https://api.github.com/repos/process-engine/bpmn-studio/contributors","subscribers_url":"https://api.github.com/repos/process-engine/bpmn-studio/subscribers","subscription_url":"https://api.github.com/repos/process-engine/bpmn-studio/subscription","commits_url":"https://api.github.com/repos/process-engine/bpmn-studio/commits{/sha}","git_commits_url":"https://api.github.com/repos/process-engine/bpmn-studio/git/commits{/sha}","comments_url":"https://api.github.com/repos/process-engine/bpmn-studio/comments{/number}","issue_comment_url":"https://api.github.com/repos/process-engine/bpmn-studio/issues/comments{/number}","contents_url":"https://api.github.com/repos/process-engine/bpmn-studio/contents/{+path}","compare_url":"https://api.github.com/repos/process-engine/bpmn-studio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/process-engine/bpmn-studio/merges","archive_url":"https://api.github.com/repos/process-engine/bpmn-studio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/process-engine/bpmn-studio/downloads","issues_url":"https://api.github.com/repos/process-engine/bpmn-studio/issues{/number}","pulls_url":"https://api.github.com/repos/process-engine/bpmn-studio/pulls{/number}","milestones_url":"https://api.github.com/repos/process-engine/bpmn-studio/milestones{/number}","notifications_url":"https://api.github.com/repos/process-engine/bpmn-studio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/process-engine/bpmn-studio/labels{/name}","releases_url":"https://api.github.com/repos/process-engine/bpmn-studio/releases{/id}","deployments_url":"https://api.github.com/repos/process-engine/bpmn-studio/deployments","created_at":"2017-10-13T19:54:48Z","updated_at":"2018-07-17T09:08:59Z","pushed_at":"2018-07-17T09:27:32Z","git_url":"git://github.com/process-engine/bpmn-studio.git","ssh_url":"git@github.com:process-engine/bpmn-studio.git","clone_url":"https://github.com/process-engine/bpmn-studio.git","svn_url":"https://github.com/process-engine/bpmn-studio","homepage":"","size":3726,"stargazers_count":10,"watchers_count":10,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":112,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":112,"watchers":10,"default_branch":"develop"}},"base":{"label":"process-engine:develop","ref":"develop","sha":"665ca12c76e8ecf30afc1f656c154bba18967473","user":{"login":"process-engine","id":32196207,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMTk2MjA3","avatar_url":"https://avatars2.githubusercontent.com/u/32196207?v=4","gravatar_id":"","url":"https://api.github.com/users/process-engine","html_url":"https://github.com/process-engine","followers_url":"https://api.github.com/users/process-engine/followers","following_url":"https://api.github.com/users/process-engine/following{/other_user}","gists_url":"https://api.github.com/users/process-engine/gists{/gist_id}","starred_url":"https://api.github.com/users/process-engine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/process-engine/subscriptions","organizations_url":"https://api.github.com/users/process-engine/orgs","repos_url":"https://api.github.com/users/process-engine/repos","events_url":"https://api.github.com/users/process-engine/events{/privacy}","received_events_url":"https://api.github.com/users/process-engine/received_events","type":"Organization","site_admin":false},"repo":{"id":106867605,"node_id":"MDEwOlJlcG9zaXRvcnkxMDY4Njc2MDU=","name":"bpmn-studio","full_name":"process-engine/bpmn-studio","owner":{"login":"process-engine","id":32196207,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMTk2MjA3","avatar_url":"https://avatars2.githubusercontent.com/u/32196207?v=4","gravatar_id":"","url":"https://api.github.com/users/process-engine","html_url":"https://github.com/process-engine","followers_url":"https://api.github.com/users/process-engine/followers","following_url":"https://api.github.com/users/process-engine/following{/other_user}","gists_url":"https://api.github.com/users/process-engine/gists{/gist_id}","starred_url":"https://api.github.com/users/process-engine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/process-engine/subscriptions","organizations_url":"https://api.github.com/users/process-engine/orgs","repos_url":"https://api.github.com/users/process-engine/repos","events_url":"https://api.github.com/users/process-engine/events{/privacy}","received_events_url":"https://api.github.com/users/process-engine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/process-engine/bpmn-studio","description":"The Front-End for Designing Runnable BPMN-Diagrams","fork":false,"url":"https://api.github.com/repos/process-engine/bpmn-studio","forks_url":"https://api.github.com/repos/process-engine/bpmn-studio/forks","keys_url":"https://api.github.com/repos/process-engine/bpmn-studio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/process-engine/bpmn-studio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/process-engine/bpmn-studio/teams","hooks_url":"https://api.github.com/repos/process-engine/bpmn-studio/hooks","issue_events_url":"https://api.github.com/repos/process-engine/bpmn-studio/issues/events{/number}","events_url":"https://api.github.com/repos/process-engine/bpmn-studio/events","assignees_url":"https://api.github.com/repos/process-engine/bpmn-studio/assignees{/user}","branches_url":"https://api.github.com/repos/process-engine/bpmn-studio/branches{/branch}","tags_url":"https://api.github.com/repos/process-engine/bpmn-studio/tags","blobs_url":"https://api.github.com/repos/process-engine/bpmn-studio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/process-engine/bpmn-studio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/process-engine/bpmn-studio/git/refs{/sha}","trees_url":"https://api.github.com/repos/process-engine/bpmn-studio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/process-engine/bpmn-studio/statuses/{sha}","languages_url":"https://api.github.com/repos/process-engine/bpmn-studio/languages","stargazers_url":"https://api.github.com/repos/process-engine/bpmn-studio/stargazers","contributors_url":"https://api.github.com/repos/process-engine/bpmn-studio/contributors","subscribers_url":"https://api.github.com/repos/process-engine/bpmn-studio/subscribers","subscription_url":"https://api.github.com/repos/process-engine/bpmn-studio/subscription","commits_url":"https://api.github.com/repos/process-engine/bpmn-studio/commits{/sha}","git_commits_url":"https://api.github.com/repos/process-engine/bpmn-studio/git/commits{/sha}","comments_url":"https://api.github.com/repos/process-engine/bpmn-studio/comments{/number}","issue_comment_url":"https://api.github.com/repos/process-engine/bpmn-studio/issues/comments{/number}","contents_url":"https://api.github.com/repos/process-engine/bpmn-studio/contents/{+path}","compare_url":"https://api.github.com/repos/process-engine/bpmn-studio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/process-engine/bpmn-studio/merges","archive_url":"https://api.github.com/repos/process-engine/bpmn-studio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/process-engine/bpmn-studio/downloads","issues_url":"https://api.github.com/repos/process-engine/bpmn-studio/issues{/number}","pulls_url":"https://api.github.com/repos/process-engine/bpmn-studio/pulls{/number}","milestones_url":"https://api.github.com/repos/process-engine/bpmn-studio/milestones{/number}","notifications_url":"https://api.github.com/repos/process-engine/bpmn-studio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/process-engine/bpmn-studio/labels{/name}","releases_url":"https://api.github.com/repos/process-engine/bpmn-studio/releases{/id}","deployments_url":"https://api.github.com/repos/process-engine/bpmn-studio/deployments","created_at":"2017-10-13T19:54:48Z","updated_at":"2018-07-17T09:08:59Z","pushed_at":"2018-07-17T09:27:32Z","git_url":"git://github.com/process-engine/bpmn-studio.git","ssh_url":"git@github.com:process-engine/bpmn-studio.git","clone_url":"https://github.com/process-engine/bpmn-studio.git","svn_url":"https://github.com/process-engine/bpmn-studio","homepage":"","size":3726,"stargazers_count":10,"watchers_count":10,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":112,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":112,"watchers":10,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/process-engine/bpmn-studio/pulls/548"},"html":{"href":"https://github.com/process-engine/bpmn-studio/pull/548"},"issue":{"href":"https://api.github.com/repos/process-engine/bpmn-studio/issues/548"},"comments":{"href":"https://api.github.com/repos/process-engine/bpmn-studio/issues/548/comments"},"review_comments":{"href":"https://api.github.com/repos/process-engine/bpmn-studio/pulls/548/comments"},"review_comment":{"href":"https://api.github.com/repos/process-engine/bpmn-studio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/process-engine/bpmn-studio/pulls/548/commits"},"statuses":{"href":"https://api.github.com/repos/process-engine/bpmn-studio/statuses/aee05325eec1f9e606b3427ef313f4fc9495abec"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"SteffenKn"}}