<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1453: Flexible tag names</title>
    <link>http://localhost/ticket/1453</link>
    <description>&lt;p&gt;
Allowing more flexible tag names:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;allowing spaces
&lt;/li&gt;&lt;li&gt;allow capital letters (search is case in-sensitive)
&lt;/li&gt;&lt;li&gt;allow all punctuation except for commas and double-quotes '"'
&lt;/li&gt;&lt;li&gt;allow unicode
&lt;/li&gt;&lt;li&gt;commas delimit tag names in the package create/edit form
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
Effects:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;package creation/edit form.
&lt;/li&gt;&lt;li&gt;/tag/{tagname} uri
&lt;/li&gt;&lt;li&gt;search action
&lt;/li&gt;&lt;li&gt;api controller (search/package-create/edit)
&lt;/li&gt;&lt;li&gt;web controller (search/package-create/edit)
&lt;/li&gt;&lt;li&gt;search api documentation
&lt;/li&gt;&lt;li&gt;autocomplete for tag names
&lt;/li&gt;&lt;/ul&gt;</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/1453</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>icmurray</dc:creator>

      <pubDate>Tue, 08 Nov 2011 17:43:12 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost/ticket/1453#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1453#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1453?action=diff&amp;amp;version=1"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>icmurray</dc:creator>

      <pubDate>Thu, 10 Nov 2011 17:49:46 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost/ticket/1453#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/1453#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1453?action=diff&amp;amp;version=2"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>icmurray</dc:creator>

      <pubDate>Thu, 10 Nov 2011 17:59:15 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1453#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/1453#comment:3</guid>
      <description>
        &lt;p&gt;
Added the restriction of not allowing the double quote character, '"', as well as commas as this simplifies any use of quoting multiple words to mean a single tag name.
&lt;/p&gt;
&lt;p&gt;
For example, this simplifies the use of quotes in identifying tags in internal markdown links:
&lt;/p&gt;
&lt;pre class="wiki"&gt;tag:"multiple word tag name"
&lt;/pre&gt;&lt;p&gt;
A possible solution is to allowing escaping, such as:
&lt;/p&gt;
&lt;pre class="wiki"&gt;tag:"something about \"Ian\""
&lt;/pre&gt;&lt;p&gt;
But I think the compromise is a better solution than allowing the escaping as it's simpler, and this may crop up elsewhere.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>icmurray</dc:creator>

      <pubDate>Thu, 17 Nov 2011 16:47:32 GMT</pubDate>
      <title>status changed</title>
      <link>http://localhost/ticket/1453#comment:4</link>
      <guid isPermaLink="false">http://localhost/ticket/1453#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;accepted&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The allowable characters in a tagname has changed to "unicode alphanmeric plus simple punctuation".  This means:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;alphanumeric (inc. foreign characters)
&lt;/li&gt;&lt;li&gt;[ .-_]
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
The completed feature is in the &lt;a class="ext-link" href="https://github.com/okfn/ckan/tree/feature-1453-flexible-tag-names"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;feature-1453-flexible-tag-names branch&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
Awaiting a code review.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>icmurray</dc:creator>

      <pubDate>Fri, 18 Nov 2011 16:42:09 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost/ticket/1453#comment:5</link>
      <guid isPermaLink="false">http://localhost/ticket/1453#comment:5</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/1453?action=diff&amp;amp;version=5"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Fri, 18 Nov 2011 16:52:58 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1453#comment:6</link>
      <guid isPermaLink="false">http://localhost/ticket/1453#comment:6</guid>
      <description>
        &lt;p&gt;
Code review:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;basically - really excellent code and very thorough :-)
&lt;/li&gt;&lt;li&gt;links should have %20 rather than spaces (tests/misc/test_format_text.py:61)
&lt;/li&gt;&lt;li&gt;also check unicode chars encoding in urls (tests/misc/test_format_text.py:115)
&lt;/li&gt;&lt;li&gt;also check searching for the tag with this encoding (ckan/tests/functional/api/model/test_tag.py:35)
&lt;/li&gt;&lt;li&gt;we follow the PEP8 coding style which I interpret to mean not having blank lines after a function definition. But whichever, we're not consistent from file to file, but we should be within each file. e.g. ckan/tests/forms/test_package.py:12.
&lt;/li&gt;&lt;li&gt;moo package problem - need to ensure test works on its own and when run as part of the suite, so independent of whether moo exists. tests/functional/api/test_action.py:
&lt;/li&gt;&lt;li&gt;best to make tag search case insensitive - see ckan/tests/functional/api/model
&lt;/li&gt;&lt;li&gt;It's worth keeping the old test in addition to your modified one - because query for just {q:&lt;em&gt;} will return both packages too. ckan/tests/functional/api/test_package_search.py:203
&lt;/em&gt;&lt;/li&gt;&lt;li&gt;Let's add an example of tag search with quotes in /doc/api.rst:337
&lt;/li&gt;&lt;li&gt;Please put imports at the top of the file, unless there's a good reason ckan/tests/functional/api/test_package_search.py:296
&lt;/li&gt;&lt;li&gt;Can you not the old test any more? It seems sufficiently to the test you changed it to, so can we include both? ckan/tests/functional/api/test_package_search.py:295
&lt;/li&gt;&lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>icmurray</dc:creator>

      <pubDate>Mon, 21 Nov 2011 10:47:08 GMT</pubDate>
      <title>milestone changed</title>
      <link>http://localhost/ticket/1453#comment:7</link>
      <guid isPermaLink="false">http://localhost/ticket/1453#comment:7</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                changed from &lt;em&gt;current-ckan-sprint-2011-11-21&lt;/em&gt; to &lt;em&gt;ckan-sprint-2011-12-05&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>icmurray</dc:creator>

      <pubDate>Tue, 22 Nov 2011 12:40:13 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1453#comment:8</link>
      <guid isPermaLink="false">http://localhost/ticket/1453#comment:8</guid>
      <description>
        &lt;p&gt;
Updated code now in feature-1453-flexible-tag-names branch.
&lt;/p&gt;
&lt;p&gt;
(Also, deleted the ian-review branch.)
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Tue, 29 Nov 2011 15:50:30 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/1453#comment:9</link>
      <guid isPermaLink="false">http://localhost/ticket/1453#comment:9</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;accepted&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I believe this is finished now. This was merged into master in cset:c0aaa31c4b7ded54d and headed for release 1.5.2.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Thu, 16 Feb 2012 12:34:57 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1453#comment:10</link>
      <guid isPermaLink="false">http://localhost/ticket/1453#comment:10</guid>
      <description>
        &lt;p&gt;
This has gone into release 1.6.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>