{"action":"created","comment":{"url":"https://api.github.com/repos/apache/stratos/pulls/comments/39479093","id":39479093,"diff_hunk":"@@ -1147,15 +1151,18 @@ public static ApplicationBean convertStubApplicationContextToApplicationDefiniti\n         if (applicationContext == null) {\n             return null;\n         }\n-\n+        Application application = ApplicationManager.getApplications().getApplication(applicationContext.getApplicationId());\n         ApplicationBean applicationDefinition = new ApplicationBean();\n         applicationDefinition.setApplicationId(applicationContext.getApplicationId());\n         applicationDefinition.setAlias(applicationContext.getAlias());\n         applicationDefinition.setMultiTenant(applicationContext.getMultiTenant());\n         applicationDefinition.setName(applicationContext.getName());\n         applicationDefinition.setDescription(applicationContext.getDescription());\n-        applicationDefinition.setStatus(applicationContext.getStatus());\n-\n+        if (application.getStatus().name().equals(APPLICATION_STATUS_ACTIVE)) {","path":"components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java","position":null,"original_position":39,"commit_id":"3d44e8de5e74669c6344e5b24d0589badd838840","original_commit_id":"56d86560d6b23cfa1b77a562128ef1b47554d09f","user":{"login":"anuruddhal","id":11031042,"avatar_url":"https://avatars.githubusercontent.com/u/11031042?v=3","gravatar_id":"","url":"https://api.github.com/users/anuruddhal","html_url":"https://github.com/anuruddhal","followers_url":"https://api.github.com/users/anuruddhal/followers","following_url":"https://api.github.com/users/anuruddhal/following{/other_user}","gists_url":"https://api.github.com/users/anuruddhal/gists{/gist_id}","starred_url":"https://api.github.com/users/anuruddhal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuruddhal/subscriptions","organizations_url":"https://api.github.com/users/anuruddhal/orgs","repos_url":"https://api.github.com/users/anuruddhal/repos","events_url":"https://api.github.com/users/anuruddhal/events{/privacy}","received_events_url":"https://api.github.com/users/anuruddhal/received_events","type":"User","site_admin":false},"body":"Fixed with commit 3d44e8de5e74669c6344e5b24d0589badd838840","created_at":"2015-09-15T06:49:24Z","updated_at":"2015-09-15T06:49:24Z","html_url":"https://github.com/apache/stratos/pull/464#discussion_r39479093","pull_request_url":"https://api.github.com/repos/apache/stratos/pulls/464","_links":{"self":{"href":"https://api.github.com/repos/apache/stratos/pulls/comments/39479093"},"html":{"href":"https://github.com/apache/stratos/pull/464#discussion_r39479093"},"pull_request":{"href":"https://api.github.com/repos/apache/stratos/pulls/464"}}},"pull_request":{"url":"https://api.github.com/repos/apache/stratos/pulls/464","id":45008385,"html_url":"https://github.com/apache/stratos/pull/464","diff_url":"https://github.com/apache/stratos/pull/464.diff","patch_url":"https://github.com/apache/stratos/pull/464.patch","issue_url":"https://api.github.com/repos/apache/stratos/issues/464","number":464,"state":"open","locked":false,"title":"Making signup button available only when application is active","user":{"login":"anuruddhal","id":11031042,"avatar_url":"https://avatars.githubusercontent.com/u/11031042?v=3","gravatar_id":"","url":"https://api.github.com/users/anuruddhal","html_url":"https://github.com/anuruddhal","followers_url":"https://api.github.com/users/anuruddhal/followers","following_url":"https://api.github.com/users/anuruddhal/following{/other_user}","gists_url":"https://api.github.com/users/anuruddhal/gists{/gist_id}","starred_url":"https://api.github.com/users/anuruddhal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuruddhal/subscriptions","organizations_url":"https://api.github.com/users/anuruddhal/orgs","repos_url":"https://api.github.com/users/anuruddhal/repos","events_url":"https://api.github.com/users/anuruddhal/events{/privacy}","received_events_url":"https://api.github.com/users/anuruddhal/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-15T04:39:37Z","updated_at":"2015-09-15T06:49:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48ff6197595e61f2114c2050560f763d81518e8b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/stratos/pulls/464/commits","review_comments_url":"https://api.github.com/repos/apache/stratos/pulls/464/comments","review_comment_url":"https://api.github.com/repos/apache/stratos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/stratos/issues/464/comments","statuses_url":"https://api.github.com/repos/apache/stratos/statuses/3d44e8de5e74669c6344e5b24d0589badd838840","head":{"label":"anuruddhal:stratos-4.1.x_deploy","ref":"stratos-4.1.x_deploy","sha":"3d44e8de5e74669c6344e5b24d0589badd838840","user":{"login":"anuruddhal","id":11031042,"avatar_url":"https://avatars.githubusercontent.com/u/11031042?v=3","gravatar_id":"","url":"https://api.github.com/users/anuruddhal","html_url":"https://github.com/anuruddhal","followers_url":"https://api.github.com/users/anuruddhal/followers","following_url":"https://api.github.com/users/anuruddhal/following{/other_user}","gists_url":"https://api.github.com/users/anuruddhal/gists{/gist_id}","starred_url":"https://api.github.com/users/anuruddhal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuruddhal/subscriptions","organizations_url":"https://api.github.com/users/anuruddhal/orgs","repos_url":"https://api.github.com/users/anuruddhal/repos","events_url":"https://api.github.com/users/anuruddhal/events{/privacy}","received_events_url":"https://api.github.com/users/anuruddhal/received_events","type":"User","site_admin":false},"repo":{"id":41846224,"name":"stratos","full_name":"anuruddhal/stratos","owner":{"login":"anuruddhal","id":11031042,"avatar_url":"https://avatars.githubusercontent.com/u/11031042?v=3","gravatar_id":"","url":"https://api.github.com/users/anuruddhal","html_url":"https://github.com/anuruddhal","followers_url":"https://api.github.com/users/anuruddhal/followers","following_url":"https://api.github.com/users/anuruddhal/following{/other_user}","gists_url":"https://api.github.com/users/anuruddhal/gists{/gist_id}","starred_url":"https://api.github.com/users/anuruddhal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anuruddhal/subscriptions","organizations_url":"https://api.github.com/users/anuruddhal/orgs","repos_url":"https://api.github.com/users/anuruddhal/repos","events_url":"https://api.github.com/users/anuruddhal/events{/privacy}","received_events_url":"https://api.github.com/users/anuruddhal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anuruddhal/stratos","description":"Mirror of Apache Stratos","fork":true,"url":"https://api.github.com/repos/anuruddhal/stratos","forks_url":"https://api.github.com/repos/anuruddhal/stratos/forks","keys_url":"https://api.github.com/repos/anuruddhal/stratos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anuruddhal/stratos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anuruddhal/stratos/teams","hooks_url":"https://api.github.com/repos/anuruddhal/stratos/hooks","issue_events_url":"https://api.github.com/repos/anuruddhal/stratos/issues/events{/number}","events_url":"https://api.github.com/repos/anuruddhal/stratos/events","assignees_url":"https://api.github.com/repos/anuruddhal/stratos/assignees{/user}","branches_url":"https://api.github.com/repos/anuruddhal/stratos/branches{/branch}","tags_url":"https://api.github.com/repos/anuruddhal/stratos/tags","blobs_url":"https://api.github.com/repos/anuruddhal/stratos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anuruddhal/stratos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anuruddhal/stratos/git/refs{/sha}","trees_url":"https://api.github.com/repos/anuruddhal/stratos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anuruddhal/stratos/statuses/{sha}","languages_url":"https://api.github.com/repos/anuruddhal/stratos/languages","stargazers_url":"https://api.github.com/repos/anuruddhal/stratos/stargazers","contributors_url":"https://api.github.com/repos/anuruddhal/stratos/contributors","subscribers_url":"https://api.github.com/repos/anuruddhal/stratos/subscribers","subscription_url":"https://api.github.com/repos/anuruddhal/stratos/subscription","commits_url":"https://api.github.com/repos/anuruddhal/stratos/commits{/sha}","git_commits_url":"https://api.github.com/repos/anuruddhal/stratos/git/commits{/sha}","comments_url":"https://api.github.com/repos/anuruddhal/stratos/comments{/number}","issue_comment_url":"https://api.github.com/repos/anuruddhal/stratos/issues/comments{/number}","contents_url":"https://api.github.com/repos/anuruddhal/stratos/contents/{+path}","compare_url":"https://api.github.com/repos/anuruddhal/stratos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anuruddhal/stratos/merges","archive_url":"https://api.github.com/repos/anuruddhal/stratos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anuruddhal/stratos/downloads","issues_url":"https://api.github.com/repos/anuruddhal/stratos/issues{/number}","pulls_url":"https://api.github.com/repos/anuruddhal/stratos/pulls{/number}","milestones_url":"https://api.github.com/repos/anuruddhal/stratos/milestones{/number}","notifications_url":"https://api.github.com/repos/anuruddhal/stratos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anuruddhal/stratos/labels{/name}","releases_url":"https://api.github.com/repos/anuruddhal/stratos/releases{/id}","created_at":"2015-09-03T06:56:21Z","updated_at":"2015-09-03T06:56:28Z","pushed_at":"2015-09-15T06:30:45Z","git_url":"git://github.com/anuruddhal/stratos.git","ssh_url":"git@github.com:anuruddhal/stratos.git","clone_url":"https://github.com/anuruddhal/stratos.git","svn_url":"https://github.com/anuruddhal/stratos","homepage":null,"size":62337,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"apache:stratos-4.1.x","ref":"stratos-4.1.x","sha":"08433049e6fbf026287a6159bb4098c9b0e413b5","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":20432793,"name":"stratos","full_name":"apache/stratos","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/stratos","description":"Mirror of Apache Stratos","fork":false,"url":"https://api.github.com/repos/apache/stratos","forks_url":"https://api.github.com/repos/apache/stratos/forks","keys_url":"https://api.github.com/repos/apache/stratos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/stratos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/stratos/teams","hooks_url":"https://api.github.com/repos/apache/stratos/hooks","issue_events_url":"https://api.github.com/repos/apache/stratos/issues/events{/number}","events_url":"https://api.github.com/repos/apache/stratos/events","assignees_url":"https://api.github.com/repos/apache/stratos/assignees{/user}","branches_url":"https://api.github.com/repos/apache/stratos/branches{/branch}","tags_url":"https://api.github.com/repos/apache/stratos/tags","blobs_url":"https://api.github.com/repos/apache/stratos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/stratos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/stratos/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/stratos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/stratos/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/stratos/languages","stargazers_url":"https://api.github.com/repos/apache/stratos/stargazers","contributors_url":"https://api.github.com/repos/apache/stratos/contributors","subscribers_url":"https://api.github.com/repos/apache/stratos/subscribers","subscription_url":"https://api.github.com/repos/apache/stratos/subscription","commits_url":"https://api.github.com/repos/apache/stratos/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/stratos/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/stratos/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/stratos/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/stratos/contents/{+path}","compare_url":"https://api.github.com/repos/apache/stratos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/stratos/merges","archive_url":"https://api.github.com/repos/apache/stratos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/stratos/downloads","issues_url":"https://api.github.com/repos/apache/stratos/issues{/number}","pulls_url":"https://api.github.com/repos/apache/stratos/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/stratos/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/stratos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/stratos/labels{/name}","releases_url":"https://api.github.com/repos/apache/stratos/releases{/id}","created_at":"2014-06-03T07:00:07Z","updated_at":"2015-09-09T16:52:44Z","pushed_at":"2015-09-15T06:30:46Z","git_url":"git://github.com/apache/stratos.git","ssh_url":"git@github.com:apache/stratos.git","clone_url":"https://github.com/apache/stratos.git","svn_url":"https://github.com/apache/stratos","homepage":null,"size":114743,"stargazers_count":96,"watchers_count":96,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":80,"mirror_url":"git://git.apache.org/stratos.git","open_issues_count":12,"forks":80,"open_issues":12,"watchers":96,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/stratos/pulls/464"},"html":{"href":"https://github.com/apache/stratos/pull/464"},"issue":{"href":"https://api.github.com/repos/apache/stratos/issues/464"},"comments":{"href":"https://api.github.com/repos/apache/stratos/issues/464/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/stratos/pulls/464/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/stratos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/stratos/pulls/464/commits"},"statuses":{"href":"https://api.github.com/repos/apache/stratos/statuses/3d44e8de5e74669c6344e5b24d0589badd838840"}}}}