Opened 4 years ago
Closed 4 years ago
#2663 closed enhancement (fixed)
Similarly named Code Groups are used for the same field by the CT
| Reported by: | Martin Reisinger | Owned by: | Pete Cyr |
|---|---|---|---|
| Priority: | medium | Milestone: | |
| Component: | Curator Tool | Version: | N/A |
| Severity: | Keywords: | ||
| Cc: | marty.reisinger@… | Database Engine: | N/A |
| Operating System: | N/A |
Description
An international user reported the following. I confirmed that this was happening:
"...
While working on GRIN-Global recently I think I have found a bug. The bug relates to code group names and what codes are available within the GRIN-Global curator tool dropdown. I will attempt to explain as clearly as possible.
The problem occurs with codes groups which have names where one name is a shorter version of another code group name. For example imagine a situation where you have two codes groups “SEED_TREATMENT” and “SEED_TREATMENT_STATUS” with the following codes:
- SEED_TREATMENT: Benlate, NA, Unknown
- SEED_TREATMENT_STATUS: Not_Treated, Treated
In this situation the codes which appear in the curator tool dropdown for SEED_TREATMENT_STATUS will be correct and only include “Not_Treated” and “Treated”. However, the codes which appear in the dropdown for SEED_TREATMENT will include both those from the SEED_TREATMENT code group and the SEED_TREATMENT_STATUS code group i.e. “Benlate”, “NA”, “Unknown”, “Not_Treated” and “Treated” will all appear.
To confirm that this problem is a bug (and not something wrong with my set up) I looked at other codes groups which already exist in GRIN-Global. There is another case of this type of code group name
- PATHOLOGY_TEST
- PATHOLOGY_TEST_RESULT
- PATHOLOGY_TEST_TYPE
Sure enough, if you look at the “Contaminant” dropdown (which matches with the PATHOLOGY_TEST code group) in the “Inventory Quality Status” dataview it contains the codes found in PATHOLOGY_TEST, PATHOLOGY_TEST_RESULT and PATHOLOGY_TEST_TYPE.
A very simple solution to solve this problem is to make code group names which are not a shortened version of another code group name. In this situation I changed the name SEED_TREATMENT to SEED_TREATMENT_APPLICATION and it solved the problem. However, I thought it was worth pointing this out as a bug so that others can be made aware of it too, as it was very frustrating and time consuming trying to work out what the problem was.
..."
Attachments (2)
Change History (7)
by , 4 years ago
| Attachment: | code_groups1.jpg added |
|---|
by , 4 years ago
| Attachment: | code_groups2.jpg added |
|---|
comment:1 by , 4 years ago
| Cc: | added |
|---|---|
| Component: | Other → Curator Tool |
| Owner: | set to |
comment:2 by , 4 years ago
| Status: | new → addressed |
|---|
comment:4 by , 4 years ago
This ticket was addressed by refactoring the 'GetCodeValueDataTableByGroupName(string groupName)' method to return only DataTable code/value records that exactly match the 'groupName' parameter string. In previous versions the 'GetCodeValueDataTableByGroupName(string groupName) method would return all code/value records that started with the 'groupName' parameter string.
comment:5 by , 4 years ago
| Resolution: | → fixed |
|---|---|
| Status: | addressed → closed |

Addressed in Curator Tool v1.22.12.15