Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 29987E00CA5; Wed, 2 Sep 2015 01:57:19 -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.93 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 312F6E006EA for ; Wed, 2 Sep 2015 01:57:12 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 02 Sep 2015 01:57:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,452,1437462000"; d="scan'208";a="796529073" Received: from gionescx-mobl1.ger.corp.intel.com (HELO lp.ger.corp.intel.com) ([10.252.26.81]) by fmsmga002.fm.intel.com with ESMTP; 02 Sep 2015 01:57:00 -0700 From: Elliot Smith To: toaster@yoctoproject.org Date: Wed, 2 Sep 2015 09:56:48 +0100 Message-Id: <1441184214-8074-1-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [review-request][PATCH 0/6] [v2] Fix handling of "default" project 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: Wed, 02 Sep 2015 08:57:19 -0000 This fixes how we handle the default project used to house command line builds. It originally started from a bug encountered when using MySQL for the db back-end, but fixing that revealed some other issues which needed to be resolved on top. This is version 2, as the previous patch set incorrectly handled adding the is_default field to existing projects when using SQLite (due to a bug in South). Changes since poky master 22afc047dd1b8f83e56c4a9862710776c509e3c5 are in git://git.yoctoproject.org/poky-contrib, elliot/toaster/mysql-migrations http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=elliot/toaster/mysql-migrations Related bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=7932 Elliot Smith (6): toaster: Make 0021 migration compatible with MySQL toaster: Improve how default project is identified and fetched toaster: Only redirect to projects page if user has added projects toaster: Exclude default project unless it has builds toaster: Fix test for projects page JSON toaster: Add tests for pages which show the default project bitbake/lib/bb/ui/buildinfohelper.py | 3 +- ...ect__chg_field_project_bitbake_version__chg_.py | 4 +- .../0025_auto__add_field_project_is_default.py | 346 +++++++++++++++++++ .../orm/migrations/0026_set_default_project.py | 374 +++++++++++++++++++++ bitbake/lib/toaster/orm/models.py | 18 +- bitbake/lib/toaster/toastergui/tests.py | 124 ++++++- bitbake/lib/toaster/toastergui/views.py | 14 +- 7 files changed, 870 insertions(+), 13 deletions(-) create mode 100644 bitbake/lib/toaster/orm/migrations/0025_auto__add_field_project_is_default.py create mode 100644 bitbake/lib/toaster/orm/migrations/0026_set_default_project.py -- Elliot Smith Software Engineer Intel OTC --------------------------------------------------------------------- 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.