Opened 20 months ago
Last modified 19 months ago
#3080 assigned enhancement
Modify Web Accession Detail PVP Dataview
| Reported by: | Benjamin Haag | Owned by: | Benjamin Haag |
|---|---|---|---|
| Priority: | medium | Milestone: | |
| Component: | Dataviews (CT) | Version: | N/A |
| Severity: | Keywords: | ||
| Cc: | cullen.mcgovern@… | Database Engine: | N/A |
| Operating System: | N/A |
Description (last modified by )
Overview
The Web Accession Detail PVP dataview (web_accession_detail_pvp_2) is currently based on a join of the following tables:
- pvp_application
- pvp_applicant
- pvp_common_name
- pvp_application_status
Tables had been created several years ago in an attempt to normalize this component of the database, and are based on the table pvpo_import, which is used to import the more-or-less monthly spreadsheet posted by the AMS, and that contains PVP application updates.
Keeping these tables up to date requires an ETL procedure that duplicates work done by Alison LaTona, who currently manages the regular import of the spreadsheet indicated above. The proposed solution is to link the PW dataview directly to the accession_ipr table, allowing her vetted edits to appear with no additional steps or risk of errors.
There are however fields that are currently in the imported data set that are not in accession_ipr, and that appear on the PW accession detail page within the IPR tab. These fields could be added to accession_ipr and incorporated into the import process.
Steps
- Modify dataview SQL (see attached)
- Add fields to accession_ipr that are c
Attachments (3)
Change History (7)
comment:1 by , 20 months ago
| Cc: | added |
|---|---|
| Description: | modified (diff) |
comment:2 by , 19 months ago
| Description: | modified (diff) |
|---|
by , 19 months ago
| Attachment: | Trac_3080_PW Screen Shot.jpg added |
|---|
comment:3 by , 19 months ago
Modified dataview and successfully tested PW on test:
EXAMPLE: https://npgstest.ars-grin.gov/gringlobal/accessiondetail?id=1962773
by , 19 months ago
| Attachment: | Trac_3080_Accession_IPR_Data_Export.xlsx added |
|---|
Data from accession_ipr including accession names and related cooperators.
comment:4 by , 19 months ago
It appears that accession_ipr.cooperator_id will link to the applicant name (cooperator.organization), but there are currently over 3000 PVP records in the table in which no cooperator_id is specified. Aside from this -- using cooperator to store the names of external organizations, intermixed with internal users, is to me a data management problem we don't want to exacerbate.

Screen shot of PW Accession Detail IPR tab, highlighting fields to be added to accession_ipr as part of the proposed change.