Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 41D00200BCA for ; Mon, 21 Nov 2016 16:06:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 40569160AF9; Mon, 21 Nov 2016 15:06:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B2DA3160AEC for ; Mon, 21 Nov 2016 16:06:55 +0100 (CET) Received: (qmail 5736 invoked by uid 500); 21 Nov 2016 15:06:54 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 5711 invoked by uid 99); 21 Nov 2016 15:06:54 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2016 15:06:54 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0918AE0999; Mon, 21 Nov 2016 15:06:54 +0000 (UTC) From: nvazquez To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack issue #1767: CLOUDSTACK-9457: Allow retrieval and modification of... Content-Type: text/plain Message-Id: <20161121150654.0918AE0999@git1-us-west.apache.org> Date: Mon, 21 Nov 2016 15:06:54 +0000 (UTC) archived-at: Mon, 21 Nov 2016 15:06:56 -0000 Github user nvazquez commented on the issue: https://github.com/apache/cloudstack/pull/1767 Hi @koushik-das @ustcweizhou, For this new methods as they require the entity id (VM or template) I added a basic validation to check if the entity is found on DB, but I realize that I should also validate that entity is not destroyed. This data is to be stored in *details tables. About existing API methods, I have checked `updateTemplate` and `updateVirtualMachines` methods before adding this new methods, and they provide a way to add/update details (although updateTemplate overrides existing details). Also, details can be listed on `listTemplates` and `listVirtualMachines` but thought the best approach was introducing this new methods to reduce overhead and treat entity details separately instead of updating/listing the entity every time. What do you think of this approach? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---