Mailing List Archive

Unique articles names
Hi,

in RT articles "Create" method, unique Name is enforced, even if the
article belong to different classes. What is the need for this?
Shouldn't we enforce this uniqueness only inside each class?


--
Easter-eggs Spécialiste GNU/Linux
44-46 rue de l'Ouest - 75014 Paris - France - Métro Gaité
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 43 35 00 76
mailto:elacour@easter-eggs.com - http://www.easter-eggs.com
Re: Unique articles names [ In reply to ]
On Mon, Oct 21, 2013 at 12:34:48PM +0200, Emmanuel Lacour wrote:
> in RT articles "Create" method, unique Name is enforced, even if the
> article belong to different classes. What is the need for this?
> Shouldn't we enforce this uniqueness only inside each class?

This code dates back almost a decade now
https://github.com/bestpractical/rt/commit/8ef2201de4ae5cf

Long before we had the concept of Classes as anything other than
global silos of articles (I added classes applied to queues as the
runup to merging Articles into core).

I'd be fine with unique article names within a class (it still gets a
little weird if you have two classes applied to a Queue and use the
dropdown quick list feature) and agree that globally unique names
don't make sense..

I'd not change this in 4.0, might be ok with 4.2. If you send a
patch, send it against 4.2, but don't be surprised if the argument
comes down that this has to go against master for 4.4.

-kevin