﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	db_engine	os_version
1328	Top Name rank trigger	Lisa Burke	Kurt Endress	"When adding a new Accession/Inventory name and allowing the CT to assign the number, it will select a number that might override the current top name. Need to revisit the way the CT assigns the numbers. I came across this when I was adding a new name to an accession  that was transferred to NC7. Ames 33373. I added a name group identifier and left the rank blank. The system assigned a number that trumped the top name. Also reference #1323 and #1324 
                From Quinn and my conversation:
                RankCategory.Add(""CULTIVAR"", 10);
                RankCategory.Add(""UNVERIFIED"", 20);
                RankCategory.Add(""LOCALNAME"", 30);
                RankCategory.Add(""CGIAR"", 35);
                RankCategory.Add(""INSTITUTE"", 40);
                RankCategory.Add(""DEVELOPER"", 50);
                RankCategory.Add(""DONOR"", 60);
                RankCategory.Add(""COLLECTOR"", 70);
                RankCategory.Add(""SITE"", 80);
                RankCategory.Add(""QUARANTINE"", 90);
                RankCategory.Add(""OTHER"", 100);
                RankCategory.Add(""DUPLICATE"", 110);
                RankCategory.Add(""MISIDENT"", 120);
                RankCategory.Add(""TRADEMARK"", 130);

So your new site identifier got an 80 which is the lowest in the group so it become topname. We may need to revise this and add 1000 to the defaults above. In GC we had a topname flag and the same list of defaults. But if the topname flag was null it added 1000. Only if topname was set did it leave the low numbers. In GG we no longer have the topname flag so maybe we need to change the defaults to be 1000 higher to better mesh with the data that came from GC. Maybe write a ticket? -q

"	AdCom	closed	medium		Trigger	1.9.6 Server		invalid	Top name rank trigger		N/A	N/A
