Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 2831FE00DC9; Tue, 5 Jul 2016 08:40:27 -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 * [209.85.192.173 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-pf0-f173.google.com (mail-pf0-f173.google.com [209.85.192.173]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8FD2EE00D8F for ; Tue, 5 Jul 2016 08:40:24 -0700 (PDT) Received: by mail-pf0-f173.google.com with SMTP id i123so71132103pfg.0 for ; Tue, 05 Jul 2016 08:40:24 -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=3l93cOZIRDGPE2NdZFu4dRvy1zjzi7BijSlvAIYUXjI=; b=kXfF76n8Dh895b6VXqK6WlQ7UU1IFs8jukYwClAy/suT4eIo8O+tfEE9ThwtataKmi 6xXsIkYDOjGFR0j6zk6CSxsZRtawy31O1GUhNnWF4vjUT57qJcsUBJgPBkti+fAA9vTi Ls+h0/Ga/3A2eSn/CNf4qM4zp+NrwdHXb9th95WeEwMktMhEIIvDRHy318izC1H5Koxv ib4sydFRQPK9r4gsmL91/L1FJ5ah1lVsnemZjvKL6kRlioothvnD6nIik7ngpsaWGerU 4x82cL8ffhk6TzrZWBqIqr4N+uSTR0X85/nWKuEMnGI71pQt64Dk9r/jXXmqxIwKJw9k z+zQ== 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=3l93cOZIRDGPE2NdZFu4dRvy1zjzi7BijSlvAIYUXjI=; b=ZQQgq3+uCHQ2Ph3XCsmSOcnjpH3OUAfhzJEq134kh4cfJm+7bH4Jisibhz5hzcgH/t UqIK/Ok50qDZj4wsLqjlqusSKkTM90I45P3UrXYmcq+DNGueLLOi3OyPGkB6t3lJqRI9 /GaR1RiJtza4oTXCORPF4HNAD7F3Cuur6oFNsUoSjs6M0PegHr4ChE8BMPCGpoBhQgkl q5N3KTDfAeHuETIdwBvzfxAvrSek4QSXjOR3RI/12RriRLeU5FmrzCJlrPQGr/OBzR20 xrnQzq3uRK8NZcCEcA90ylgScvziS5OoFQeqxMV5P0khWvmU9kCZyRlR0rOj6+87lfPT A2gw== X-Gm-Message-State: ALyK8tIptw+d6iN54moWxPN6GAni35rqHfwdWZ0st/74zGNiUXBSzXMEFQobtp3e/eyWFN0g X-Received: by 10.98.32.148 with SMTP id m20mr32941586pfj.77.1467733223591; Tue, 05 Jul 2016 08:40:23 -0700 (PDT) Received: from orion.ger.corp.intel.com ([192.55.54.45]) by smtp.gmail.com with ESMTPSA id 203sm5961896pfz.35.2016.07.05.08.40.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Jul 2016 08:40:22 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Tue, 5 Jul 2016 16:40:08 +0100 Message-Id: <1467733217-3185-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH 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: Tue, 05 Jul 2016 15:40:27 -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 Some current patches on the mailing list will cause a conflict with this branch so I will almost certainly have to roll a v2 of this, but it can be reviewed. 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 | 71 +-- .../toaster/orm/management/commands/lsupdates.py | 289 +++++++++++- .../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 | 500 +++++---------------- bitbake/lib/toaster/orm/tests.py | 180 -------- .../fixtures/toastergui-unittest-data.xml | 60 +-- .../toaster/toastergui/templates/layerdetails.html | 6 +- bitbake/lib/toaster/toastergui/tests.py | 5 +- bitbake/lib/toaster/toastergui/views.py | 75 ++-- 13 files changed, 674 insertions(+), 735 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