Opened 7 years ago
Closed 6 years ago
#1924 closed enhancement (fixed)
Refactor Taxonomy CWR Table Into Normalized Tables
| Reported by: | Benjamin Haag | Owned by: | Benjamin Haag |
|---|---|---|---|
| Priority: | critical | Milestone: | Server 1.10.6 |
| Component: | Other | Version: | N/A |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
Refactor the taxonomy_cwr table as specified in the SQL statements in the attached file.
Attachments (1)
Change History (12)
comment:1 by , 7 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 7 years ago
comment:3 by , 7 years ago
Tables completed and populated on dev, with minor revisions:
- get_taxonomy_ref_cwr_trait is a lookup of all traits (all values in code_value where group_name is 'CWR_TRAIT_CLASS').
- taxonomy_ref_cwr_breeding_type is a lookup of all breeding types (all values in code_value where group_name = 'CWR_BREEDING_TYPE')
- taxonomy_cwr_trait_map identifies each Crop Wild Relative, each row containing a unique combination of species ID, breeding type ID, and trait ID.
comment:4 by , 7 years ago
Correction; table name is taxonomy_ref_cwr_trait.
Dataviews created for each; name in each case is get_<>>TABLE NAME>>.
comment:5 by , 7 years ago
| Status: | assigned → accepted |
|---|
Updates:
- For consistency's sake, the displayed field names will need to be tweaked slightly to match the format used in other tables. 1.1. ref_cwr_trait: Taxonomy Ref CWR Trait ID, Trait Code, Title, Description,
Created Date, Created By, Modified Date, Modified By, Owned Date, Owned By
1.2. ref_cwr_breeding_type: Taxonomy Ref CWR Breeding Type ID, Breeding Type Code,
Title, Description, Created Date, Created By, Modified Date, Modified By, Owned
Date, Owned By
- For CWR trait map, the first change I need is for the dataview to show the crop name instead of the crop_id number, the species name instead of the taxonomy_species_id number, the breeding type title instead of the ref_cwr_breeding_type_id number, and the trait title instead of the ref_cwr_trait_id number. The field names will need to be formatted to match the style of those outlined above.
- The citation field will need to display the citation text in the same format that's used for the current CWR table on production.
comment:8 by , 7 years ago
| Milestone: | Next Release - Server → Server 1.10.6 |
|---|
comment:9 by , 7 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Resolution
Tables created and incorporated into build 1.10.6.
comment:10 by , 7 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
comment:11 by , 6 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |

Modify tables as follows:
taxonomy_ref_cwr_trait
taxonomy_ref_cwr_breeding_type
taxonomy_cwr_trait_map