Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D5114E00C40; Thu, 7 Jul 2016 02:19:46 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.88 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8A48AE00C1D for ; Thu, 7 Jul 2016 02:19:42 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 07 Jul 2016 02:19:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,324,1464678000"; d="scan'208";a="1017196298" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by fmsmga002.fm.intel.com with ESMTP; 07 Jul 2016 02:19:42 -0700 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.97]) by IRSMSX106.ger.corp.intel.com ([169.254.8.145]) with mapi id 14.03.0248.002; Thu, 7 Jul 2016 10:19:39 +0100 From: "Barros Pena, Belen" To: "Wood, Michael G" , "Smith, Elliot" Thread-Topic: [Toaster] [PATCH 0/4] Add delete layer and fix layer rev saving Thread-Index: AQHR1jaZn8Onzn481UuwlII9a+eFsKALZnOAgAABlQCAAAncjv//+XiAgAFJlIA= Date: Thu, 7 Jul 2016 09:19:39 +0000 Message-ID: References: <1467665785-13108-1-git-send-email-michael.g.wood@intel.com> <577D0898.9010807@intel.com> <577D1841.8000505@intel.com> In-Reply-To: <577D1841.8000505@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.5.160527 x-originating-ip: [10.252.13.130] MIME-Version: 1.0 Cc: "toaster@yoctoproject.org" Subject: Re: [PATCH 0/4] Add delete layer and fix layer rev saving X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2016 09:19:46 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <446DD5C43A93784D915FA55C385AE7B1@intel.com> Content-Transfer-Encoding: quoted-printable On 06/07/2016 15:40, "Michael Wood" wrote: >On 06/07/16 15:02, Smith, Elliot wrote: >> On 6 July 2016 at 14:33, Michael Wood > > wrote: >> >> On 06/07/16 14:28, Barros Pena, Belen wrote: >> >> >> On 06/07/2016 14:22, "toaster-bounces@yoctoproject.org >> on behalf of Barros >> Pena, Belen" > on behalf of >> belen.barros.pena@intel.com >> > wrote: >> >> >> On 04/07/2016 21:56, "toaster-bounces@yoctoproject.org >> on behalf of >> Michael Wood" > on behalf of >> michael.g.wood@intel.com >> > wrote: >> >> Michael Wood (4): >> toaster: layerdetails api Fix saving of git revision >> of a layer >> toaster: api Add util function for returning the >> error response >> toaster: add Layer delete front end feature to >> layerdetails >> toaster: tests Add selenium test for layerdetails page >> >> >> >> A couple of comments so far: >> >> 1. I think I'm right in saying that "deleting" a layer permanently >> removes it from the database. I think the confirmation dialog should >> make it clear that this is what you're doing ("This layer won't be >> available to other projects" or similar), as it's not obvious that >> remove and delete are different operations. (I didn't get the >> distinction to start with.) > >The imported layers are project specific so it is deleted from the >project, and also deleted from being added to your project if >applicable. I'll leave this in Belen's corner though. I agree the message content should be improved, but I can look into it after this is merged. Let's not hold this: it's good, useful stuff. Thanks! Bel=E9n > > >> >> 2. I see the "delete" link for all layers in the layer detail page, >> not just for layers which I've imported. These layers can't be >> deleted, so the dialog box doesn't change when you click "OK", as an >> error is returned by the API. >> > >Ah thanks good catch, will roll a v2. > >> 3. The inline editing of layer dependencies doesn't quite feel right >> to me: it's not 100% clear you're going to be adding layer >> dependencies by using that box, you could just be adding a new layer. >> I'd change the placeholder text to something like "Type the name of a >> layer dependency to add" (ideally, something less clunky than that), >> or perhaps change the button text to "Add layer dependency". >> > >As this is the existing behaviour (for many releases) you would have to >open a bug about this as it's out of the scope of this patch set. > >Thanks > >Michael > >> Elliot >> >> The fix to the revision changes for imported layers (8952) >> works like a >> charm: I can edit all the layer details now. I can also >> delete an imported >> layer \0/, but when I get redirected to the project >> configuration page >> after clicking the 'delete' button no notification >> appears, so I am left >> wondering if the layer was deleted or not. >> >> Ignore me: browser cache playing tricks. But the question mark >> really is >> missing ;) >> >> >> OK, I fixed the missing question mark in the branch, so if who >> ever is reviewing pulls from the branch then it should be there. >> >> >> >> I also spotted that the question in the delete >> confirmation dialog is >> missing the question mark. >> >> Thanks!! >> >> Bel=E9n >> >> PS: I hate delete confirmation dialogs ... For the record ;) >> >> .../tests/browser/test_layerdetails_page.py | 190 >> +++++++++++++++++++++ >> bitbake/lib/toaster/toastergui/api.py | 121 >> +++++++++++-- >> .../toaster/toastergui/static/js/layerdetails.js | >> 20 +++ >> .../toaster/toastergui/static/js/projectpage.js | 18 >>++ >> .../toaster/toastergui/templates/layerdetails.html | >> 18 +- >> bitbake/lib/toaster/toastergui/urls.py | 5 +- >> bitbake/lib/toaster/toastergui/views.py | 43 ----- >> 7 files changed, 360 insertions(+), 55 deletions(-) >> create mode 100644 >> =20 >>bitbake/lib/toaster/tests/browser/test_layerdetails_page.py >> >> -- >> 2.7.4 >> >> -- >> _______________________________________________ >> toaster mailing list >> toaster@yoctoproject.org >> >> https://lists.yoctoproject.org/listinfo/toaster >> >> --=20 >> _______________________________________________ >> toaster mailing list >> toaster@yoctoproject.org >> https://lists.yoctoproject.org/listinfo/toaster >> >> >> --=20 >> _______________________________________________ >> toaster mailing list >> toaster@yoctoproject.org >> https://lists.yoctoproject.org/listinfo/toaster >> >> >> >> >> --=20 >> Elliot Smith >> Software Engineer >> Intel Open Source Technology Centre >> >> --------------------------------------------------------------------- >> Intel Corporation (UK) Limited >> Registered No. 1134945 (England) >> Registered Office: Pipers Way, Swindon SN3 1RJ >> VAT No: 860 2173 47 >> >> This e-mail and any attachments may contain confidential material for >> the sole use of the intended recipient(s). Any review or distribution >> by others is strictly prohibited. If you are not the intended >> recipient, please contact the sender and delete all copies. >> >