Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3CADA200CB5 for ; Tue, 27 Jun 2017 12:59:56 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 38292160BE9; Tue, 27 Jun 2017 10:59:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8786F160BDC for ; Tue, 27 Jun 2017 12:59:55 +0200 (CEST) Received: (qmail 61160 invoked by uid 500); 27 Jun 2017 10:59:54 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 61127 invoked by uid 99); 27 Jun 2017 10:59:54 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jun 2017 10:59:54 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5A977DFD5A; Tue, 27 Jun 2017 10:59:53 +0000 (UTC) From: geomacy To: dev@brooklyn.apache.org Reply-To: dev@brooklyn.apache.org References: In-Reply-To: Subject: [GitHub] brooklyn-docs pull request #198: [WIP] Versioning Content-Type: text/plain Message-Id: <20170627105953.5A977DFD5A@git1-us-west.apache.org> Date: Tue, 27 Jun 2017 10:59:53 +0000 (UTC) archived-at: Tue, 27 Jun 2017 10:59:56 -0000 Github user geomacy commented on a diff in the pull request: https://github.com/apache/brooklyn-docs/pull/198#discussion_r124210641 --- Diff: guide/blueprints/catalog/versioning.md --- @@ -3,18 +3,130 @@ title: Versioning layout: website-normal --- -### Versioning +Brooklyn supports multiple versions of a type to be installed and used at the same time. +Versions are a first-class concept and are often prominently displayed in the UI. -Version numbers follow the OSGi convention. This can have a major, minor, micro and qualifier part. -For example, `1.0`. `1.0.1` or `1.0.1-20150101`. +In order to do this, Brooklyn requires that the `id:version` string be unique across the catalog: +it is normally an error to add a type if a type with the same `id:version` is present. +The exceptions to this are if the definition is identical, or if the `version` is noted as a `SNAPSHOT`. +In extraordinary circumstances it may be appropriate to delete a given `id:version` definition +and then add the new one, but this is discouraged and the usual practice is to: -The combination of `id:version` strings must be unique across the catalog. -It is an error to deploy the same version of an existing item: -to update a blueprint, it is recommended to increase its version number; -alternatively in some cases it is permitted to delete an `id:version` instance -and then re-deploy. -If no version is specified, re-deploying will automatically -increment an internal version number for the catalog item. +* Use a `-SNAPSHOT` qualifer suffix on your version when developing +* Increase the version number when making a change to a non-SNAPSHOT type + +When adding to the catalog, if no version is supplied, Brooklyn may automatically +increment the version number for the catalog item. + +When deploying a blueprint, if a version number is not specified Brooklyn will typically use +the highest ordered version (see "Ordering" below) in the catalog for the referenced type, +and will thereafter lock the use of that version in that blueprint. +(An exception is where types are co-bundled or an explicit search path is defined; +in the context of evaluating one type, Brooklyn may prefer versions in the same bundle or on the search path.) --- End diff -- "may" again --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---