CDR Tickets

Issue Number 4566
Summary [DIS] Global for Drug Reference section attribute
Created 2019-01-24 11:23:49
Issue Type Improvement
Submitted By Osei-Poku, William (NIH/NCI) [C]
Assigned To Englisch, Volker (NIH/NCI) [C]
Status Closed
Resolved 2019-02-07 12:07:01
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.239125
Description

Please run a global change to replace all DIS records with DrugReference type of "NCI" that have a section attribute of "about_drug" with a section attribute of "Research_results". This is to correct data entry in these records to ensure that the changes implemented in OCECDR-4535 work correctly.

Comment entered 2019-02-07 12:06:52 by Englisch, Volker (NIH/NCI) [C]

I've run the global change for DIS documents on DEV in test mode.

Please review the results.

Comment entered 2019-02-12 15:59:36 by Osei-Poku, William (NIH/NCI) [C]

The results show that a total of only 4 documents were affected. Is that right? Of the 4 documents that were picked up for the global, 3 of them included changes (one correctly indicates that there is no change). I reviewed all 4 documents and the global appears to be doing the right thing but what I am not sure about is the very small number of docs picked up by the global.

Comment entered 2019-02-12 17:48:04 by Englisch, Volker (NIH/NCI) [C]

Where does the number 4 come from? I had tested using 4 documents, so I'm wondering if you're looking at those. The Log file lists the following statistics:

   Docs examined    = 97
   Docs changed     = 97
   Versions changed = 233
   Could not lock   = 0
   Errors           = 0
   Time             = 0:33:51.003373
Specific versions saved:
  new cwd = 13
  new pub = 97
  new ver = 39
  old cwd = 23
Comment entered 2019-02-13 10:00:21 by Osei-Poku, William (NIH/NCI) [C]

Yes, I did look at the 4 documents you used for testing. I see the actual test run results on the list now. I will review and let you know.

Comment entered 2019-02-13 11:58:32 by Osei-Poku, William (NIH/NCI) [C]

Test results look good. Please run in live mode on DEV.

Comment entered 2019-02-13 13:03:41 by Englisch, Volker (NIH/NCI) [C]

Sorry, I gave you the statistics from the other global in the comment above. This is the correct statistics from the live job on DEV.

2019-02-13 12:59:16.864 [INFO] Run completed.
   Docs examined    = 122
   Docs changed     = 122
   Versions changed = 251
   Could not lock   = 0
   Errors           = 0
   Time             = 0:08:45.520569
Specific versions saved:
  new cwd = 4
  new pub = 122
  new ver = 7
  old cwd = 4
Comment entered 2019-02-13 15:08:19 by Osei-Poku, William (NIH/NCI) [C]

The documents look good on DEV. Thanks! Please run in test mode on QA.

Comment entered 2019-02-13 18:18:41 by Englisch, Volker (NIH/NCI) [C]

I forgot that I needed to re-index the DIS documents in order to query on the section attribute, so I'm adding this comment as a reminder for the next tier.

The global ran in test mode on QA:

2019-02-13 18:00:07.020 [INFO] Run completed.
   Docs examined    = 120
   Docs changed     = 0
   Versions changed = 360
   Could not lock   = 0
   Errors           = 0
   Time             = 0:05:43.857405
Comment entered 2019-02-26 13:12:03 by Osei-Poku, William (NIH/NCI) [C]

Please run in Live mode on QA.

Comment entered 2019-02-26 15:59:52 by Englisch, Volker (NIH/NCI) [C]

The global finished running on QA in live mode:

2019-02-26 15:58:43.956 [INFO] Run completed.
   Docs examined    = 120
   Docs changed     = 120
   Versions changed = 244
   Could not lock   = 0
   Errors           = 0
   Time             = 0:08:05.608219
Specific versions saved:
  new cwd = 1
  new pub = 120
  new ver = 4
  old cwd = 1

We encountered 1 warning:

2019-02-26 15:54:05.075 [WARNING] CDR0000700207: b"Element 'DrugReferenceType':[facet 'enumeration'] The value '' is not an element of the set {'FDA', 'NCI', 'NLM'}."
2019-02-26 15:54:05.075 [WARNING] CDR0000700207: b"Element 'DrugReferenceType':'' is not a valid value of the atomic type 'DrugReferenceType'."
2019-02-26 15:54:05.075 [WARNING] CDR0000700207: b"Element 'EntryDate': '' is not a valid value of the atomic type 'xs:date'."
Comment entered 2019-02-26 16:21:06 by Osei-Poku, William (NIH/NCI) [C]

Did you mean to say QA ?

Comment entered 2019-02-27 15:55:15 by Osei-Poku, William (NIH/NCI) [C]

Verified on QA. Thanks!

Comment entered 2019-02-27 15:58:17 by Englisch, Volker (NIH/NCI) [C]

Do you want me to go ahead and run this on STAGE next?

Comment entered 2019-02-27 16:00:31 by Osei-Poku, William (NIH/NCI) [C]

Yes, please. As usual, test mode first.

Comment entered 2019-02-28 13:00:51 by Englisch, Volker (NIH/NCI) [C]

The global ran on STAGE in test mode:

2019-02-28 10:54:20.657 [INFO] Run completed.
   Docs examined    = 120
   Docs changed     = 0
   Versions changed = 360
   Could not lock   = 0
   Errors           = 0
   Time             = 0:06:17.778611

I have copied the log files to DEV but the web server is currently broken.

Comment entered 2019-02-28 16:18:55 by Englisch, Volker (NIH/NCI) [C]

The DEV server is running again.

Comment entered 2019-03-01 10:02:48 by Osei-Poku, William (NIH/NCI) [C]

Test results verified on STAGE Please run in live mode on STAGE.

Comment entered 2019-03-01 11:31:16 by Englisch, Volker (NIH/NCI) [C]

The live run finished processing on STAGE:

2019-03-01 11:20:22.800 [INFO] Run completed.
   Docs examined    = 120
   Docs changed     = 120
   Versions changed = 244
   Could not lock   = 0
   Errors           = 0
   Time             = 0:08:29.348700
Specific versions saved:
  new pub = 120
  new ver = 4
Comment entered 2019-03-01 14:10:57 by Osei-Poku, William (NIH/NCI) [C]

Verified on STAGE. Please run in test mode on PROD.

Comment entered 2019-03-01 14:44:43 by Englisch, Volker (NIH/NCI) [C]

The test run on PROD finished.

2019-03-01 14:43:22.238 [INFO] Run completed.
   Docs examined    = 122
   Docs changed     = 0
   Versions changed = 366
   Could not lock   = 0
   Errors           = 0
   Time             = 0:05:39.955200

The log files have been copied to DEV as 2019-03-01_14-37-42.

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

Test results verified on PROD. Ready for live run on PROD.

Comment entered 2019-03-01 15:54:00 by Englisch, Volker (NIH/NCI) [C]

I will run the live run after the weekend production job finished.

Comment entered 2019-03-01 16:53:01 by Englisch, Volker (NIH/NCI) [C]

The live run finished processing on PROD.

2019-03-01 16:50:59.992 [INFO] Run completed.
   Docs examined    = 122
   Docs changed     = 122
   Versions changed = 247
   Could not lock   = 0
   Errors           = 0
   Time             = 0:07:19.748400
Specific versions saved:
  new pub = 122
  new ver = 3
  old cwd = 5

There were no locked files or warnings.

Comment entered 2019-03-04 15:43:03 by Osei-Poku, William (NIH/NCI) [C]

Verified on PROD. Thanks!

Elapsed: 0:00:00.001484