Opened 10 years ago
Closed 10 years ago
#1424 closed defect (fixed)
Accessions in CROP CITATION sometimes aren't displaying
| Reported by: | dbmulg | Owned by: | dbmulg |
|---|---|---|---|
| Priority: | medium | Milestone: | |
| Component: | Public Website App. | Version: | N/A |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
From Dave Stout:
This is probably for Laura
I added some Accession Citation records and then looked for them under the crop ALFALFA and looked at the list of Citation and they aren’t listing the Accessions
When I click on the Citation
Believe Laura said there had to be an Observation records in the crop before it was listed,
But there is an Observation records on some of these and ZERO is showing up WHY ?
PI 150564, PI 226518 and others do have Observation records
Dave
Change History (5)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
loaded 2017_03_13_web_crop_citation_accession.dataview on npgsdev for testing, as received from Laura.
comment:3 by , 10 years ago
loaded 2017_03_13_web_crop_citation_accession.dataview on npgsdb/npgsweb for production use as it passed testing and AdCom approval.
comment:4 by , 10 years ago
| Status: | new → addressed |
|---|
comment:5 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | addressed → closed |

The citation_year column in the citation table is nullable. In this case all of the citation records Dave put in for this citation don’t have the citation_year data. But the dataview to display the list of accession is using this column data in the SQL to do the comparing. Then null data messed up the SQL result.
need to modfy dataview web_crop_citation_accession.dataview to add coalesce(c.citation_year, ) instead of directly compare the citation_year