Opened 5 years ago

Closed 5 years ago

#2329 closed enhancement (fixed)

Remove name and email addresss from existing order actions in the PW order history

Reported by: Lisa Burke Owned by: Kay Kittell
Priority: medium Milestone:
Component: Database, Data Updates Version: N/A
Severity: Keywords: Name e-mail addresses PW order history
Cc: devteam@…, lisa.burke@… Database Engine: N/A
Operating System: N/A

Description

Retroactivily remove the names and email addresses of NPGS personel from existing order actions in the PW order history

Attachments (3)

name and e-mail.docx​ (74.1 KB ) - added by Lisa Burke 5 years ago.
Names and email PW order history
fn_redact_email_address.sql​ (1.7 KB ) - added by Benjamin Haag 5 years ago.
Trac_2329.sql​ (662 bytes ) - added by Benjamin Haag 5 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 by Lisa Burke, 5 years ago

Owner: changed from Kurt Admin to Benjamin Haag
Status: new → assigned

by Lisa Burke, 5 years ago

Attachment: name and e-mail.docx​ added

Names and email PW order history

comment:2 by Lisa Burke, 5 years ago

CCB approved

comment:3 by Benjamin Haag, 5 years ago

1) Created the function fn_redact_email_address (see attachment), which replaces *estimated* email addresses with "[REDACTED]".
2) Created script that uses function to replace email addresses with pre-defined redaction string.

2.1) Uses series of WHERE clauses to differentiate actual email addresses from other text that contains an "@" symbol.

by Benjamin Haag, 5 years ago

Attachment: fn_redact_email_address.sql​ added

by Benjamin Haag, 5 years ago

Attachment: Trac_2329.sql​ added

comment:4 by Benjamin Haag, 5 years ago

Ran script successfully in TRAINING; 239,478 order_request_action records updated. Recommend running in production off-hours.

comment:5 by Lisa Burke, 5 years ago

Works as expeccted. Testsed on DEV

comment:6 by Kay Kittell, 5 years ago

Owner: changed from Benjamin Haag to Kay Kittell

comment:7 by Kay Kittell, 5 years ago

Status: assigned → addressed

Modified the code in orderhistorydetail so that when running for NPGS only, names and email addresses are removed from several action_name_codes. A few might still show because some of them are for contacting the site, or someone in the site.

comment:8 by Lisa Burke, 5 years ago

Resolution: → fixed
Status: addressed → closed
Note: See TracTickets for help on using tickets.