Repository navigation
Conversation
added new 'projectId' parameter in createTemplate command and based current user, account and projectid decide the owner of the template.
|
cloudstack-pull-requests #277 SUCCESS |
|
Do we really need projectId here? The api doc says "A template created from this command is automatically designated as a private template visible to the account that created it." |
There was a problem hiding this comment.
accountId is unused. Can we initialize it with CallContext.current().getCallingAccount() and use it (which saves some function calls)?
|
@sudhansu7 can you reply to @karuturi ? thanks. Otherwise this will stay stuck waiting for your answer. |
|
@karuturi |
added new 'projectId' parameter in createTemplate command and based current user, account and projectid decide the owner of the template.
|
There is an API change. Should this go into master only? |
There was a problem hiding this comment.
Ping. Since, this is an append only API change. IMO we can merge on 4.5 as well.
Updates, is this good to go?
|
@karuturi @kishankavala can you answer @bhaisaab or add your LGTM? |
|
with the new changes, looks good to me 👍 |
|
@sudhansu7 can you please rebase the changes for master? |
added new 'projectId' parameter in createTemplate command and based current user, account and projectid decide the owner of the template.
Problem: Template created using createTemplte API within project context is not visible in project view.
Root Cause: CeateTemplate API does not have projectId parameter and hence it creates the template against the caller's account id.
Solution: A new parameter 'projectId' has been added to createTemplate command and the ownership is decided based on current user account and projectid.