#3007 closed enhancement (fixed)
Store Propagative (Y/N) Attibute of Germplasm Forms
| Reported by: | Kay Kittell | Owned by: | Benjamin Haag |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Database, Schema Changes | Version: | N/A |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
A new table is needed in the database to hold what form types are propagative vs non-propagative. Recommend columns form_type_code as in inventory table, and is_propagative to either be bool or 'y'/'n'
Then using the excel spreadsheet, populate the table.
The PW needs an efficient way of determining prop vs non-prop for international SMTA.
Attachments (2)
Change History (10)
by , 2 years ago
| Attachment: | GERMPLASM FORM TYPE-gv (1).xlsx added |
|---|
comment:1 by , 2 years ago
A new table is not needed or desired. The solution, given the current code_value structure, would be either:
a) Creating new groups GERMPLASM_FORM_PROP and GERMPLASM_FORM_NONPROP (for example), and assigning each code accordingly, or
b) Incorporating the propagative status into the code itself in a consistent manner:
EX.
P_BD Budwood
N_CA Cane
comment:2 by , 2 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
comment:3 by , 2 years ago
| Resolution: | invalid |
|---|---|
| Status: | closed → reopened |
| Summary: | New table in database → Store Propagative (Y/N) Attibute of Germplasm Forms |
After some analysis, a table is in fact the best means of storing the newly-defined "propagative" attribute of given form types. Given that the existing central lookup table does not allow for adding additional attributes to codes, there will be a new lookup table for this purpose. SQL script attached.
comment:4 by , 2 years ago
Recommended use of this table in a dataview: LEFT OUTER JOIN to the query containing form_type_code, and use a CASE statement to create a computed is_propagative flag that will resolve to "Y" for all form types that contain a match within the lookup table.
comment:5 by , 2 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |
comment:7 by , 2 years ago
Kurt said that since GG uses only single integer keys and foreign keys, he "strongly suspects" the database installer can't even handle having a compound two part foreign key. Therefore, since another way to handle prop vs non-prop for the ordering processes in the PW has been successfully programmed, this table isn't needed.
comment:8 by , 2 years ago
Indicating a germplasm form as propagative vs. non-propagative is a data element that belongs in the database, regardless of its being hard-coded elsewhere. How exactly that can be done within the constraints of the existing infrastructure is to be determined.

Germplasm forms propagative vs non-propagative