{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/carbon-store/pulls/comments/42307560","id":42307560,"diff_hunk":"@@ -514,10 +520,25 @@ var LifecycleUtils = {};\n         var transition;\n         for (var index = 0; index < transitions.length; index++) {\n             transition = transitions[index];\n-            actions.push(transition.event);\n+            if (currentState == this.currentState) {\n+                if (state.allowedActions && state.allowedActions[transition.event]){","path":"apps/publisher/themes/default/js/lifecycle/lifecycle-core.js","position":19,"original_position":19,"commit_id":"3d58830d060a20680accb7b5529b7355df90d3b3","original_commit_id":"3d58830d060a20680accb7b5529b7355df90d3b3","user":{"login":"manuranga","id":1686124,"avatar_url":"https://avatars.githubusercontent.com/u/1686124?v=3","gravatar_id":"","url":"https://api.github.com/users/manuranga","html_url":"https://github.com/manuranga","followers_url":"https://api.github.com/users/manuranga/followers","following_url":"https://api.github.com/users/manuranga/following{/other_user}","gists_url":"https://api.github.com/users/manuranga/gists{/gist_id}","starred_url":"https://api.github.com/users/manuranga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuranga/subscriptions","organizations_url":"https://api.github.com/users/manuranga/orgs","repos_url":"https://api.github.com/users/manuranga/repos","events_url":"https://api.github.com/users/manuranga/events{/privacy}","received_events_url":"https://api.github.com/users/manuranga/received_events","type":"User","site_admin":false},"body":"if's can be combined.","created_at":"2015-10-17T09:15:52Z","updated_at":"2015-10-17T09:15:52Z","html_url":"https://github.com/wso2/carbon-store/pull/229#discussion_r42307560","pull_request_url":"https://api.github.com/repos/wso2/carbon-store/pulls/229","_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-store/pulls/comments/42307560"},"html":{"href":"https://github.com/wso2/carbon-store/pull/229#discussion_r42307560"},"pull_request":{"href":"https://api.github.com/repos/wso2/carbon-store/pulls/229"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/carbon-store/pulls/229","id":47962674,"html_url":"https://github.com/wso2/carbon-store/pull/229","diff_url":"https://github.com/wso2/carbon-store/pull/229.diff","patch_url":"https://github.com/wso2/carbon-store/pull/229.patch","issue_url":"https://api.github.com/repos/wso2/carbon-store/issues/229","number":229,"state":"open","locked":false,"title":"providing support for life cycle permissions and validations","user":{"login":"sameerak","id":4043972,"avatar_url":"https://avatars.githubusercontent.com/u/4043972?v=3","gravatar_id":"","url":"https://api.github.com/users/sameerak","html_url":"https://github.com/sameerak","followers_url":"https://api.github.com/users/sameerak/followers","following_url":"https://api.github.com/users/sameerak/following{/other_user}","gists_url":"https://api.github.com/users/sameerak/gists{/gist_id}","starred_url":"https://api.github.com/users/sameerak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameerak/subscriptions","organizations_url":"https://api.github.com/users/sameerak/orgs","repos_url":"https://api.github.com/users/sameerak/repos","events_url":"https://api.github.com/users/sameerak/events{/privacy}","received_events_url":"https://api.github.com/users/sameerak/received_events","type":"User","site_admin":false},"body":"[1] https://wso2.org/jira/browse/STORE-1126","created_at":"2015-10-16T21:32:11Z","updated_at":"2015-10-17T09:15:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09b9ed7fd1fefc8437bfd8cd0a5a8e1d5c9a6767","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/carbon-store/pulls/229/commits","review_comments_url":"https://api.github.com/repos/wso2/carbon-store/pulls/229/comments","review_comment_url":"https://api.github.com/repos/wso2/carbon-store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/carbon-store/issues/229/comments","statuses_url":"https://api.github.com/repos/wso2/carbon-store/statuses/3d58830d060a20680accb7b5529b7355df90d3b3","head":{"label":"sameerak:master","ref":"master","sha":"3d58830d060a20680accb7b5529b7355df90d3b3","user":{"login":"sameerak","id":4043972,"avatar_url":"https://avatars.githubusercontent.com/u/4043972?v=3","gravatar_id":"","url":"https://api.github.com/users/sameerak","html_url":"https://github.com/sameerak","followers_url":"https://api.github.com/users/sameerak/followers","following_url":"https://api.github.com/users/sameerak/following{/other_user}","gists_url":"https://api.github.com/users/sameerak/gists{/gist_id}","starred_url":"https://api.github.com/users/sameerak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameerak/subscriptions","organizations_url":"https://api.github.com/users/sameerak/orgs","repos_url":"https://api.github.com/users/sameerak/repos","events_url":"https://api.github.com/users/sameerak/events{/privacy}","received_events_url":"https://api.github.com/users/sameerak/received_events","type":"User","site_admin":false},"repo":{"id":42721742,"name":"carbon-store","full_name":"sameerak/carbon-store","owner":{"login":"sameerak","id":4043972,"avatar_url":"https://avatars.githubusercontent.com/u/4043972?v=3","gravatar_id":"","url":"https://api.github.com/users/sameerak","html_url":"https://github.com/sameerak","followers_url":"https://api.github.com/users/sameerak/followers","following_url":"https://api.github.com/users/sameerak/following{/other_user}","gists_url":"https://api.github.com/users/sameerak/gists{/gist_id}","starred_url":"https://api.github.com/users/sameerak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameerak/subscriptions","organizations_url":"https://api.github.com/users/sameerak/orgs","repos_url":"https://api.github.com/users/sameerak/repos","events_url":"https://api.github.com/users/sameerak/events{/privacy}","received_events_url":"https://api.github.com/users/sameerak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sameerak/carbon-store","description":"","fork":true,"url":"https://api.github.com/repos/sameerak/carbon-store","forks_url":"https://api.github.com/repos/sameerak/carbon-store/forks","keys_url":"https://api.github.com/repos/sameerak/carbon-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sameerak/carbon-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sameerak/carbon-store/teams","hooks_url":"https://api.github.com/repos/sameerak/carbon-store/hooks","issue_events_url":"https://api.github.com/repos/sameerak/carbon-store/issues/events{/number}","events_url":"https://api.github.com/repos/sameerak/carbon-store/events","assignees_url":"https://api.github.com/repos/sameerak/carbon-store/assignees{/user}","branches_url":"https://api.github.com/repos/sameerak/carbon-store/branches{/branch}","tags_url":"https://api.github.com/repos/sameerak/carbon-store/tags","blobs_url":"https://api.github.com/repos/sameerak/carbon-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sameerak/carbon-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sameerak/carbon-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/sameerak/carbon-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sameerak/carbon-store/statuses/{sha}","languages_url":"https://api.github.com/repos/sameerak/carbon-store/languages","stargazers_url":"https://api.github.com/repos/sameerak/carbon-store/stargazers","contributors_url":"https://api.github.com/repos/sameerak/carbon-store/contributors","subscribers_url":"https://api.github.com/repos/sameerak/carbon-store/subscribers","subscription_url":"https://api.github.com/repos/sameerak/carbon-store/subscription","commits_url":"https://api.github.com/repos/sameerak/carbon-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/sameerak/carbon-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/sameerak/carbon-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/sameerak/carbon-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/sameerak/carbon-store/contents/{+path}","compare_url":"https://api.github.com/repos/sameerak/carbon-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sameerak/carbon-store/merges","archive_url":"https://api.github.com/repos/sameerak/carbon-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sameerak/carbon-store/downloads","issues_url":"https://api.github.com/repos/sameerak/carbon-store/issues{/number}","pulls_url":"https://api.github.com/repos/sameerak/carbon-store/pulls{/number}","milestones_url":"https://api.github.com/repos/sameerak/carbon-store/milestones{/number}","notifications_url":"https://api.github.com/repos/sameerak/carbon-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sameerak/carbon-store/labels{/name}","releases_url":"https://api.github.com/repos/sameerak/carbon-store/releases{/id}","created_at":"2015-09-18T12:48:00Z","updated_at":"2015-09-18T12:48:04Z","pushed_at":"2015-10-16T21:30:10Z","git_url":"git://github.com/sameerak/carbon-store.git","ssh_url":"git@github.com:sameerak/carbon-store.git","clone_url":"https://github.com/sameerak/carbon-store.git","svn_url":"https://github.com/sameerak/carbon-store","homepage":null,"size":37207,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"wso2:master","ref":"master","sha":"36026a9455e59db05132764ff07e4f3f8a116201","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":29664276,"name":"carbon-store","full_name":"wso2/carbon-store","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/carbon-store","description":"","fork":false,"url":"https://api.github.com/repos/wso2/carbon-store","forks_url":"https://api.github.com/repos/wso2/carbon-store/forks","keys_url":"https://api.github.com/repos/wso2/carbon-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/carbon-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/carbon-store/teams","hooks_url":"https://api.github.com/repos/wso2/carbon-store/hooks","issue_events_url":"https://api.github.com/repos/wso2/carbon-store/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/carbon-store/events","assignees_url":"https://api.github.com/repos/wso2/carbon-store/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/carbon-store/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/carbon-store/tags","blobs_url":"https://api.github.com/repos/wso2/carbon-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/carbon-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/carbon-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/carbon-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/carbon-store/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/carbon-store/languages","stargazers_url":"https://api.github.com/repos/wso2/carbon-store/stargazers","contributors_url":"https://api.github.com/repos/wso2/carbon-store/contributors","subscribers_url":"https://api.github.com/repos/wso2/carbon-store/subscribers","subscription_url":"https://api.github.com/repos/wso2/carbon-store/subscription","commits_url":"https://api.github.com/repos/wso2/carbon-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/carbon-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/carbon-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/carbon-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/carbon-store/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/carbon-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/carbon-store/merges","archive_url":"https://api.github.com/repos/wso2/carbon-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/carbon-store/downloads","issues_url":"https://api.github.com/repos/wso2/carbon-store/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/carbon-store/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/carbon-store/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/carbon-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/carbon-store/labels{/name}","releases_url":"https://api.github.com/repos/wso2/carbon-store/releases{/id}","created_at":"2015-01-22T06:23:33Z","updated_at":"2015-07-12T16:57:04Z","pushed_at":"2015-10-17T09:08:14Z","git_url":"git://github.com/wso2/carbon-store.git","ssh_url":"git@github.com:wso2/carbon-store.git","clone_url":"https://github.com/wso2/carbon-store.git","svn_url":"https://github.com/wso2/carbon-store","homepage":null,"size":42001,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":14,"forks":33,"open_issues":14,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-store/pulls/229"},"html":{"href":"https://github.com/wso2/carbon-store/pull/229"},"issue":{"href":"https://api.github.com/repos/wso2/carbon-store/issues/229"},"comments":{"href":"https://api.github.com/repos/wso2/carbon-store/issues/229/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/carbon-store/pulls/229/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/carbon-store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/carbon-store/pulls/229/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/carbon-store/statuses/3d58830d060a20680accb7b5529b7355df90d3b3"}}}}