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 68466E74A for ; Fri, 22 Feb 2013 02:03:46 +0000 (UTC) Received: (qmail 62895 invoked by uid 500); 22 Feb 2013 02:03:46 -0000 Delivered-To: apmail-incubator-bloodhound-dev-archive@incubator.apache.org Received: (qmail 62860 invoked by uid 500); 22 Feb 2013 02:03:45 -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 62852 invoked by uid 99); 22 Feb 2013 02:03:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2013 02:03:45 +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 brane@wandisco.com designates 209.85.214.42 as permitted sender) Received: from [209.85.214.42] (HELO mail-bk0-f42.google.com) (209.85.214.42) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2013 02:03:40 +0000 Received: by mail-bk0-f42.google.com with SMTP id jk7so73667bkc.29 for ; Thu, 21 Feb 2013 18:03:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:organization:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding:x-gm-message-state; bh=xvmpEnGCMhjkRG3XIffdlHvaJ86ddQhWRAUsx2P/4zs=; b=JCWoxtHBkUyxa8Zz6VZjyrMPbBkNC/QGUo7QeiAZ6J4W1JHxPrIYwcgVY1B59I7mt2 aNVKOR4qbE5uQ1RB5IjnbM73KRBVy0Nutp3cIMZZraYnIZjKIX8BAawSIQzzKNEk/xWV 3eMI1Z1dXUIjKNT0XIoNSpLgBAdcd4KgD7cJzoAxjVIt1P2WWS+Z64ar/Fe4tnJRVAMo LjGseCIHKxMb+XW017Y3jnQGV6uLwGuoQVRXW4hzajYaVvVMXyGkXcdq18v90iPr00bh qVI3Z/D4P8gAS/iQRF54lP6boP0lfyWMxJxFXbSWoHc8Q1oos2f6qVq8xatx6t5vhBgC Y10Q== X-Received: by 10.204.150.146 with SMTP id y18mr67555bkv.126.1361498598091; Thu, 21 Feb 2013 18:03:18 -0800 (PST) Received: from zulu.local (cpe-62-84-225-61.dynamic.amis.net. [62.84.225.61]) by mx.google.com with ESMTPS id gy3sm122516bkc.16.2013.02.21.18.03.16 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Feb 2013 18:03:17 -0800 (PST) Message-ID: <5126D1E2.8030708@wandisco.com> Date: Fri, 22 Feb 2013 03:03:14 +0100 From: =?UTF-8?B?QnJhbmtvIMSMaWJlag==?= Organization: WANdisco User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: bloodhound-dev@incubator.apache.org Subject: Re: [BEP-0003] Database upgrade to multi-product (Was: Re: [Apache Bloodhound] #406: Database upgrade to multiproduct) References: <053.51bf3585855e4439e313b2cfef93bcf0@incubator.apache.org> <5124B56F.3060505@digiverse.si> <5125FB19.5030603@digiverse.si> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQlP9j0uC2lRW1B+VA2chnGSqPy6tA9nYRiZyjV6b61OS76TiNf3m2Q6f28UxmR7e4OPXQrR X-Virus-Checked: Checked by ClamAV on apache.org On 21.02.2013 18:05, Olemis Lang wrote: > On 2/21/13, Jure Zitnik wrote: >> On 2/20/13 5:21 PM, Olemis Lang wrote: >>> On 2/20/13, Andrej Golcov wrote: > [...] >>>> My suggestion is to keep things simple here: if there is already >>>> product named "Default', let's assign global tickets to this product. >>>> There should be reason why this product was called "Default" :) >>>> >>> -1 ... IMO we the prefix for the global environment should be an empty >>> string (i.e. '') or NULL (/me slightly in favor of the former) . That >>> will allow us to reserve special behavior for that prefix value (if >>> needed) and will not clash with any other valid product prefix since >>> it's a required field in create product web form (... admin command , >>> ...) >>> >> Just to clarify, the prefix of the 'global environment' is an empty >> string (''). This will, at the moment, only be used for permissions. >> > Yes , understood . > ;) > >> The 'default' prefix (or 'def') is used for a product to which all the >> tickets that don't have product assigned are migrated to (during the >> database upgrade process). The product itself is automatically added >> during the upgrade/migration process. >> > That's kind of what I was meaning in my reply . > > 1. Consider ticket without product before migration to be > tickets filed against the global environment . > 2. Use gobal env just like any other product env with > prefix = '' , not just permissions > 3. No need to create 'default' product while on upgrade > > PS: In the migration process we should also replicate (i.e. in DB) or > inherit product configs from a single file . I advocate for the later > . I have to say that for once I completely agree with Olemis. NULL table column, and empty UI prefix equals "it all looks exactly like it used to before the migration" and it also can't collide with any existing product names or prefixes. Furthermore, doing it this way, if a user installs Bloodhound but doesn't want to bother with product namespaces, everything will Just Work. -- Brane -- Branko Čibej Director of Subversion | WANdisco | www.wandisco.com