Opened 4 years ago

Closed 22 months ago

#2579 closed enhancement (fixed)

Add Validation Columns to accession_inv_attach and Modify Corresponding Dataview

Reported by: Benjamin Haag Owned by: Benjamin Haag
Priority: medium Milestone: Server 2.3.1
Component: Database, Schema Changes Version: N/A
Severity: Keywords:
Cc: mark.millard@…, kurt.endress@… Database Engine: N/A
Operating System: N/A

Description

There is currently a need to verify that the url fields in accession_inv_attach contain valid URLs. To support this, we have created a process that:
1) Reads each attachment record
2) Submits a test HTTP request for the URLs listed in the url and _thumbnail fields, respectively,
3) Sets an is_valid flag for each URL to either "Y" or "N", depending on the results obtained in Step 2,
4) Sets the validation_date field to the date on which the validation was run.

The fields have been added to the table directly to simplify the logging process.

Attached is the SQL script used to modify accession_inv_attach. Please note that the script has already been run on production', in order to support the extensive validation process.

Attachments (1)

Trac_2579.sql​ (199 bytes ) - added by Benjamin Haag 4 years ago.

Download all attachments as: .zip

Change History (4)

by Benjamin Haag, 4 years ago

Attachment: Trac_2579.sql​ added

comment:1 by Benjamin Haag, 4 years ago

Summary: Add Validation Columns to accession_inv_attach and Modify Dataview → Add Validation Columns to accession_inv_attach and Modify Corresponding Dataview

comment:2 by Benjamin Haag, 4 years ago

Component: Other → Database, Schema Changes
Status: assigned → addressed

comment:3 by Benjamin Haag, 22 months ago

Resolution: → fixed
Status: addressed → closed

Fields added. To be revisited.

Note: See TracTickets for help on using tickets.