View Issue Details

IDProjectCategoryView StatusLast Update
0003792mantisbtcustom fieldspublic2013-12-01 22:05
ReporterRJelinek Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status newResolutionopen 
Summary0003792: Additional Custom-Field-Type "counter"
Description

Mantis uses a ID field for all projects. I recommend a new custom-field-type with a similar meaning, but limited to a project. A normal text-field does not ensure ID-uniqueness.

Why I need this?
Tell a customer, that between ID=105 and ID=207 no bugs were reported.

TagsNo tags attached.

Activities

djockheck

djockheck

2004-04-30 04:16

reporter   ~0005452

As the name says: ID is an (unique) identifier. I think it's better to explain your customer that you are working on different projects than having dublicate (custom) ID's?

RJelinek

RJelinek

2004-04-30 04:56

reporter   ~0005455

Thats true, but it is hard, to tell a customer that different projects share the ID workspace, especially if the customer does not trust your methods. They may think, you are hiding information (bugs with IDs of other projects) for them.

Its similar, if you dont ship a version 0.19 of mantis, but a version 0.20. So everyone asks, why 0.19 is missing (maybe its too buggy for realize). It always leaves a bad taste.

grangeway

grangeway

2004-08-14 15:53

reporter   ~0006989

by counter are you looking for say, select MAX(value) where customfieldid = 10 for example, or a unique identifier.
i.e.
a counter where you take the previous max+1
or a counter where the counter will always be unique (i.e. it cant have been used + deleted)

The first version would be fairly easy to implement as the value could be looked up at runtime. However, using this method, and as mantis doesn't use transactions, it would always be possible that you could somehow duplicate an id if it was entered at the same time.

RJelinek

RJelinek

2004-08-15 08:37

reporter   ~0006991

The last one.

Counter should be unique but deletion is allowed and leaves a hole. The deleted id should not be used anymore. Its the same like the id for reports (autoincrement).

govind

govind

2013-12-01 22:05

reporter   ~0038782

gbvfghf