Return-Path: X-Original-To: apmail-incubator-bloodhound-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-bloodhound-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93FEEEE5F for ; Mon, 14 Jan 2013 15:10:53 +0000 (UTC) Received: (qmail 62387 invoked by uid 500); 14 Jan 2013 15:10:53 -0000 Delivered-To: apmail-incubator-bloodhound-dev-archive@incubator.apache.org Received: (qmail 62150 invoked by uid 500); 14 Jan 2013 15:10:49 -0000 Mailing-List: contact bloodhound-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bloodhound-dev@incubator.apache.org Delivered-To: mailing list bloodhound-dev@incubator.apache.org Received: (qmail 62080 invoked by uid 99); 14 Jan 2013 15:10:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jan 2013 15:10:48 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of olemis@gmail.com designates 209.85.210.172 as permitted sender) Received: from [209.85.210.172] (HELO mail-ia0-f172.google.com) (209.85.210.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jan 2013 15:10:09 +0000 Received: by mail-ia0-f172.google.com with SMTP id u8so3728856iag.31 for ; Mon, 14 Jan 2013 07:09:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=2FptJ7rO+OdNPz59vJ5TAF8mFePtOcA13ut47Rq/HUI=; b=TTNm8GLf1NN4jpW9uhgRrMx5+UfvRJSFTf3O7CrT0Lgxw6ZpwxkfX1Kaic2s/OOxAr Lx2+SCO6pNBAK+svi10qjKcdvI0spaxeseJ0p2S2lGjAEYbCUNXi0qN8cD6nAReF8qqa kYIkz4w/RDRuICDv2ogMqlh+2rQoytNz7WRx1i7071izbUJlvyFB84zcWpUIy6UKdvFl ghh8fNxaUgNT64z6IiPBd/imyzBfmJ2FddhGMY/UU0aQy3vu6tWaD3ldOMaCshcEecxe kGzrzEK4RPsH/StUx0reLIMoqokHz2DMhSJSEXjLH8KfB9RTibkVkfaILyTD+f8TO8E+ qFqw== MIME-Version: 1.0 X-Received: by 10.50.217.227 with SMTP id pb3mr2219804igc.0.1358176188789; Mon, 14 Jan 2013 07:09:48 -0800 (PST) Received: by 10.50.1.44 with HTTP; Mon, 14 Jan 2013 07:09:48 -0800 (PST) In-Reply-To: <070.c3473d6147ba2cbe9e7f157e30c98a4a@incubator.apache.org> References: <055.55b84508f6fcc1a8cc545a03456faa21@incubator.apache.org> <070.c3473d6147ba2cbe9e7f157e30c98a4a@incubator.apache.org> Date: Mon, 14 Jan 2013 10:09:48 -0500 Message-ID: Subject: Re: [Apache Bloodhound] #115: Product-specific settings From: Olemis Lang To: bloodhound-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 1/14/13, Apache Bloodhound wrote: > #115: Product-specific settings > -------------------------+------------------------------------------------- > Reporter: olemis | Owner: gjm > Type: | Status: review > enhancement | Milestone: > Priority: major | Version: > Component: | Keywords: multiproduct environment > multiproduct | configuration database bep-0003 db-upgrade > Resolution: | model > -------------------------+------------------------------------------------- > > Comment (by jure): > > Replying to [comment:7 olemis]: > > [attachment:t115_r1431447_product_envs_bep3_p1.diff Attached patch] > implements a number of enhancements aimed at complying with bep:0003 > specification . This includes : > > > > - Type checking in product env initializer > > This tests parent against trac.env.Environment. After the hooks are in > place the proper type of the parent environment should be > multiproduct.env.Environment. > I kept trac.env.Environment because it's the common ancestor of both your class and trac.test.EnvironmentStub . > > I also spent some time to build [https://bitbucket.org/olemis > /bloodhound- > mq/src/t115_bep3_product_env/t115/t115_r1431447_product_envs_bep3_p1.diff?at=t115_bep3_product_env > another patch] rebasing product environments solution against > `bep_0003_,multiproduct` branch . > > > > Great, will try to commit the patch today as tests are passing after > r1432924 (see below). > Great ! I'll take a look and , if everything starts working on bep_0003_multiproduct branch then I won't post patches for trunk no more . > > {{{ > > #!sh > > > > $ python setup.py test -m tests.env > > [...] > > Testing env.get_known_users ... ERROR > > Testing env.get_version ... ERROR > > test_attr_forward_parent (tests.env.ProductEnvApiTestCase) ... ok > > test_typecheck (tests.env.ProductEnvApiTestCase) ... ERROR > > > > [...] > > > > ---------------------------------------------------------------------- > > Ran 4 tests in 7.610s > > > > FAILED (errors=3) > > > > }}} > > > > ... so even if solution works it is not quite ready to be committed in > that branch yet . > > Tests are now passing after r1432924 ... there was code in Product.insert > that would auto populate product tables (components, milestones, versions, > etc.) upon product insertion. This should actually be performed by a > higher level logic (admin interface for example). > we r almost there ... ;) -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: