Opened 11 years ago
Last modified 11 years ago
#1084 addressed defect
Annotation trigger creates excess reidentifications
| Reported by: | Kurt Endress | Owned by: | |
|---|---|---|---|
| Priority: | medium | Milestone: | Post-NPGS Prod'n |
| Component: | Middle Tier | Version: | 1.9.4 Server |
| Severity: | Keywords: | reid trigger annotation | |
| Cc: | marty.reisinger@… | Database Engine: | N/A |
| Operating System: | N/A |
Description
Jessica Nifong pointed out species reidentification annotations being created when no reidentification took place.
When i did my drag and drop accession dataview edits, even when the species taxonomy data was not changed an annotation for reidentification was triggered. i can see them in the annotation tab in the accession wizard and they show up on the web. i finally found the accession inventory annotation dataview where they are stored and can delete these records but i figured you should know about the glitch.
Change History (7)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Made changes to AccessionDataTrigger.cs in local branch TRAC-1084 adding
tsidChanged = false;
in four spots to make sure flag is reset after use.
Loaded modified GrinGlobal.AdditionalDataTriggers.dll on npgsdev for testing.
My own testing looks good. Changed two accessions and only tax change created annotation.
comment:3 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Works for me on npgsdev. Before this tested training and learned the incorrect behavior. This now works on npgsdev.
comment:4 by , 11 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
comment:5 by , 11 years ago
| Status: | reopened → addressed |
|---|
comment:6 by , 11 years ago
| Cc: | added |
|---|
Looking for one other to close. I have confirmed it is working on npgsdev.
comment:7 by , 11 years ago
| Milestone: | Post 1.0 → Post-NPGS Prod'n |
|---|

Once accessionDataTrigger.cs AccessionReidDataTrigger TableRowSaving method notices a tax change it sets a variable tsidChanged = true. The the TableRowSaved method notices the flag and creates the annotation. However, the flag never gets reset so all subsequent accession changes cause annotations to be created regardless of whether the tax was changed.
Tested by changing the note field on two accessions with the tax changed for the first. Annotations were created for both accessions, with the second listing the same tax for both old and new. A second edit of just the noted fields caused two more annotations to be created. No telling how long this would go on before the flag would reset.