Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 60ABBE00E4A; Thu, 7 Jul 2016 10:22:04 -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=-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: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [74.125.82.52 listed in list.dnswl.org] * -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 Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E2109E00E43 for ; Thu, 7 Jul 2016 10:22:00 -0700 (PDT) Received: by mail-wm0-f52.google.com with SMTP id f126so219042408wma.1 for ; Thu, 07 Jul 2016 10:22:00 -0700 (PDT) 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=amu6NNn+MCP1Ru1zq7UzzJOfnOQmFOIwx00QgTddGgk=; b=zl+6X2k3x5sVxuRYkEb7YKpvcOYOzcb2BeO3M7a2tqzcJsErYxJEhCLyKGpZjBN5Cn NglkDoiVl7IFORwuEzoxgMDfo2t5dlm8zlbUr/OtJ+OkDtMTiMGUTENyYqxLTVQYf7Uo VmaSZkFL/0ldGLo1lJjuzqtxU/GbEQD3EbEThjPx8T9lO+eqcIMHUQVylelJ8J3U93Y+ steUvjCgWWCNk3+EfD7EJMVuKgnhXQCQRwN0deyUCqsBgoju4Obi6A1a+urjAS+zBsNh s/Cz4/gCTZsLh659BFpoi6oH5c3b6SGNZI+2abdbn0fJRWBO/fV+9k4VaFLD64AI9VTQ 9LeQ== 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=amu6NNn+MCP1Ru1zq7UzzJOfnOQmFOIwx00QgTddGgk=; b=hDSxeiG97/ehzXuxBME51xDZhLTTNKDCu0Okvt309XtaWICucEbRt31xV1d9DvsxcO JCGnccq+uBQjbQq5XQpaXZhbn8pzDcjbk9+q4lMoUhw4W+F9BburS4E6n0PKcj/DnFXf BaFpniGg/urkWRgz/OHzmYnX56+wxzHbg2N3s3Y0INWdtCeLtrEj1CskXwvzuOLHjn12 GI9uR5/aNjUUIIYjerVdOqzpG0NiT34gihGpLlD8TK0P5QFheMLtQlZ5Qokaer4IEGme OMQKVPEO27+ajl5etg4Xyh/2gcTVjhu71PXcGy8HGQfb4LWj1RNnZDK5dfZ+Y+lzB2hF ddmw== X-Gm-Message-State: ALyK8tIv5kxE3XFDQE4Eqr13N3RUGOdc7SjwANbh+2uzp4iqkCNnSIE0fWxi9eZBFeguDGh3 X-Received: by 10.28.46.22 with SMTP id u22mr3792962wmu.85.1467912119337; Thu, 07 Jul 2016 10:21:59 -0700 (PDT) Received: from localhost.localdomain (host86-169-85-169.range86-169.btcentralplus.com. [86.169.85.169]) by smtp.gmail.com with ESMTPSA id e69sm2059408wma.2.2016.07.07.10.21.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jul 2016 10:21:58 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 7 Jul 2016 18:21:39 +0100 Message-Id: <1467912108-24659-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH v2 0/9] database clean ups 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 17:22:04 -0000 Preparation work for fixing a number of issues with adding layers (non-git and otherwise) and creating initial configuration by cleaning up some of the redundant/awkward/complex bits of the database. This branch is available on poky-contrib michaelw/toaster/database_clean_ups changes in v2 - Removed redundant tests and functions from loadconf - Fixed issue with non-showing of layerdetails sidebar - Rebased on current toaster-next and fixed up conflicts - Handle the case where the layerindex update finds multiples of the same layer (unique layers are softly enforced so an old database may have duplicates for example) Michael Wood (9): toaster: loadconf remove Loading LayerSources toaster: bldcollector admin Remove LayerSourceAdmin toaster: models Remove LayerSource models and replace with enum toaster: lsupdates Add layerindex fetcher toaster: Replace references to LayerSource models toaster: tests: Remove references to LayerSource model toaster: lsupdates Add progress information and clean up logging toaster: orm Remove the layerindex specific up_branch fields toaster: admin Add Layer_Version to the admin-able models bitbake/lib/bb/ui/buildinfohelper.py | 6 +- bitbake/lib/toaster/bldcollector/admin.py | 22 +- .../bldcontrol/management/commands/loadconf.py | 89 +--- bitbake/lib/toaster/bldcontrol/tests.py | 19 - .../toaster/orm/management/commands/lsupdates.py | 295 +++++++++++- .../0008_delete_layer_source_references.py | 118 +++++ .../orm/migrations/0009_delete_layersource.py | 17 + .../0010_use_release_instead_of_up_branch.py | 60 +++ bitbake/lib/toaster/orm/models.py | 506 +++++---------------- bitbake/lib/toaster/orm/tests.py | 180 -------- .../tests/browser/test_layerdetails_page.py | 5 +- bitbake/lib/toaster/toastergui/api.py | 6 +- .../fixtures/toastergui-unittest-data.xml | 60 +-- .../toaster/toastergui/static/js/layerdetails.js | 2 +- .../toaster/toastergui/templates/layerdetails.html | 16 +- bitbake/lib/toaster/toastergui/tests.py | 5 +- bitbake/lib/toaster/toastergui/views.py | 64 ++- 17 files changed, 686 insertions(+), 784 deletions(-) create mode 100644 bitbake/lib/toaster/orm/migrations/0008_delete_layer_source_references.py create mode 100644 bitbake/lib/toaster/orm/migrations/0009_delete_layersource.py create mode 100644 bitbake/lib/toaster/orm/migrations/0010_use_release_instead_of_up_branch.py delete mode 100644 bitbake/lib/toaster/orm/tests.py -- 2.7.4