{"action":"closed","number":334,"pull_request":{"url":"https://api.github.com/repos/apache/cloudstack/pulls/334","id":36561906,"html_url":"https://github.com/apache/cloudstack/pull/334","diff_url":"https://github.com/apache/cloudstack/pull/334.diff","patch_url":"https://github.com/apache/cloudstack/pull/334.patch","issue_url":"https://api.github.com/repos/apache/cloudstack/issues/334","number":334,"state":"closed","locked":false,"title":"BUG-ID: CLOUDSTACK-8483 -  Private template not visible in project","user":{"login":"sudhansu7","id":1062642,"avatar_url":"https://avatars.githubusercontent.com/u/1062642?v=3","gravatar_id":"","url":"https://api.github.com/users/sudhansu7","html_url":"https://github.com/sudhansu7","followers_url":"https://api.github.com/users/sudhansu7/followers","following_url":"https://api.github.com/users/sudhansu7/following{/other_user}","gists_url":"https://api.github.com/users/sudhansu7/gists{/gist_id}","starred_url":"https://api.github.com/users/sudhansu7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudhansu7/subscriptions","organizations_url":"https://api.github.com/users/sudhansu7/orgs","repos_url":"https://api.github.com/users/sudhansu7/repos","events_url":"https://api.github.com/users/sudhansu7/events{/privacy}","received_events_url":"https://api.github.com/users/sudhansu7/received_events","type":"User","site_admin":false},"body":"added new 'projectId' parameter in createTemplate command and based current user, account and projectid decide the owner of the template.\r\n\r\nProblem: Template created using createTemplte API within project context is not visible in project view.\r\nRoot Cause: CeateTemplate API does not have projectId parameter and hence it creates the template against the caller's account id. \r\nSolution: A new parameter 'projectId' has been added to createTemplate command and the ownership is decided based on current user account and projectid.","created_at":"2015-05-30T07:48:38Z","updated_at":"2015-07-26T14:41:31Z","closed_at":"2015-07-26T14:41:31Z","merged_at":null,"merge_commit_sha":"ccba52ecc77ff76d0354b7f9bcafb8a468e124d2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/cloudstack/pulls/334/commits","review_comments_url":"https://api.github.com/repos/apache/cloudstack/pulls/334/comments","review_comment_url":"https://api.github.com/repos/apache/cloudstack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/cloudstack/issues/334/comments","statuses_url":"https://api.github.com/repos/apache/cloudstack/statuses/fa469f25ec9c1f441dabfce0aa97520f7e20c9c1","head":{"label":"sudhansu7:CLOUDSTACK-8483","ref":"CLOUDSTACK-8483","sha":"fa469f25ec9c1f441dabfce0aa97520f7e20c9c1","user":{"login":"sudhansu7","id":1062642,"avatar_url":"https://avatars.githubusercontent.com/u/1062642?v=3","gravatar_id":"","url":"https://api.github.com/users/sudhansu7","html_url":"https://github.com/sudhansu7","followers_url":"https://api.github.com/users/sudhansu7/followers","following_url":"https://api.github.com/users/sudhansu7/following{/other_user}","gists_url":"https://api.github.com/users/sudhansu7/gists{/gist_id}","starred_url":"https://api.github.com/users/sudhansu7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudhansu7/subscriptions","organizations_url":"https://api.github.com/users/sudhansu7/orgs","repos_url":"https://api.github.com/users/sudhansu7/repos","events_url":"https://api.github.com/users/sudhansu7/events{/privacy}","received_events_url":"https://api.github.com/users/sudhansu7/received_events","type":"User","site_admin":false},"repo":{"id":27263964,"name":"cloudstack","full_name":"sudhansu7/cloudstack","owner":{"login":"sudhansu7","id":1062642,"avatar_url":"https://avatars.githubusercontent.com/u/1062642?v=3","gravatar_id":"","url":"https://api.github.com/users/sudhansu7","html_url":"https://github.com/sudhansu7","followers_url":"https://api.github.com/users/sudhansu7/followers","following_url":"https://api.github.com/users/sudhansu7/following{/other_user}","gists_url":"https://api.github.com/users/sudhansu7/gists{/gist_id}","starred_url":"https://api.github.com/users/sudhansu7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudhansu7/subscriptions","organizations_url":"https://api.github.com/users/sudhansu7/orgs","repos_url":"https://api.github.com/users/sudhansu7/repos","events_url":"https://api.github.com/users/sudhansu7/events{/privacy}","received_events_url":"https://api.github.com/users/sudhansu7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sudhansu7/cloudstack","description":"Mirror of Apache Cloudstack","fork":true,"url":"https://api.github.com/repos/sudhansu7/cloudstack","forks_url":"https://api.github.com/repos/sudhansu7/cloudstack/forks","keys_url":"https://api.github.com/repos/sudhansu7/cloudstack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sudhansu7/cloudstack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sudhansu7/cloudstack/teams","hooks_url":"https://api.github.com/repos/sudhansu7/cloudstack/hooks","issue_events_url":"https://api.github.com/repos/sudhansu7/cloudstack/issues/events{/number}","events_url":"https://api.github.com/repos/sudhansu7/cloudstack/events","assignees_url":"https://api.github.com/repos/sudhansu7/cloudstack/assignees{/user}","branches_url":"https://api.github.com/repos/sudhansu7/cloudstack/branches{/branch}","tags_url":"https://api.github.com/repos/sudhansu7/cloudstack/tags","blobs_url":"https://api.github.com/repos/sudhansu7/cloudstack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sudhansu7/cloudstack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sudhansu7/cloudstack/git/refs{/sha}","trees_url":"https://api.github.com/repos/sudhansu7/cloudstack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sudhansu7/cloudstack/statuses/{sha}","languages_url":"https://api.github.com/repos/sudhansu7/cloudstack/languages","stargazers_url":"https://api.github.com/repos/sudhansu7/cloudstack/stargazers","contributors_url":"https://api.github.com/repos/sudhansu7/cloudstack/contributors","subscribers_url":"https://api.github.com/repos/sudhansu7/cloudstack/subscribers","subscription_url":"https://api.github.com/repos/sudhansu7/cloudstack/subscription","commits_url":"https://api.github.com/repos/sudhansu7/cloudstack/commits{/sha}","git_commits_url":"https://api.github.com/repos/sudhansu7/cloudstack/git/commits{/sha}","comments_url":"https://api.github.com/repos/sudhansu7/cloudstack/comments{/number}","issue_comment_url":"https://api.github.com/repos/sudhansu7/cloudstack/issues/comments{/number}","contents_url":"https://api.github.com/repos/sudhansu7/cloudstack/contents/{+path}","compare_url":"https://api.github.com/repos/sudhansu7/cloudstack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sudhansu7/cloudstack/merges","archive_url":"https://api.github.com/repos/sudhansu7/cloudstack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sudhansu7/cloudstack/downloads","issues_url":"https://api.github.com/repos/sudhansu7/cloudstack/issues{/number}","pulls_url":"https://api.github.com/repos/sudhansu7/cloudstack/pulls{/number}","milestones_url":"https://api.github.com/repos/sudhansu7/cloudstack/milestones{/number}","notifications_url":"https://api.github.com/repos/sudhansu7/cloudstack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sudhansu7/cloudstack/labels{/name}","releases_url":"https://api.github.com/repos/sudhansu7/cloudstack/releases{/id}","created_at":"2014-11-28T11:19:17Z","updated_at":"2015-04-23T07:27:18Z","pushed_at":"2015-07-03T12:07:42Z","git_url":"git://github.com/sudhansu7/cloudstack.git","ssh_url":"git@github.com:sudhansu7/cloudstack.git","clone_url":"https://github.com/sudhansu7/cloudstack.git","svn_url":"https://github.com/sudhansu7/cloudstack","homepage":null,"size":479770,"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:4.5","ref":"4.5","sha":"f8e1ff12abdf3c152db96e590c5118c8d7d72db2","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":9759448,"name":"cloudstack","full_name":"apache/cloudstack","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/cloudstack","description":"Mirror of Apache Cloudstack","fork":false,"url":"https://api.github.com/repos/apache/cloudstack","forks_url":"https://api.github.com/repos/apache/cloudstack/forks","keys_url":"https://api.github.com/repos/apache/cloudstack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/cloudstack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/cloudstack/teams","hooks_url":"https://api.github.com/repos/apache/cloudstack/hooks","issue_events_url":"https://api.github.com/repos/apache/cloudstack/issues/events{/number}","events_url":"https://api.github.com/repos/apache/cloudstack/events","assignees_url":"https://api.github.com/repos/apache/cloudstack/assignees{/user}","branches_url":"https://api.github.com/repos/apache/cloudstack/branches{/branch}","tags_url":"https://api.github.com/repos/apache/cloudstack/tags","blobs_url":"https://api.github.com/repos/apache/cloudstack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/cloudstack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/cloudstack/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/cloudstack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/cloudstack/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/cloudstack/languages","stargazers_url":"https://api.github.com/repos/apache/cloudstack/stargazers","contributors_url":"https://api.github.com/repos/apache/cloudstack/contributors","subscribers_url":"https://api.github.com/repos/apache/cloudstack/subscribers","subscription_url":"https://api.github.com/repos/apache/cloudstack/subscription","commits_url":"https://api.github.com/repos/apache/cloudstack/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/cloudstack/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/cloudstack/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/cloudstack/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/cloudstack/contents/{+path}","compare_url":"https://api.github.com/repos/apache/cloudstack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/cloudstack/merges","archive_url":"https://api.github.com/repos/apache/cloudstack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/cloudstack/downloads","issues_url":"https://api.github.com/repos/apache/cloudstack/issues{/number}","pulls_url":"https://api.github.com/repos/apache/cloudstack/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/cloudstack/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/cloudstack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/cloudstack/labels{/name}","releases_url":"https://api.github.com/repos/apache/cloudstack/releases{/id}","created_at":"2013-04-29T22:27:12Z","updated_at":"2015-07-22T09:42:52Z","pushed_at":"2015-07-26T14:41:28Z","git_url":"git://github.com/apache/cloudstack.git","ssh_url":"git@github.com:apache/cloudstack.git","clone_url":"https://github.com/apache/cloudstack.git","svn_url":"https://github.com/apache/cloudstack","homepage":null,"size":744148,"stargazers_count":266,"watchers_count":266,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":331,"mirror_url":"git://git.apache.org/cloudstack.git","open_issues_count":26,"forks":331,"open_issues":26,"watchers":266,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/cloudstack/pulls/334"},"html":{"href":"https://github.com/apache/cloudstack/pull/334"},"issue":{"href":"https://api.github.com/repos/apache/cloudstack/issues/334"},"comments":{"href":"https://api.github.com/repos/apache/cloudstack/issues/334/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/cloudstack/pulls/334/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/cloudstack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/cloudstack/pulls/334/commits"},"statuses":{"href":"https://api.github.com/repos/apache/cloudstack/statuses/fa469f25ec9c1f441dabfce0aa97520f7e20c9c1"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":8,"review_comments":3,"commits":2,"additions":32,"deletions":20,"changed_files":1}}