CDR Tickets

Issue Number 4505
Summary Modify Documents Modified Since Last Publishable Version report
Created 2018-07-31 15:50:37
Issue Type New Feature
Submitted By Osei-Poku, William (NIH/NCI) [C]
Assigned To Kline, Bob (NIH/NCI) [C]
Status Closed
Resolved 2019-08-01 07:16:38
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.230265
Description

Please modify the "Documents Modified Since Last Publishable Version" report so that the Doc ID field links to the QC report of the document.

Comment entered 2019-07-08 08:23:10 by Kline, Bob (NIH/NCI) [C]

Enhancement implemented on CDR DEV.

https://github.com/NCIOCPL/cdr-admin/commit/ab5e75c9

Comment entered 2019-07-08 10:45:57 by Osei-Poku, William (NIH/NCI) [C]

It looks like it works for all the major document types with the exception of Media doc.

Comment entered 2019-07-08 11:23:00 by Kline, Bob (NIH/NCI) [C]

Media docs don't have a QC filter in the `cdr.FILTERS` set.

Comment entered 2019-07-08 13:51:09 by Kline, Bob (NIH/NCI) [C]

Well, that's only partly true. I was misled by this code in the QC report script:

 

# Display error message if no filter exist for current docType
# ------------------------------------------------------------
if not filters.has_key(docType):
    thisUser = cdr.idSessionUser('', session)
    message = "QcReport - Filter for document type '%s' does not exist (%s)."

I have adjusted this report to work with what's really in that dictionary of filters. Please give it another try.

By the way, you can make your screen shot image a thumbnail if it's way too big to be displayed usefully inside a Jira comment.

Comment entered 2019-07-11 12:47:24 by Osei-Poku, William (NIH/NCI) [C]

Verified on DEV. Thanks!

Comment entered 2019-08-05 14:35:37 by Osei-Poku, William (NIH/NCI) [C]

Verified on QA. Thanks!

Comment entered 2019-09-09 10:06:56 by Osei-Poku, William (NIH/NCI) [C]

There seems to be a problem with this report. I get a python script error each time I run it with a date range selected for different doc types. If I don't select any date range, the report does not run.

A problem occurred in a Python script.
D:\cdr\Log\tmph6xd8z.html contains the description of this error.

Comment entered 2019-09-09 10:10:22 by Osei-Poku, William (NIH/NCI) [C]

Never mind. This error is for a different report (Documents Modified Report). I will enter a new ticket for Kepler.

Comment entered 2019-09-09 10:12:34 by Osei-Poku, William (NIH/NCI) [C]

Verified on PROD. Thanks!

Attachments
File Name Posted User
Docs Modified SLPV.png 2019-07-08 10:45:30 Osei-Poku, William (NIH/NCI) [C]

Elapsed: 0:00:00.001073