Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E7D7910AD9 for ; Tue, 4 Mar 2014 17:32:03 +0000 (UTC) Received: (qmail 88342 invoked by uid 500); 4 Mar 2014 17:32:02 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 88271 invoked by uid 500); 4 Mar 2014 17:32:00 -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 88258 invoked by uid 99); 4 Mar 2014 17:31:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2014 17:31:58 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Alena.Prokharchyk@citrix.com designates 66.165.176.63 as permitted sender) Received: from [66.165.176.63] (HELO SMTP02.CITRIX.COM) (66.165.176.63) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2014 17:31:54 +0000 X-IronPort-AV: E=Sophos;i="4.97,586,1389744000"; d="scan'208";a="106484688" Received: from sjcpex01cl01.citrite.net ([10.216.14.143]) by FTLPIPO02.CITRIX.COM with ESMTP/TLS/AES128-SHA; 04 Mar 2014 17:31:13 +0000 Received: from SJCPEX01CL02.citrite.net ([169.254.2.201]) by SJCPEX01CL01.citrite.net ([10.216.14.143]) with mapi id 14.02.0342.004; Tue, 4 Mar 2014 09:31:12 -0800 From: Alena Prokharchyk To: Daan Hoogland CC: "dev@cloudstack.apache.org" , David Grizzanti Subject: Re: Review Request 17591: CLOUDSTACK-5872: Async response from addAccountToProject doesn't contain useful information Thread-Topic: Review Request 17591: CLOUDSTACK-5872: Async response from addAccountToProject doesn't contain useful information Thread-Index: AQHPHpQpc8Htq7uzvUiZFWVoRfFUIprP2KaAgAABWoCAAW/YgIAAGAyA Date: Tue, 4 Mar 2014 17:31:12 +0000 Message-ID: References: <20140131145138.21455.26939@reviews.apache.org> <20140303100339.10089.81898@reviews.apache.org> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.9.131030 x-originating-ip: [10.13.107.78] Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Daan, you can=B9t extend the response with more parameters as its a generic SuccessResponse used by many Apis, and you can=B9t add anything a particula= r call specific to that. I think we shouldn=B9t fix the bug at this point. You can always get the additional information you need by executing corresponding list* call. -Alena. On 3/4/14, 12:05 AM, "Daan Hoogland" wrote: >H Alena, > >You are right. I was under the impression that response format was >being extended. > >I saw you already reverted. If the response was extended with the >extra value it would be alright, would it? > >On Mon, Mar 3, 2014 at 7:06 PM, Alena Prokharchyk > wrote: >> Daan, this fix break API compatibility! All the customers using these >>API, >> will end up with broken code on their side. As the response format is >> changed. Can you please roll it back? >> >> Thanks, >> Alena. >> >> On 3/3/14, 2:03 AM, "daan Hoogland" wrote: >> >>> >>>----------------------------------------------------------- >>>This is an automatically generated e-mail. To reply, visit: >>>https://reviews.apache.org/r/17591/#review35953 >>>----------------------------------------------------------- >>> >>>Ship it! >>> >>> >>>ebcaec8632dbd92c071317f3190915244a287afb >>> >>>- daan Hoogland >>> >>> >>>On Jan. 31, 2014, 2:51 p.m., David Grizzanti wrote: >>>> >>>> ----------------------------------------------------------- >>>> This is an automatically generated e-mail. To reply, visit: >>>> https://reviews.apache.org/r/17591/ >>>> ----------------------------------------------------------- >>>> >>>> (Updated Jan. 31, 2014, 2:51 p.m.) >>>> >>>> >>>> Review request for cloudstack. >>>> >>>> >>>> Bugs: CLOUDSTACK-5872 >>>> https://issues.apache.org/jira/browse/CLOUDSTACK-5872 >>>> >>>> >>>> Repository: cloudstack-git >>>> >>>> >>>> Description >>>> ------- >>>> >>>> CLOUDSTACK-5872: Async response from addAccountToProject doesn't >>>>contain useful information >>>> >>>> Updated the following classes to return a project object after async >>>>jobs complete: >>>> api/src/com/cloud/projects/ProjectService.java | 6 ++-- >>>> .../user/account/AddAccountToProjectCmd.java | 7 +++-- >>>> .../user/account/DeleteAccountFromProjectCmd.java | 7 +++-- >>>> .../user/project/UpdateProjectInvitationCmd.java | 8 +++-- >>>> server/src/com/cloud/projects/ProjectManager.java | 2 +- >>>> .../src/com/cloud/projects/ProjectManagerImpl.java | 34 >>>>+++++++++++----------- >>>> .../com/cloud/projects/MockProjectManagerImpl.java | 16 +++++----- >>>> >>>> Previously these API commands only returned "success =3D> true" in the >>>>aysnc job result. Now it returns the project that a user was >>>>added/deleted to. >>>> >>>> >>>> Diffs >>>> ----- >>>> >>>> api/src/com/cloud/projects/ProjectService.java dc882ef >>>> >>>>api/src/org/apache/cloudstack/api/command/user/account/AddAccountToProj >>>>ec >>>>tCmd.java 36df579 >>>> >>>>api/src/org/apache/cloudstack/api/command/user/account/DeleteAccountFro >>>>mP >>>>rojectCmd.java f6aa36c >>>> >>>>api/src/org/apache/cloudstack/api/command/user/project/UpdateProjectInv >>>>it >>>>ationCmd.java dda7b54 >>>> server/src/com/cloud/projects/ProjectManager.java f568146 >>>> server/src/com/cloud/projects/ProjectManagerImpl.java 5a0ed1c >>>> server/test/com/cloud/projects/MockProjectManagerImpl.java dc377ff >>>> >>>> Diff: https://reviews.apache.org/r/17591/diff/ >>>> >>>> >>>> Testing >>>> ------- >>>> >>>> Testing done on master. >>>> >>>> >>>> Thanks, >>>> >>>> David Grizzanti >>>> >>>> >>> >> > > > >--=20 >Daan