Ticket #1453 (accepted enhancement) — at Version 5

Opened 2 years ago

Last modified 2 years ago

Flexible tag names

Reported by: icmurray Owned by: icmurray
Priority: major Milestone: ckan-sprint-2011-12-05
Component: ckan Keywords: tags tag
Cc: dread Repository: ckan
Theme: none

Description (last modified by icmurray) (diff)

Allowing more flexible tag names:

  • allowing spaces
  • allow capital letters (search is case in-sensitive)
  • allow all punctuation except for commas and double-quotes '"'
  • allow unicode
  • commas delimit tag names in the package create/edit form

Effects:

  • package creation/edit form.
  • /tag/{tagname} uri
  • search action
  • api controller (search/package-create/edit)
  • web controller (search/package-create/edit)
  • search api documentation
  • autocomplete for tag names

Change History

comment:1 Changed 2 years ago by icmurray

  • Description modified (diff)

comment:2 Changed 2 years ago by icmurray

  • Description modified (diff)

comment:3 Changed 2 years ago by icmurray

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.

For example, this simplifies the use of quotes in identifying tags in internal markdown links:

tag:"multiple word tag name"

A possible solution is to allowing escaping, such as:

tag:"something about \"Ian\""

But I think the compromise is a better solution than allowing the escaping as it's simpler, and this may crop up elsewhere.

comment:4 Changed 2 years ago by icmurray

  • Status changed from new to accepted

The allowable characters in a tagname has changed to "unicode alphanmeric plus simple punctuation". This means:

  • alphanumeric (inc. foreign characters)
  • [ .-_]

The completed feature is in the feature-1453-flexible-tag-names branch.

Awaiting a code review.

comment:5 Changed 2 years ago by icmurray

  • Description modified (diff)
Note: See TracTickets for help on using tickets.