{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/app-cloud/pulls/comments/80024726","id":80024726,"diff_hunk":"@@ -1127,9 +1127,11 @@ var getSelectedRevisionFromSession = function(applicationKey) {\n };\n \n var deleteSelectedVersionFromSession = function(applicationKey){\n-    var selectedVersions = session.get(\"SELECTED_REVISIONS\");\n-    if(selectedVersions && selectedVersions[applicationKey]){\n-        delete selectedVersions[applicationKey];\n+    if (session != null) {","path":"modules/jaggeryapps/appmgt/src/modules/application/application.jag","position":7,"original_position":7,"commit_id":"94c8363a9180920c5961cc7be78c73c3a2ae9f20","original_commit_id":"94c8363a9180920c5961cc7be78c73c3a2ae9f20","user":{"login":"danushkaf","id":5301668,"avatar_url":"https://avatars.githubusercontent.com/u/5301668?v=3","gravatar_id":"","url":"https://api.github.com/users/danushkaf","html_url":"https://github.com/danushkaf","followers_url":"https://api.github.com/users/danushkaf/followers","following_url":"https://api.github.com/users/danushkaf/following{/other_user}","gists_url":"https://api.github.com/users/danushkaf/gists{/gist_id}","starred_url":"https://api.github.com/users/danushkaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danushkaf/subscriptions","organizations_url":"https://api.github.com/users/danushkaf/orgs","repos_url":"https://api.github.com/users/danushkaf/repos","events_url":"https://api.github.com/users/danushkaf/events{/privacy}","received_events_url":"https://api.github.com/users/danushkaf/received_events","type":"User","site_admin":false},"body":"And instead of \"if(session !=null )\" you can use \"if (session)\"","created_at":"2016-09-22T11:58:09Z","updated_at":"2016-09-22T11:58:09Z","html_url":"https://github.com/wso2/app-cloud/pull/754#discussion_r80024726","pull_request_url":"https://api.github.com/repos/wso2/app-cloud/pulls/754","_links":{"self":{"href":"https://api.github.com/repos/wso2/app-cloud/pulls/comments/80024726"},"html":{"href":"https://github.com/wso2/app-cloud/pull/754#discussion_r80024726"},"pull_request":{"href":"https://api.github.com/repos/wso2/app-cloud/pulls/754"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/app-cloud/pulls/754","id":86293390,"html_url":"https://github.com/wso2/app-cloud/pull/754","diff_url":"https://github.com/wso2/app-cloud/pull/754.diff","patch_url":"https://github.com/wso2/app-cloud/pull/754.patch","issue_url":"https://api.github.com/repos/wso2/app-cloud/issues/754","number":754,"state":"open","locked":false,"title":"Fix for AppCloud-332","user":{"login":"SabraO","id":5234592,"avatar_url":"https://avatars.githubusercontent.com/u/5234592?v=3","gravatar_id":"","url":"https://api.github.com/users/SabraO","html_url":"https://github.com/SabraO","followers_url":"https://api.github.com/users/SabraO/followers","following_url":"https://api.github.com/users/SabraO/following{/other_user}","gists_url":"https://api.github.com/users/SabraO/gists{/gist_id}","starred_url":"https://api.github.com/users/SabraO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SabraO/subscriptions","organizations_url":"https://api.github.com/users/SabraO/orgs","repos_url":"https://api.github.com/users/SabraO/repos","events_url":"https://api.github.com/users/SabraO/events{/privacy}","received_events_url":"https://api.github.com/users/SabraO/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-22T08:02:40Z","updated_at":"2016-09-22T11:58:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"74f9eb1ba60afab94cc665b115589f99d2b2cdf3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/app-cloud/pulls/754/commits","review_comments_url":"https://api.github.com/repos/wso2/app-cloud/pulls/754/comments","review_comment_url":"https://api.github.com/repos/wso2/app-cloud/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/app-cloud/issues/754/comments","statuses_url":"https://api.github.com/repos/wso2/app-cloud/statuses/94c8363a9180920c5961cc7be78c73c3a2ae9f20","head":{"label":"SabraO:master","ref":"master","sha":"94c8363a9180920c5961cc7be78c73c3a2ae9f20","user":{"login":"SabraO","id":5234592,"avatar_url":"https://avatars.githubusercontent.com/u/5234592?v=3","gravatar_id":"","url":"https://api.github.com/users/SabraO","html_url":"https://github.com/SabraO","followers_url":"https://api.github.com/users/SabraO/followers","following_url":"https://api.github.com/users/SabraO/following{/other_user}","gists_url":"https://api.github.com/users/SabraO/gists{/gist_id}","starred_url":"https://api.github.com/users/SabraO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SabraO/subscriptions","organizations_url":"https://api.github.com/users/SabraO/orgs","repos_url":"https://api.github.com/users/SabraO/repos","events_url":"https://api.github.com/users/SabraO/events{/privacy}","received_events_url":"https://api.github.com/users/SabraO/received_events","type":"User","site_admin":false},"repo":{"id":55682661,"name":"app-cloud","full_name":"SabraO/app-cloud","owner":{"login":"SabraO","id":5234592,"avatar_url":"https://avatars.githubusercontent.com/u/5234592?v=3","gravatar_id":"","url":"https://api.github.com/users/SabraO","html_url":"https://github.com/SabraO","followers_url":"https://api.github.com/users/SabraO/followers","following_url":"https://api.github.com/users/SabraO/following{/other_user}","gists_url":"https://api.github.com/users/SabraO/gists{/gist_id}","starred_url":"https://api.github.com/users/SabraO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SabraO/subscriptions","organizations_url":"https://api.github.com/users/SabraO/orgs","repos_url":"https://api.github.com/users/SabraO/repos","events_url":"https://api.github.com/users/SabraO/events{/privacy}","received_events_url":"https://api.github.com/users/SabraO/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SabraO/app-cloud","description":"","fork":true,"url":"https://api.github.com/repos/SabraO/app-cloud","forks_url":"https://api.github.com/repos/SabraO/app-cloud/forks","keys_url":"https://api.github.com/repos/SabraO/app-cloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SabraO/app-cloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SabraO/app-cloud/teams","hooks_url":"https://api.github.com/repos/SabraO/app-cloud/hooks","issue_events_url":"https://api.github.com/repos/SabraO/app-cloud/issues/events{/number}","events_url":"https://api.github.com/repos/SabraO/app-cloud/events","assignees_url":"https://api.github.com/repos/SabraO/app-cloud/assignees{/user}","branches_url":"https://api.github.com/repos/SabraO/app-cloud/branches{/branch}","tags_url":"https://api.github.com/repos/SabraO/app-cloud/tags","blobs_url":"https://api.github.com/repos/SabraO/app-cloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SabraO/app-cloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SabraO/app-cloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/SabraO/app-cloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SabraO/app-cloud/statuses/{sha}","languages_url":"https://api.github.com/repos/SabraO/app-cloud/languages","stargazers_url":"https://api.github.com/repos/SabraO/app-cloud/stargazers","contributors_url":"https://api.github.com/repos/SabraO/app-cloud/contributors","subscribers_url":"https://api.github.com/repos/SabraO/app-cloud/subscribers","subscription_url":"https://api.github.com/repos/SabraO/app-cloud/subscription","commits_url":"https://api.github.com/repos/SabraO/app-cloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/SabraO/app-cloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/SabraO/app-cloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/SabraO/app-cloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/SabraO/app-cloud/contents/{+path}","compare_url":"https://api.github.com/repos/SabraO/app-cloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SabraO/app-cloud/merges","archive_url":"https://api.github.com/repos/SabraO/app-cloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SabraO/app-cloud/downloads","issues_url":"https://api.github.com/repos/SabraO/app-cloud/issues{/number}","pulls_url":"https://api.github.com/repos/SabraO/app-cloud/pulls{/number}","milestones_url":"https://api.github.com/repos/SabraO/app-cloud/milestones{/number}","notifications_url":"https://api.github.com/repos/SabraO/app-cloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SabraO/app-cloud/labels{/name}","releases_url":"https://api.github.com/repos/SabraO/app-cloud/releases{/id}","deployments_url":"https://api.github.com/repos/SabraO/app-cloud/deployments","created_at":"2016-04-07T09:40:24Z","updated_at":"2016-04-07T09:40:26Z","pushed_at":"2016-09-22T07:59:13Z","git_url":"git://github.com/SabraO/app-cloud.git","ssh_url":"git@github.com:SabraO/app-cloud.git","clone_url":"https://github.com/SabraO/app-cloud.git","svn_url":"https://github.com/SabraO/app-cloud","homepage":null,"size":22726,"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":"2f6005a2675873bec71b58655ba139eab72de227","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":50903674,"name":"app-cloud","full_name":"wso2/app-cloud","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/app-cloud","description":"WSO2 APP-CLOUD","fork":false,"url":"https://api.github.com/repos/wso2/app-cloud","forks_url":"https://api.github.com/repos/wso2/app-cloud/forks","keys_url":"https://api.github.com/repos/wso2/app-cloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/app-cloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/app-cloud/teams","hooks_url":"https://api.github.com/repos/wso2/app-cloud/hooks","issue_events_url":"https://api.github.com/repos/wso2/app-cloud/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/app-cloud/events","assignees_url":"https://api.github.com/repos/wso2/app-cloud/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/app-cloud/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/app-cloud/tags","blobs_url":"https://api.github.com/repos/wso2/app-cloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/app-cloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/app-cloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/app-cloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/app-cloud/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/app-cloud/languages","stargazers_url":"https://api.github.com/repos/wso2/app-cloud/stargazers","contributors_url":"https://api.github.com/repos/wso2/app-cloud/contributors","subscribers_url":"https://api.github.com/repos/wso2/app-cloud/subscribers","subscription_url":"https://api.github.com/repos/wso2/app-cloud/subscription","commits_url":"https://api.github.com/repos/wso2/app-cloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/app-cloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/app-cloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/app-cloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/app-cloud/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/app-cloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/app-cloud/merges","archive_url":"https://api.github.com/repos/wso2/app-cloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/app-cloud/downloads","issues_url":"https://api.github.com/repos/wso2/app-cloud/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/app-cloud/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/app-cloud/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/app-cloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/app-cloud/labels{/name}","releases_url":"https://api.github.com/repos/wso2/app-cloud/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/app-cloud/deployments","created_at":"2016-02-02T07:49:41Z","updated_at":"2016-09-22T03:07:27Z","pushed_at":"2016-09-22T09:41:47Z","git_url":"git://github.com/wso2/app-cloud.git","ssh_url":"git@github.com:wso2/app-cloud.git","clone_url":"https://github.com/wso2/app-cloud.git","svn_url":"https://github.com/wso2/app-cloud","homepage":"","size":22896,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":3,"forks":25,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/app-cloud/pulls/754"},"html":{"href":"https://github.com/wso2/app-cloud/pull/754"},"issue":{"href":"https://api.github.com/repos/wso2/app-cloud/issues/754"},"comments":{"href":"https://api.github.com/repos/wso2/app-cloud/issues/754/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/app-cloud/pulls/754/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/app-cloud/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/app-cloud/pulls/754/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/app-cloud/statuses/94c8363a9180920c5961cc7be78c73c3a2ae9f20"}}}}
{"actor":{"display_login":"danushkaf"}}