Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 23C44EAB9 for ; Mon, 25 Feb 2013 15:50:35 +0000 (UTC) Received: (qmail 94649 invoked by uid 500); 25 Feb 2013 15:50:35 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 94488 invoked by uid 500); 25 Feb 2013 15:50:33 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 94472 invoked by uid 99); 25 Feb 2013 15:50:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 15:50:32 +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 josh.elser@gmail.com designates 209.85.213.44 as permitted sender) Received: from [209.85.213.44] (HELO mail-yh0-f44.google.com) (209.85.213.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2013 15:50:23 +0000 Received: by mail-yh0-f44.google.com with SMTP id q11so493814yhf.17 for ; Mon, 25 Feb 2013 07:50:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=NkPkmrWcuriB7cRvWsVUEYCtB+kostgaB2QTbJetn4k=; b=d+nfWoZfVr5wYqOG1WDnHDB6Vsdv5yMJnDL4R4KWyfSo2/hyHH3uX0I+52nM4Sccym /rtIZjpCkMqIy7cU8m6j8Ktpcpz8hmtQpboZ61i9oOOVlhriCOeWsyA+KC35mfjpu7fY OZXqKiRVhTxf0gbsp7FgmbqpwIHHn4o0d8h2SuANkOqrblUPrNG9rRVbKe7+XSd4mA65 ZBHST0RX3tpN66ZdjKwtOMYj3GvkqsDsvUBR2ZmscgSIsQ3+kOPIR7ZnMiIPRnSVhexD n/MjLw5vJ/Afnx7oKUWbTga6YkiH/1ZtK6f7JfbFoKNYxOnfqDJz/r24VIfX+7VEHoWX Kj6g== X-Received: by 10.101.151.8 with SMTP id d8mr2797799ano.16.1361807402693; Mon, 25 Feb 2013 07:50:02 -0800 (PST) Received: from rd6um-34105l.local ([144.51.26.21]) by mx.google.com with ESMTPS id j26sm14044132ani.6.2013.02.25.07.50.01 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Feb 2013 07:50:02 -0800 (PST) Message-ID: <512B8824.3060609@gmail.com> Date: Mon, 25 Feb 2013 10:49:56 -0500 From: Josh Elser User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: dev@accumulo.apache.org Subject: Re: svn commit: r1449573 - in /accumulo/branches/1.5/core/src: main/java/org/apache/accumulo/core/data/Key.java test/java/org/apache/accumulo/core/data/KeyTest.java References: <20130225005900.F053C23888E7@eris.apache.org> <512B8235.9020106@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Personally, I would argue that the assignee to the contributor on Jira is sufficient and is just as likely to be indexed by search engines, but I do think that the assignee attribute on the Jira issue is very important from a recognition standpoint. I will admit that I thought about adding Luke's name to the message and immediately thought, "his name is already on the ticket which is mentioned right there". No offense intended to Luke, I merely didn't think it mattered. If we want to make this the normal action when applying a patch, that's fine. It's not painful or anything to have the committer include the name in the message. On 2/25/13 10:33 AM, Keith Turner wrote: > On Mon, Feb 25, 2013 at 10:24 AM, Josh Elser wrote: >> I figured the reference to the ticket being assigned to the contributor was >> sufficient. > Someone would have to do the join. Automated web/svn indexing tools > will probably no do this join. If you were a contributor to another > project, would this matter to you? > >> >> On 2/25/13 10:11 AM, Keith Turner wrote: >>> On Sun, Feb 24, 2013 at 7:59 PM, wrote: >>>> Author: elserj >>>> Date: Mon Feb 25 00:59:00 2013 >>>> New Revision: 1449573 >>>> >>>> URL: http://svn.apache.org/r1449573 >>>> Log: >>>> ACCUMULO-498 Applying patch to retrieve ColumnVisibility from a Key as a >>>> ColumnVisibility instead of only a Text. >>> When applying a patch for someone else, I think we should include >>> their name in the svn commit msg. You can edit commit messages if >>> you agree :) >>> >>>> Modified: >>>> >>>> accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/data/Key.java >>>> >>>> accumulo/branches/1.5/core/src/test/java/org/apache/accumulo/core/data/KeyTest.java >>>> >>>> Modified: >>>> accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/data/Key.java >>>> URL: >>>> http://svn.apache.org/viewvc/accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/data/Key.java?rev=1449573&r1=1449572&r2=1449573&view=diff >>>> >>>> ============================================================================== >>>> --- >>>> accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/data/Key.java >>>> (original) >>>> +++ >>>> accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/data/Key.java >>>> Mon Feb 25 00:59:00 2013 >>>> @@ -478,6 +478,17 @@ public class Key implements WritableComp >>>> } >>>> >>>> /** >>>> + * This method creates a new ColumnVisibility representing the column >>>> visibility for this key >>>> + * >>>> + * WARNING: using this method may inhibit performance since a new >>>> ColumnVisibility object is created on every call. >>>> + * >>>> + * @return A new object representing the column visibility field >>>> + */ >>>> + public final ColumnVisibility getColumnVisibilityParsed() { >>>> + return new ColumnVisibility(colVisibility); >>>> + } >>>> + >>>> + /** >>>> * Sets this key's row, column family, column qualifier, column >>>> visibility, timestamp, and delete marker to be the same as another key's. >>>> */ >>>> public void set(Key k) { >>>> >>>> Modified: >>>> accumulo/branches/1.5/core/src/test/java/org/apache/accumulo/core/data/KeyTest.java >>>> URL: >>>> http://svn.apache.org/viewvc/accumulo/branches/1.5/core/src/test/java/org/apache/accumulo/core/data/KeyTest.java?rev=1449573&r1=1449572&r2=1449573&view=diff >>>> >>>> ============================================================================== >>>> --- >>>> accumulo/branches/1.5/core/src/test/java/org/apache/accumulo/core/data/KeyTest.java >>>> (original) >>>> +++ >>>> accumulo/branches/1.5/core/src/test/java/org/apache/accumulo/core/data/KeyTest.java >>>> Mon Feb 25 00:59:00 2013 >>>> @@ -18,6 +18,7 @@ package org.apache.accumulo.core.data; >>>> >>>> import junit.framework.TestCase; >>>> >>>> +import org.apache.accumulo.core.security.ColumnVisibility; >>>> import org.apache.hadoop.io.Text; >>>> >>>> public class KeyTest extends TestCase { >>>> @@ -97,4 +98,13 @@ public class KeyTest extends TestCase { >>>> Key k = new Key("r", "f", "q", "v"); >>>> >>>> assertEquals(k.followingKey(PartialKey.ROW_COLFAM_COLQUAL_COLVIS).toString(), >>>> "r f:q [v%00;] " + Long.MAX_VALUE + " false"); >>>> } >>>> + >>>> + public void testVisibilityGetters() { >>>> + Key k = new Key("r", "f", "q", "v1|(v2&v3)"); >>>> + >>>> + Text expression = k.getColumnVisibility(); >>>> + ColumnVisibility parsed = k.getColumnVisibilityParsed(); >>>> + >>>> + assertEquals(expression, new Text(parsed.getExpression())); >>>> + } >>>> } >>>> >>>>