Opened 18 years ago
Closed 12 years ago
#162 closed defect (fixed)
BZ147 Client List Tree allows creation of exactly the same tab and lists for a user v1.0.3399.3506 to DEV2
| Reported by: | Mark J. Millard | Owned by: | dbmuqs |
|---|---|---|---|
| Priority: | trivial | Milestone: | Beta 2 |
| Component: | Database, Data Updates | Version: | Beta 1 |
| Severity: | normal | Keywords: | CC1 Client Component 1 |
| Cc: | lisa.burke@…, dbmuge@… | Database Engine: | N/A |
| Operating System: | N/A |
Description
We were having problems with the generation of huge number of list items which
appeared to be duplicates. I opened two clients each one on a different
machine. I was able to create the exact same list tab name and populate it
with exactly the same items. I then closed the clients and opened on one
machine and hid the tab name that I had duplicated before. I was able to add a
new tab with the same name and populate it with copy and paste in the exact
same way as I had duplicated the two on separate machines.
While this behavior allows things to go on with an error. It may cause
problems in the future with deletes, result set views, and so on. The database
should probably respect some kind of uniqueness constraint. I used these two
scripts on the DEV2 mysql database to confirm duplicates:
SELECT * FROM app_user_item_list a where cooperator_id = 54796;
SELECT count(distinct concat(tab_name,list_name,id_number)) FROM
app_user_item_list a where cooperator_id = 54796;
The first gives the total number of records and could be count(*). I get 4472
using this query. The cooperator_id number is mine. The second gives the
unique rows basded on tab_name, list_name, id_number. I get 2472 on this.
I will leave these in the database for verification.
Change History (3)
comment:1 by , 17 years ago
| Summary: | Client List Tree allows creation of exactly the same tab and lists for a user v1.0.3399.3506 to DEV2 → BZ147 Client List Tree allows creation of exactly the same tab and lists for a user v1.0.3399.3506 to DEV2 |
|---|
comment:2 by , 16 years ago
| Component: | Curator Tool → Database |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
comment:3 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
This problem has gone away with a reset of the treeview to empty.

This requires a DB schema change to add a unique constraint.