{"action":"created","comment":{"url":"https://api.github.com/repos/forge/core/pulls/comments/158034206","pull_request_review_id":84775623,"id":158034206,"diff_hunk":"@@ -0,0 +1,60 @@\n+/*\n+ * Copyright 2017 Red Hat, Inc. and/or its affiliates.\n+ *\n+ * Licensed under the Eclipse Public License version 1.0, available at\n+ * http://www.eclipse.org/legal/epl-v10.html\n+ */\n+\n+package org.jboss.forge.addon.ui.impl.controller;\n+\n+import java.util.Map;\n+import java.util.concurrent.ConcurrentHashMap;\n+\n+import org.jboss.forge.addon.ui.controller.CommandController;\n+\n+/**\n+ *\n+ * @author <a href=\"mailto:ggastald@redhat.com\">George Gastaldi</a>\n+ */\n+public class CacheCommandControllerDecorator extends AbstractCommandControllerDecorator\n+{\n+   private final Map<String, Boolean> state = new ConcurrentHashMap<>(4);\n+\n+   public CacheCommandControllerDecorator(CommandController controller)","path":"ui/impl/src/main/java/org/jboss/forge/addon/ui/impl/controller/CacheCommandControllerDecorator.java","position":23,"original_position":23,"commit_id":"95a3782d37dea6f093ff3f528f70eba8eec4ec34","original_commit_id":"95a3782d37dea6f093ff3f528f70eba8eec4ec34","user":{"login":"lincolnthree","id":362329,"avatar_url":"https://avatars0.githubusercontent.com/u/362329?v=4","gravatar_id":"","url":"https://api.github.com/users/lincolnthree","html_url":"https://github.com/lincolnthree","followers_url":"https://api.github.com/users/lincolnthree/followers","following_url":"https://api.github.com/users/lincolnthree/following{/other_user}","gists_url":"https://api.github.com/users/lincolnthree/gists{/gist_id}","starred_url":"https://api.github.com/users/lincolnthree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lincolnthree/subscriptions","organizations_url":"https://api.github.com/users/lincolnthree/orgs","repos_url":"https://api.github.com/users/lincolnthree/repos","events_url":"https://api.github.com/users/lincolnthree/events{/privacy}","received_events_url":"https://api.github.com/users/lincolnthree/received_events","type":"User","site_admin":false},"body":"Looks like this caches the states for commands being enabled/disabled to prevent re-computing the necessary facets/other determinants during command discovery?","created_at":"2017-12-20T14:18:25Z","updated_at":"2017-12-20T14:18:26Z","html_url":"https://github.com/forge/core/pull/618#discussion_r158034206","pull_request_url":"https://api.github.com/repos/forge/core/pulls/618","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/forge/core/pulls/comments/158034206"},"html":{"href":"https://github.com/forge/core/pull/618#discussion_r158034206"},"pull_request":{"href":"https://api.github.com/repos/forge/core/pulls/618"}},"in_reply_to_id":158033943},"pull_request":{"url":"https://api.github.com/repos/forge/core/pulls/618","id":158509941,"html_url":"https://github.com/forge/core/pull/618","diff_url":"https://github.com/forge/core/pull/618.diff","patch_url":"https://github.com/forge/core/pull/618.patch","issue_url":"https://api.github.com/repos/forge/core/issues/618","number":618,"state":"open","locked":false,"title":"FORGE-2774: Introduced CacheCommandControllerDecorator + tests","user":{"login":"gastaldi","id":54133,"avatar_url":"https://avatars1.githubusercontent.com/u/54133?v=4","gravatar_id":"","url":"https://api.github.com/users/gastaldi","html_url":"https://github.com/gastaldi","followers_url":"https://api.github.com/users/gastaldi/followers","following_url":"https://api.github.com/users/gastaldi/following{/other_user}","gists_url":"https://api.github.com/users/gastaldi/gists{/gist_id}","starred_url":"https://api.github.com/users/gastaldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gastaldi/subscriptions","organizations_url":"https://api.github.com/users/gastaldi/orgs","repos_url":"https://api.github.com/users/gastaldi/repos","events_url":"https://api.github.com/users/gastaldi/events{/privacy}","received_events_url":"https://api.github.com/users/gastaldi/received_events","type":"User","site_admin":false},"body":null,"created_at":"2017-12-15T02:25:15Z","updated_at":"2017-12-20T14:18:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72c4d732e5ae5cc6d4c489af044ff23a76ec583d","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/forge/core/pulls/618/commits","review_comments_url":"https://api.github.com/repos/forge/core/pulls/618/comments","review_comment_url":"https://api.github.com/repos/forge/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/forge/core/issues/618/comments","statuses_url":"https://api.github.com/repos/forge/core/statuses/95a3782d37dea6f093ff3f528f70eba8eec4ec34","head":{"label":"gastaldi:FORGE-2774","ref":"FORGE-2774","sha":"95a3782d37dea6f093ff3f528f70eba8eec4ec34","user":{"login":"gastaldi","id":54133,"avatar_url":"https://avatars1.githubusercontent.com/u/54133?v=4","gravatar_id":"","url":"https://api.github.com/users/gastaldi","html_url":"https://github.com/gastaldi","followers_url":"https://api.github.com/users/gastaldi/followers","following_url":"https://api.github.com/users/gastaldi/following{/other_user}","gists_url":"https://api.github.com/users/gastaldi/gists{/gist_id}","starred_url":"https://api.github.com/users/gastaldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gastaldi/subscriptions","organizations_url":"https://api.github.com/users/gastaldi/orgs","repos_url":"https://api.github.com/users/gastaldi/repos","events_url":"https://api.github.com/users/gastaldi/events{/privacy}","received_events_url":"https://api.github.com/users/gastaldi/received_events","type":"User","site_admin":false},"repo":{"id":114317670,"name":"core","full_name":"gastaldi/core","owner":{"login":"gastaldi","id":54133,"avatar_url":"https://avatars1.githubusercontent.com/u/54133?v=4","gravatar_id":"","url":"https://api.github.com/users/gastaldi","html_url":"https://github.com/gastaldi","followers_url":"https://api.github.com/users/gastaldi/followers","following_url":"https://api.github.com/users/gastaldi/following{/other_user}","gists_url":"https://api.github.com/users/gastaldi/gists{/gist_id}","starred_url":"https://api.github.com/users/gastaldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gastaldi/subscriptions","organizations_url":"https://api.github.com/users/gastaldi/orgs","repos_url":"https://api.github.com/users/gastaldi/repos","events_url":"https://api.github.com/users/gastaldi/events{/privacy}","received_events_url":"https://api.github.com/users/gastaldi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gastaldi/core","description":"Forge Core Framework APIs and Implementation","fork":true,"url":"https://api.github.com/repos/gastaldi/core","forks_url":"https://api.github.com/repos/gastaldi/core/forks","keys_url":"https://api.github.com/repos/gastaldi/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gastaldi/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gastaldi/core/teams","hooks_url":"https://api.github.com/repos/gastaldi/core/hooks","issue_events_url":"https://api.github.com/repos/gastaldi/core/issues/events{/number}","events_url":"https://api.github.com/repos/gastaldi/core/events","assignees_url":"https://api.github.com/repos/gastaldi/core/assignees{/user}","branches_url":"https://api.github.com/repos/gastaldi/core/branches{/branch}","tags_url":"https://api.github.com/repos/gastaldi/core/tags","blobs_url":"https://api.github.com/repos/gastaldi/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gastaldi/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gastaldi/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/gastaldi/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gastaldi/core/statuses/{sha}","languages_url":"https://api.github.com/repos/gastaldi/core/languages","stargazers_url":"https://api.github.com/repos/gastaldi/core/stargazers","contributors_url":"https://api.github.com/repos/gastaldi/core/contributors","subscribers_url":"https://api.github.com/repos/gastaldi/core/subscribers","subscription_url":"https://api.github.com/repos/gastaldi/core/subscription","commits_url":"https://api.github.com/repos/gastaldi/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/gastaldi/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/gastaldi/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/gastaldi/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/gastaldi/core/contents/{+path}","compare_url":"https://api.github.com/repos/gastaldi/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gastaldi/core/merges","archive_url":"https://api.github.com/repos/gastaldi/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gastaldi/core/downloads","issues_url":"https://api.github.com/repos/gastaldi/core/issues{/number}","pulls_url":"https://api.github.com/repos/gastaldi/core/pulls{/number}","milestones_url":"https://api.github.com/repos/gastaldi/core/milestones{/number}","notifications_url":"https://api.github.com/repos/gastaldi/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gastaldi/core/labels{/name}","releases_url":"https://api.github.com/repos/gastaldi/core/releases{/id}","deployments_url":"https://api.github.com/repos/gastaldi/core/deployments","created_at":"2017-12-15T02:24:32Z","updated_at":"2017-12-15T02:24:39Z","pushed_at":"2017-12-15T02:24:48Z","git_url":"git://github.com/gastaldi/core.git","ssh_url":"git@github.com:gastaldi/core.git","clone_url":"https://github.com/gastaldi/core.git","svn_url":"https://github.com/gastaldi/core","homepage":"http://forge.jboss.org/","size":35915,"stargazers_count":0,"watchers_count":0,"language":"Java","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"forge:master","ref":"master","sha":"03e1ade236f34ad9ab034ac7d5809637fb5bc1f2","user":{"login":"forge","id":711249,"avatar_url":"https://avatars1.githubusercontent.com/u/711249?v=4","gravatar_id":"","url":"https://api.github.com/users/forge","html_url":"https://github.com/forge","followers_url":"https://api.github.com/users/forge/followers","following_url":"https://api.github.com/users/forge/following{/other_user}","gists_url":"https://api.github.com/users/forge/gists{/gist_id}","starred_url":"https://api.github.com/users/forge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forge/subscriptions","organizations_url":"https://api.github.com/users/forge/orgs","repos_url":"https://api.github.com/users/forge/repos","events_url":"https://api.github.com/users/forge/events{/privacy}","received_events_url":"https://api.github.com/users/forge/received_events","type":"Organization","site_admin":false},"repo":{"id":1660918,"name":"core","full_name":"forge/core","owner":{"login":"forge","id":711249,"avatar_url":"https://avatars1.githubusercontent.com/u/711249?v=4","gravatar_id":"","url":"https://api.github.com/users/forge","html_url":"https://github.com/forge","followers_url":"https://api.github.com/users/forge/followers","following_url":"https://api.github.com/users/forge/following{/other_user}","gists_url":"https://api.github.com/users/forge/gists{/gist_id}","starred_url":"https://api.github.com/users/forge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forge/subscriptions","organizations_url":"https://api.github.com/users/forge/orgs","repos_url":"https://api.github.com/users/forge/repos","events_url":"https://api.github.com/users/forge/events{/privacy}","received_events_url":"https://api.github.com/users/forge/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/forge/core","description":"Forge Core Framework APIs and Implementation","fork":false,"url":"https://api.github.com/repos/forge/core","forks_url":"https://api.github.com/repos/forge/core/forks","keys_url":"https://api.github.com/repos/forge/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/forge/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/forge/core/teams","hooks_url":"https://api.github.com/repos/forge/core/hooks","issue_events_url":"https://api.github.com/repos/forge/core/issues/events{/number}","events_url":"https://api.github.com/repos/forge/core/events","assignees_url":"https://api.github.com/repos/forge/core/assignees{/user}","branches_url":"https://api.github.com/repos/forge/core/branches{/branch}","tags_url":"https://api.github.com/repos/forge/core/tags","blobs_url":"https://api.github.com/repos/forge/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/forge/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/forge/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/forge/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/forge/core/statuses/{sha}","languages_url":"https://api.github.com/repos/forge/core/languages","stargazers_url":"https://api.github.com/repos/forge/core/stargazers","contributors_url":"https://api.github.com/repos/forge/core/contributors","subscribers_url":"https://api.github.com/repos/forge/core/subscribers","subscription_url":"https://api.github.com/repos/forge/core/subscription","commits_url":"https://api.github.com/repos/forge/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/forge/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/forge/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/forge/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/forge/core/contents/{+path}","compare_url":"https://api.github.com/repos/forge/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/forge/core/merges","archive_url":"https://api.github.com/repos/forge/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/forge/core/downloads","issues_url":"https://api.github.com/repos/forge/core/issues{/number}","pulls_url":"https://api.github.com/repos/forge/core/pulls{/number}","milestones_url":"https://api.github.com/repos/forge/core/milestones{/number}","notifications_url":"https://api.github.com/repos/forge/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/forge/core/labels{/name}","releases_url":"https://api.github.com/repos/forge/core/releases{/id}","deployments_url":"https://api.github.com/repos/forge/core/deployments","created_at":"2011-04-25T17:55:40Z","updated_at":"2017-12-07T01:12:04Z","pushed_at":"2017-12-20T14:04:15Z","git_url":"git://github.com/forge/core.git","ssh_url":"git@github.com:forge/core.git","clone_url":"https://github.com/forge/core.git","svn_url":"https://github.com/forge/core","homepage":"http://forge.jboss.org/","size":35906,"stargazers_count":187,"watchers_count":187,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":156,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"epl-1.0","name":"Eclipse Public License 1.0","spdx_id":"EPL-1.0","url":"https://api.github.com/licenses/epl-1.0"},"forks":156,"open_issues":1,"watchers":187,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/forge/core/pulls/618"},"html":{"href":"https://github.com/forge/core/pull/618"},"issue":{"href":"https://api.github.com/repos/forge/core/issues/618"},"comments":{"href":"https://api.github.com/repos/forge/core/issues/618/comments"},"review_comments":{"href":"https://api.github.com/repos/forge/core/pulls/618/comments"},"review_comment":{"href":"https://api.github.com/repos/forge/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/forge/core/pulls/618/commits"},"statuses":{"href":"https://api.github.com/repos/forge/core/statuses/95a3782d37dea6f093ff3f528f70eba8eec4ec34"}},"author_association":"OWNER"}}
{"actor":{"display_login":"lincolnthree"}}