CDR Tickets

Issue Number 5033
Summary [DIS] Drug Reference - global to populate new TemporaryLink attribute in selected DrugReference elements
Created 2021-09-22 13:55:16
Issue Type Improvement
Submitted By Juthe, Robin (NIH/NCI) [E]
Assigned To Kline, Bob (NIH/NCI) [C]
Status Closed
Resolved 2022-02-07 17:02:18
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.299303
Description

We'll provide additional guidance about which elements should have the attribute added soon.

Comment entered 2021-12-14 15:57:33 by Kline, Bob (NIH/NCI) [C]

Any progress on this list?

Comment entered 2022-01-20 11:25:08 by Juthe, Robin (NIH/NCI) [E]

Depends on the new spreadsheet in OCECDR-5031

Comment entered 2022-01-21 16:56:34 by Kline, Bob (NIH/NCI) [C]

A modified version of the spreadsheet I posted yesterday will be provided as the driver for the global change job.

Comment entered 2022-01-25 16:14:25 by Kline, Bob (NIH/NCI) [C]

How's this coming along?

Comment entered 2022-02-03 13:41:59 by Osei-Poku, William (NIH/NCI) [C]

ocecdr_5031-1 (MEB).xlsx  Mary has taken a first pass at identifying which of the elements should have a the new temporary link attribute. The yellow highlights are ones that would definitely not be temporary and the peach colored highlights are blogposts that we might not want to mark as temporary. This is not final yet. Christina may have to review before the global can proceed.

Comment entered 2022-02-07 14:57:56 by Juthe, Robin (NIH/NCI) [E]

I uploaded the updated spreadsheet from Christina. 

Every link in attachment should receive the TemporaryLink attribute.

Comment entered 2022-02-07 15:41:32 by Kline, Bob (NIH/NCI) [C]

Thanks. My plan is to create a map indexed by CDR ID to sequences of Link URL, Posted Date, and Reference Type value sets, ignoring the drug name, link text, and description elements. For each document, I will find each DrugReference element with matching value for one of the document's value sets and add the TemporaryLink attribute to those elements. I will normalize the two string values (Link URL and Reference Type) by ignoring case, stripping leading and trailing whitespace, and transforming sequences of whitespace characters into single "space" characters (there really shouldn't be any spaces in the URLs or the reference type values anyway). If you want me to relax the matching algorithm by leaving out one or more of the three values in the value sets, let me know. Conversely, if you want the matching logic to be more stringent (including, for example, a check that the Link Text value also matches), I can do that as well.

Comment entered 2022-02-07 17:02:18 by Kline, Bob (NIH/NCI) [C]

The global change has been implemented and run in test mode on DEV. A few documents didn't have matching links and one document (806069) wasn't on the lower tier at all, but that's not surprising. The ones which matched got the attribute, as far as I could tell.

 

https://cdr-dev.cancer.gov/cgi-bin/cdr/ShowGlobalChangeTestResults.py?dir=2022-02-07_16-49-33

Comment entered 2022-06-07 11:51:03 by Osei-Poku, William (NIH/NCI) [C]

Test data looks good. Please run in live mode on DEV. Thanks!

Comment entered 2022-06-07 19:45:02 by Kline, Bob (NIH/NCI) [C]

Done.

Comment entered 2022-06-10 12:03:28 by Osei-Poku, William (NIH/NCI) [C]

Thanks! Can you please take a look at CDR0000791122 It is the first document on the spreadsheet and it looks like in the test run, it was selected for update but I don't see that it is updated in the live run. Was it checked out or I may be reviewing this in the wrong way?

Comment entered 2022-06-10 12:46:26 by Kline, Bob (NIH/NCI) [C]

As you correctly guessed, the software cannot update a locked document. In this case, you had the document checkout out yourself. 🙂

Comment entered 2022-06-10 14:27:26 by Osei-Poku, William (NIH/NCI) [C]

Got it. Thanks!

Comment entered 2022-06-10 14:29:21 by Osei-Poku, William (NIH/NCI) [C]

Verified on DEV. Thanks!

Comment entered 2022-06-17 13:57:33 by Osei-Poku, William (NIH/NCI) [C]

Please run global in test mode on QA. Thanks!

Comment entered 2022-06-17 14:34:09 by Kline, Bob (NIH/NCI) [C]
Comment entered 2022-06-22 12:52:14 by Osei-Poku, William (NIH/NCI) [C]

Verified on QA. Please run in live mode on QA. Thanks!

Comment entered 2022-06-22 13:21:02 by Kline, Bob (NIH/NCI) [C]

Done.

Comment entered 2022-07-07 15:40:29 by Osei-Poku, William (NIH/NCI) [C]

Verified on QA. Thanks!

Comment entered 2022-07-27 17:41:54 by Osei-Poku, William (NIH/NCI) [C]

Please run in test mode on PROD.

Comment entered 2022-07-28 06:01:29 by Kline, Bob (NIH/NCI) [C]
Comment entered 2022-08-01 10:03:50 by Osei-Poku, William (NIH/NCI) [C]

Verified. Please run in live mode on PROD.

Comment entered 2022-08-01 10:59:54 by Kline, Bob (NIH/NCI) [C]

Done.

Attachments
File Name Posted User
ocecdr_5031-1 (MEB).xlsx 2022-02-03 13:38:45 Osei-Poku, William (NIH/NCI) [C]
ocecdr_5031-2.xlsx 2022-02-07 14:57:23 Juthe, Robin (NIH/NCI) [E]

Elapsed: 0:00:00.001978