{"action":"created","comment":{"url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments/36504109","id":36504109,"diff_hunk":"@@ -65,28 +66,44 @@ public void clearMarkedReadAt(String repoId, int issue) {\n         }\n     }\n \n-    public void addBoard(String name, List<String> filterExprs) {\n-        boards.put(name, filterExprs);\n+    public void addBoard(String name, List<PanelInfo> panels) {\n+        savedBoards.put(name, panels);\n     }\n \n-    public List<String> getBoardPanels(String name) {\n-        return boards.get(name);\n+    public List<PanelInfo> getBoardPanels(String name) {\n+        return savedBoards.get(name);\n     }\n \n-    public Map<String, List<String>> getAllBoards() {\n-        return new HashMap<>(boards);\n+    public Map<String, List<PanelInfo>> getAllBoards() {\n+        return new HashMap<>(savedBoards);\n     }\n \n     public void removeBoard(String name) {\n-        boards.remove(name);\n-    }\n-\n-    public void setLastOpenFilters(List<String> filter) {\n-        lastOpenFilters = new ArrayList<>(filter);\n+        savedBoards.remove(name);\n     }\n \n     public List<String> getLastOpenFilters() {\n-        return new ArrayList<>(lastOpenFilters);\n+        List<String> lastOpenFilters = new ArrayList<>();\n+        for (int i = 0; i < openPanels.size(); i++) {\n+            lastOpenFilters.add(openPanels.get(i).getPanelFilter());\n+        }\n+        return lastOpenFilters;\n+    }\n+    \n+    public List<String> getPanelNames() {\n+        List<String> openPanelNames = new ArrayList<>();\n+        for (int i = 0; i < openPanels.size(); i++) {\n+            openPanelNames.add(openPanels.get(i).getPanelName());\n+        }\n+        return openPanelNames;\n+    }","path":"src/main/java/prefs/GlobalConfig.java","position":68,"original_position":68,"commit_id":"9da04691396981acb49bdb4e83f2ac03fb5148b2","original_commit_id":"9da04691396981acb49bdb4e83f2ac03fb5148b2","user":{"login":"lejolly","id":1589121,"avatar_url":"https://avatars.githubusercontent.com/u/1589121?v=3","gravatar_id":"","url":"https://api.github.com/users/lejolly","html_url":"https://github.com/lejolly","followers_url":"https://api.github.com/users/lejolly/followers","following_url":"https://api.github.com/users/lejolly/following{/other_user}","gists_url":"https://api.github.com/users/lejolly/gists{/gist_id}","starred_url":"https://api.github.com/users/lejolly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lejolly/subscriptions","organizations_url":"https://api.github.com/users/lejolly/orgs","repos_url":"https://api.github.com/users/lejolly/repos","events_url":"https://api.github.com/users/lejolly/events{/privacy}","received_events_url":"https://api.github.com/users/lejolly/received_events","type":"User","site_admin":false},"body":"it allows you to do this:\r\n\r\n```java\r\npublic List<String> getPanelNames() {\r\n    return openPanels.stream()\r\n        .map(PanelInfo::getPanelName)\r\n        .collect(Collectors.toList());\r\n}\r\n```","created_at":"2015-08-07T09:31:49Z","updated_at":"2015-08-07T09:31:49Z","html_url":"https://github.com/HubTurbo/HubTurbo/pull/807#discussion_r36504109","pull_request_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/807","_links":{"self":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments/36504109"},"html":{"href":"https://github.com/HubTurbo/HubTurbo/pull/807#discussion_r36504109"},"pull_request":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/807"}}},"pull_request":{"url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/807","id":40585731,"html_url":"https://github.com/HubTurbo/HubTurbo/pull/807","diff_url":"https://github.com/HubTurbo/HubTurbo/pull/807.diff","patch_url":"https://github.com/HubTurbo/HubTurbo/pull/807.patch","issue_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/807","number":807,"state":"open","locked":false,"title":"User can name a panel #782","user":{"login":"HyungJon","id":8623463,"avatar_url":"https://avatars.githubusercontent.com/u/8623463?v=3","gravatar_id":"","url":"https://api.github.com/users/HyungJon","html_url":"https://github.com/HyungJon","followers_url":"https://api.github.com/users/HyungJon/followers","following_url":"https://api.github.com/users/HyungJon/following{/other_user}","gists_url":"https://api.github.com/users/HyungJon/gists{/gist_id}","starred_url":"https://api.github.com/users/HyungJon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyungJon/subscriptions","organizations_url":"https://api.github.com/users/HyungJon/orgs","repos_url":"https://api.github.com/users/HyungJon/repos","events_url":"https://api.github.com/users/HyungJon/events{/privacy}","received_events_url":"https://api.github.com/users/HyungJon/received_events","type":"User","site_admin":false},"body":"Fixes #782\r\n\r\nNote: running HubTurbo with this PR merged will delete all saved filters because the save function works differently now.\r\n\r\nThere are currently clashes with the way boards are saved, resulting in panel names being reset when opening a new board. I will fix it in a fresh issue.","created_at":"2015-07-22T16:43:11Z","updated_at":"2015-08-07T09:31:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ec1af551676da35102c46b555ebdf8d491c1911","assignee":{"login":"lejolly","id":1589121,"avatar_url":"https://avatars.githubusercontent.com/u/1589121?v=3","gravatar_id":"","url":"https://api.github.com/users/lejolly","html_url":"https://github.com/lejolly","followers_url":"https://api.github.com/users/lejolly/followers","following_url":"https://api.github.com/users/lejolly/following{/other_user}","gists_url":"https://api.github.com/users/lejolly/gists{/gist_id}","starred_url":"https://api.github.com/users/lejolly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lejolly/subscriptions","organizations_url":"https://api.github.com/users/lejolly/orgs","repos_url":"https://api.github.com/users/lejolly/repos","events_url":"https://api.github.com/users/lejolly/events{/privacy}","received_events_url":"https://api.github.com/users/lejolly/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/807/commits","review_comments_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/807/comments","review_comment_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/807/comments","statuses_url":"https://api.github.com/repos/HubTurbo/HubTurbo/statuses/9da04691396981acb49bdb4e83f2ac03fb5148b2","head":{"label":"HyungJon:Issue782","ref":"Issue782","sha":"9da04691396981acb49bdb4e83f2ac03fb5148b2","user":{"login":"HyungJon","id":8623463,"avatar_url":"https://avatars.githubusercontent.com/u/8623463?v=3","gravatar_id":"","url":"https://api.github.com/users/HyungJon","html_url":"https://github.com/HyungJon","followers_url":"https://api.github.com/users/HyungJon/followers","following_url":"https://api.github.com/users/HyungJon/following{/other_user}","gists_url":"https://api.github.com/users/HyungJon/gists{/gist_id}","starred_url":"https://api.github.com/users/HyungJon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyungJon/subscriptions","organizations_url":"https://api.github.com/users/HyungJon/orgs","repos_url":"https://api.github.com/users/HyungJon/repos","events_url":"https://api.github.com/users/HyungJon/events{/privacy}","received_events_url":"https://api.github.com/users/HyungJon/received_events","type":"User","site_admin":false},"repo":{"id":37414990,"name":"HubTurbo","full_name":"HyungJon/HubTurbo","owner":{"login":"HyungJon","id":8623463,"avatar_url":"https://avatars.githubusercontent.com/u/8623463?v=3","gravatar_id":"","url":"https://api.github.com/users/HyungJon","html_url":"https://github.com/HyungJon","followers_url":"https://api.github.com/users/HyungJon/followers","following_url":"https://api.github.com/users/HyungJon/following{/other_user}","gists_url":"https://api.github.com/users/HyungJon/gists{/gist_id}","starred_url":"https://api.github.com/users/HyungJon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyungJon/subscriptions","organizations_url":"https://api.github.com/users/HyungJon/orgs","repos_url":"https://api.github.com/users/HyungJon/repos","events_url":"https://api.github.com/users/HyungJon/events{/privacy}","received_events_url":"https://api.github.com/users/HyungJon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HyungJon/HubTurbo","description":"A companion to GitHub for your desktop","fork":true,"url":"https://api.github.com/repos/HyungJon/HubTurbo","forks_url":"https://api.github.com/repos/HyungJon/HubTurbo/forks","keys_url":"https://api.github.com/repos/HyungJon/HubTurbo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HyungJon/HubTurbo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HyungJon/HubTurbo/teams","hooks_url":"https://api.github.com/repos/HyungJon/HubTurbo/hooks","issue_events_url":"https://api.github.com/repos/HyungJon/HubTurbo/issues/events{/number}","events_url":"https://api.github.com/repos/HyungJon/HubTurbo/events","assignees_url":"https://api.github.com/repos/HyungJon/HubTurbo/assignees{/user}","branches_url":"https://api.github.com/repos/HyungJon/HubTurbo/branches{/branch}","tags_url":"https://api.github.com/repos/HyungJon/HubTurbo/tags","blobs_url":"https://api.github.com/repos/HyungJon/HubTurbo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HyungJon/HubTurbo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HyungJon/HubTurbo/git/refs{/sha}","trees_url":"https://api.github.com/repos/HyungJon/HubTurbo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HyungJon/HubTurbo/statuses/{sha}","languages_url":"https://api.github.com/repos/HyungJon/HubTurbo/languages","stargazers_url":"https://api.github.com/repos/HyungJon/HubTurbo/stargazers","contributors_url":"https://api.github.com/repos/HyungJon/HubTurbo/contributors","subscribers_url":"https://api.github.com/repos/HyungJon/HubTurbo/subscribers","subscription_url":"https://api.github.com/repos/HyungJon/HubTurbo/subscription","commits_url":"https://api.github.com/repos/HyungJon/HubTurbo/commits{/sha}","git_commits_url":"https://api.github.com/repos/HyungJon/HubTurbo/git/commits{/sha}","comments_url":"https://api.github.com/repos/HyungJon/HubTurbo/comments{/number}","issue_comment_url":"https://api.github.com/repos/HyungJon/HubTurbo/issues/comments{/number}","contents_url":"https://api.github.com/repos/HyungJon/HubTurbo/contents/{+path}","compare_url":"https://api.github.com/repos/HyungJon/HubTurbo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HyungJon/HubTurbo/merges","archive_url":"https://api.github.com/repos/HyungJon/HubTurbo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HyungJon/HubTurbo/downloads","issues_url":"https://api.github.com/repos/HyungJon/HubTurbo/issues{/number}","pulls_url":"https://api.github.com/repos/HyungJon/HubTurbo/pulls{/number}","milestones_url":"https://api.github.com/repos/HyungJon/HubTurbo/milestones{/number}","notifications_url":"https://api.github.com/repos/HyungJon/HubTurbo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HyungJon/HubTurbo/labels{/name}","releases_url":"https://api.github.com/repos/HyungJon/HubTurbo/releases{/id}","created_at":"2015-06-14T14:15:52Z","updated_at":"2015-06-14T14:15:54Z","pushed_at":"2015-08-06T12:06:07Z","git_url":"git://github.com/HyungJon/HubTurbo.git","ssh_url":"git@github.com:HyungJon/HubTurbo.git","clone_url":"https://github.com/HyungJon/HubTurbo.git","svn_url":"https://github.com/HyungJon/HubTurbo","homepage":"http://hubturbo.info","size":116177,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"HubTurbo:master","ref":"master","sha":"91f2b81125969464321d704f1f8b589b5e7df013","user":{"login":"HubTurbo","id":7955871,"avatar_url":"https://avatars.githubusercontent.com/u/7955871?v=3","gravatar_id":"","url":"https://api.github.com/users/HubTurbo","html_url":"https://github.com/HubTurbo","followers_url":"https://api.github.com/users/HubTurbo/followers","following_url":"https://api.github.com/users/HubTurbo/following{/other_user}","gists_url":"https://api.github.com/users/HubTurbo/gists{/gist_id}","starred_url":"https://api.github.com/users/HubTurbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubTurbo/subscriptions","organizations_url":"https://api.github.com/users/HubTurbo/orgs","repos_url":"https://api.github.com/users/HubTurbo/repos","events_url":"https://api.github.com/users/HubTurbo/events{/privacy}","received_events_url":"https://api.github.com/users/HubTurbo/received_events","type":"Organization","site_admin":false},"repo":{"id":20919534,"name":"HubTurbo","full_name":"HubTurbo/HubTurbo","owner":{"login":"HubTurbo","id":7955871,"avatar_url":"https://avatars.githubusercontent.com/u/7955871?v=3","gravatar_id":"","url":"https://api.github.com/users/HubTurbo","html_url":"https://github.com/HubTurbo","followers_url":"https://api.github.com/users/HubTurbo/followers","following_url":"https://api.github.com/users/HubTurbo/following{/other_user}","gists_url":"https://api.github.com/users/HubTurbo/gists{/gist_id}","starred_url":"https://api.github.com/users/HubTurbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubTurbo/subscriptions","organizations_url":"https://api.github.com/users/HubTurbo/orgs","repos_url":"https://api.github.com/users/HubTurbo/repos","events_url":"https://api.github.com/users/HubTurbo/events{/privacy}","received_events_url":"https://api.github.com/users/HubTurbo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HubTurbo/HubTurbo","description":"A companion to GitHub for your desktop","fork":false,"url":"https://api.github.com/repos/HubTurbo/HubTurbo","forks_url":"https://api.github.com/repos/HubTurbo/HubTurbo/forks","keys_url":"https://api.github.com/repos/HubTurbo/HubTurbo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HubTurbo/HubTurbo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HubTurbo/HubTurbo/teams","hooks_url":"https://api.github.com/repos/HubTurbo/HubTurbo/hooks","issue_events_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/events{/number}","events_url":"https://api.github.com/repos/HubTurbo/HubTurbo/events","assignees_url":"https://api.github.com/repos/HubTurbo/HubTurbo/assignees{/user}","branches_url":"https://api.github.com/repos/HubTurbo/HubTurbo/branches{/branch}","tags_url":"https://api.github.com/repos/HubTurbo/HubTurbo/tags","blobs_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/refs{/sha}","trees_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HubTurbo/HubTurbo/statuses/{sha}","languages_url":"https://api.github.com/repos/HubTurbo/HubTurbo/languages","stargazers_url":"https://api.github.com/repos/HubTurbo/HubTurbo/stargazers","contributors_url":"https://api.github.com/repos/HubTurbo/HubTurbo/contributors","subscribers_url":"https://api.github.com/repos/HubTurbo/HubTurbo/subscribers","subscription_url":"https://api.github.com/repos/HubTurbo/HubTurbo/subscription","commits_url":"https://api.github.com/repos/HubTurbo/HubTurbo/commits{/sha}","git_commits_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/commits{/sha}","comments_url":"https://api.github.com/repos/HubTurbo/HubTurbo/comments{/number}","issue_comment_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/comments{/number}","contents_url":"https://api.github.com/repos/HubTurbo/HubTurbo/contents/{+path}","compare_url":"https://api.github.com/repos/HubTurbo/HubTurbo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HubTurbo/HubTurbo/merges","archive_url":"https://api.github.com/repos/HubTurbo/HubTurbo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HubTurbo/HubTurbo/downloads","issues_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues{/number}","pulls_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls{/number}","milestones_url":"https://api.github.com/repos/HubTurbo/HubTurbo/milestones{/number}","notifications_url":"https://api.github.com/repos/HubTurbo/HubTurbo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HubTurbo/HubTurbo/labels{/name}","releases_url":"https://api.github.com/repos/HubTurbo/HubTurbo/releases{/id}","created_at":"2014-06-17T10:35:39Z","updated_at":"2015-07-21T04:41:30Z","pushed_at":"2015-08-07T05:56:22Z","git_url":"git://github.com/HubTurbo/HubTurbo.git","ssh_url":"git@github.com:HubTurbo/HubTurbo.git","clone_url":"https://github.com/HubTurbo/HubTurbo.git","svn_url":"https://github.com/HubTurbo/HubTurbo","homepage":"http://hubturbo.info","size":127492,"stargazers_count":8,"watchers_count":8,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":86,"forks":9,"open_issues":86,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/807"},"html":{"href":"https://github.com/HubTurbo/HubTurbo/pull/807"},"issue":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/807"},"comments":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/807/comments"},"review_comments":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/807/comments"},"review_comment":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/807/commits"},"statuses":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/statuses/9da04691396981acb49bdb4e83f2ac03fb5148b2"}}}}