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 Benjamin Haag)

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

  1. Modify dataview SQL (see attached)
  2. Add fields to accession_ipr that are c

Attachments (3)

Trac_3080_PW Screen Shot.jpg​ (90.9 KB ) - added by Benjamin Haag 19 months ago.
Screen shot of PW Accession Detail IPR tab, highlighting fields to be added to accession_ipr as part of the proposed change.
Trac_3080_Dataview.sql​ (2.1 KB ) - added by Benjamin Haag 19 months ago.
Recommended new dataview SQL.
Trac_3080_Accession_IPR_Data_Export.xlsx​ (146.1 KB ) - added by Benjamin Haag 19 months ago.
Data from accession_ipr including accession names and related cooperators.

Download all attachments as: .zip

Change History (7)

comment:1 by Benjamin Haag, 20 months ago

Cc: cullen.mcgovern@… added
Description: modified (diff)

comment:2 by Benjamin Haag, 19 months ago

Description: modified (diff)

by Benjamin Haag, 19 months ago

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

by Benjamin Haag, 19 months ago

Attachment: Trac_3080_Dataview.sql​ added

Recommended new dataview SQL.

comment:3 by Benjamin Haag, 19 months ago

Modified dataview and successfully tested PW on test:
EXAMPLE: ​https://npgstest.ars-grin.gov/gringlobal/accessiondetail?id=1962773

by Benjamin Haag, 19 months ago

Data from accession_ipr including accession names and related cooperators.

comment:4 by Benjamin Haag, 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.

Note: See TracTickets for help on using tickets.