Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 49947E00B3A; Tue, 8 Dec 2015 13:16:38 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.192.178 listed in list.dnswl.org] Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C27DCE0070F for ; Tue, 8 Dec 2015 13:16:28 -0800 (PST) Received: by pfbg73 with SMTP id g73so18341753pfb.1 for ; Tue, 08 Dec 2015 13:16:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=JUJuT2s5m+qdF3dIbexJUq2cbr9zn6VBGDvQJy1uda0=; b=ZDstBdj2GO0/f8eJBmf7wsAgCzY/ANzUyJSm1YoTvc2bitpxLowsPGNNoXFj0f6+KK xXNGyO9Qf1xTi5ZNCA2vfPn6Jj0xwFdiGWo21X2qK9HsrYNQHeSceYLGZFVkfsf6yjhE PB3hIgDgJrotoQ/dZfr0//qkEMPzjEKzJ02MTBxw4otI8ym+AV1iNGzkyRDdzmUijNPd 8OW7MFCXIeifQZKrGjbAEgU18mEyYiOzgRt9N5RQ9qr7HrMsyf47lgWwOEISuYtbOlHx bS+Xs9v5K0aoK3lGCcESEYWWrzTO5Bfi2NBXpo5nxX9W78Hn4GV1zOT1D21cUKhGwTiO oUgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=JUJuT2s5m+qdF3dIbexJUq2cbr9zn6VBGDvQJy1uda0=; b=Eg9D3t2kcaYMgt3y2K0umJ6FBo2GD8HLQ88dPPfVxnUt663K3oZ8aOYlZPk8CYF9er wlNAaB/UbKzUUsmcLpPcYouUe/UYPv/kQsSXt/rkMUrxQRxhyWIB7VvEbTvscHIgQt4b bUizZLAcrhmYdKSmK91sX5H4ROuiMuuEzmmVQ892rn0SHK3L5EobTT3PtPl1y1hWE7wC bzgPci+iVTPVwz21Ke9DBn0MQwLirvIjEY7El7BVTWZk8V14pBkhLi09pDvvzOt/8rzk G1uqfGUcBDe1OGbObkUAr3v6H7M4rPd1tIUPWhtiUz7BuxCGAZW8bSNmI2nK+UtTtExd 04NA== X-Gm-Message-State: ALoCoQm8Fi8BzFuU/kapJrsPdlohhqcKSb9jkU2Gn6dGCxX8NDbq8UW+CTlRa5bXz+zPq6wgGdZrVBpaHFgILTaIGHy4COheRQ== X-Received: by 10.98.73.10 with SMTP id w10mr7994039pfa.164.1449609388603; Tue, 08 Dec 2015 13:16:28 -0800 (PST) Received: from draco.ger.corp.intel.com ([192.55.54.40]) by smtp.gmail.com with ESMTPSA id v64sm6675766pfi.50.2015.12.08.13.16.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Dec 2015 13:16:27 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Tue, 8 Dec 2015 21:15:46 +0000 Message-Id: <1449609380-11073-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.4 Subject: [PATCH 00/34] michaelw/toaster/ic-6 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: Tue, 08 Dec 2015 21:16:38 -0000 This is the work to introduce the image customisation feature to Toaster. As a version 1 this allows basic adding and removing packages of a customised version of a pre-existing image recipe. To enable this feature run toaster with the environment var set CUSTOM_IMAGE=1 http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=michaelw/toaster/ic-6 Michael Wood (34): toaster: localhostbecontroller CustomRecipe now base_recipe is Recipe toaster: models fall back to a sensible string for no vcs reference toaster: ToasterTables simplify filter function move common part to widget toaster: tablejs Add an event handler to manually trigger a data reload toaster: orm Add sum of dependencies size function to PackageDependencyManager toaster: orm make CustomImageRecipe inherit from Recipe toaster: orm: Add db migration for new CustomImageRecipe inheritance change toaster: orm Add ProjectPackage table toaster: orm: Add db migration for new ProjectPackages table toaster: buildinfohelper Add the concept of ProjectPackages toaster: orm add CustomImageRecipe generate contents function toaster: move CustomImageRecipe generation to API entry point toaster: views Add view to download custom recipe toaster: tables Add table for Packages and update SelectPackagesTable toaster: Continue front end features to custom image recipe page. toaster: newcustomimage Move modal dialog out of newcustomimage template toaster: Add recipe details page toaster: toastertable remove title from Show all in table toaster: views xhr_customrecipe_packages clean up API toaster: toastergui tests Update to reflect changes to CustomImageRecipe toaster: toastergui tests Add unit test for download custom recipe toaster: orm get_project_layer_versions to return layer_version objects toaster: orm Add convenience method to get all pkgs in a CustomImageRecipe toaster: libtoaster Add createCustomRecipe method toaster: newcustomimage_modal use libtoaster method for new CustomRecipe toaster: tables add recipe download link to CustomImagesTable toaster: tables Change SelectPackagesTable to use ProjectPackage toaster: API allow CustomImageRecipe to be updated after creation toaster: xhr_customrecipe_id change to use ProjectPackage toaster: xhr_customrecipe_packages add GET info for package response toaster: customrecipe Add further front end features using new API toaster: toastergui tests Update package test to use ProjectPackage toaster: tables SelectPackagesTable rename recipe_id to custrecipeid toaster: toastergui tests Add addtional data to the setUp for new tables bitbake/lib/bb/ui/buildinfohelper.py | 113 +++++- .../toaster/bldcontrol/localhostbecontroller.py | 29 +- ...del_field_customimagerecipe_name__del_field_.py | 433 +++++++++++++++++++++ ...erecipe_name__del_field_customimagerecipe_id.py | 379 ++++++++++++++++++ bitbake/lib/toaster/orm/models.py | 95 ++++- .../toaster/toastergui/static/js/customrecipe.js | 176 ++++++++- .../lib/toaster/toastergui/static/js/libtoaster.js | 27 ++ .../toaster/toastergui/static/js/newcustomimage.js | 49 --- .../toastergui/static/js/newcustomimage_modal.js | 28 ++ .../toaster/toastergui/static/js/recipedetails.js | 52 +++ bitbake/lib/toaster/toastergui/static/js/table.js | 7 + bitbake/lib/toaster/toastergui/tables.py | 239 +++++++++--- bitbake/lib/toaster/toastergui/templates/base.html | 1 + .../toaster/toastergui/templates/customrecipe.html | 186 ++++++--- .../toastergui/templates/newcustomimage.html | 44 +-- .../toastergui/templates/newcustomimage_modal.html | 33 ++ .../toastergui/templates/pkg_add_rm_btn.html | 35 +- .../toastergui/templates/recipedetails.html | 180 +++++++++ .../snippets/pkg_dependencies_popover.html | 14 + .../toaster/toastergui/templates/toastertable.html | 2 +- bitbake/lib/toaster/toastergui/tests.py | 145 +++++-- bitbake/lib/toaster/toastergui/urls.py | 17 +- bitbake/lib/toaster/toastergui/views.py | 262 ++++++++++--- bitbake/lib/toaster/toastergui/widgets.py | 5 +- 24 files changed, 2171 insertions(+), 380 deletions(-) create mode 100644 bitbake/lib/toaster/orm/migrations/0029_auto__add_projectpackage__del_field_customimagerecipe_name__del_field_.py create mode 100644 bitbake/lib/toaster/orm/migrations/0029_auto__del_field_customimagerecipe_name__del_field_customimagerecipe_id.py delete mode 100644 bitbake/lib/toaster/toastergui/static/js/newcustomimage.js create mode 100644 bitbake/lib/toaster/toastergui/static/js/newcustomimage_modal.js create mode 100644 bitbake/lib/toaster/toastergui/static/js/recipedetails.js create mode 100644 bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html create mode 100644 bitbake/lib/toaster/toastergui/templates/recipedetails.html create mode 100644 bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html -- 2.1.4