CDR Tickets

Issue Number 3704
Summary [Media] Permissions Report
Created 2014-01-21 17:10:18
Issue Type Improvement
Submitted By Juthe, Robin (NIH/NCI) [E]
Assigned To Kline, Bob (NIH/NCI) [C]
Status Closed
Resolved 2014-03-11 16:55:19
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.117434
Description

We'd like to develop a report to capture the new media document permissions information. Requirements will be forthcoming.

Comment entered 2014-02-27 10:20:42 by Juthe, Robin (NIH/NCI) [E]

I've attached specs for this new report. It's a complicated one! Let's discuss.

Comment entered 2014-03-11 16:55:19 by Kline, Bob (NIH/NCI) [C]

Please give it a try:

https://cdr.dev.cancer.gov/cgi-bin/cdr/ocecdr-3704.py

  • R12426 /trunk/Inetpub/wwwroot/cgi-bin/cdr/ocecdr-3704.py

  • R12425 /trunk/Inetpub/wwwroot/js/jquery.js

  • R12425 /trunk/Inetpub/wwwroot/stylesheets/cdr.css

  • R12424 /trunk/lib/Python/cdrcgi.py

Comment entered 2014-03-18 12:19:07 by Osei-Poku, William (NIH/NCI) [C]

When we use the Global Option by selecting "Permission Requested (English)", for example, no data is retrieved even though we've added the permission block to a few terms: 712808, 712360, 727321, 727106

Comment entered 2014-03-18 14:32:46 by Kline, Bob (NIH/NCI) [C]

Did you do this on DEV after the refresh from PROD (PROD doesn't have the query term definitions yet for this report)?

Comment entered 2014-03-18 14:43:52 by Osei-Poku, William (NIH/NCI) [C]

Actually the permissions data were copied from PROD during the recent refresh and we did the tests yesterday and this morning.

Comment entered 2014-03-18 14:51:52 by Kline, Bob (NIH/NCI) [C]

Then I will have to reindex all the data. (The expectation was that you'd be testing on DEV with data entered on that tier.)

Comment entered 2014-03-18 16:04:19 by Kline, Bob (NIH/NCI) [C]

All of the documents have been reindexed. Please test again. Just as a reminder: this is a very complicated report, so testing should be very thorough.

Comment entered 2014-03-26 14:05:06 by Osei-Poku, William (NIH/NCI) [C]

When I use the option enter the the CDR ID of either a glossary term or a summary and leave all other options blank, nothing is retrieved. Here are sample IDs I used:
CDR613538 - summary
CDR0000613538 - glossary
CDR0000428431 - glossary

Unless I am doing something wrong, I believe the report should show some data if Permission Granted is selected in the media docs permission information but it doesn't retrieve any data for all the IDs I used.

Comment entered 2014-03-26 14:58:45 by Kline, Bob (NIH/NCI) [C]

You're entering the document ID of the media documents, not the summary or glossary documents for which permission is granted. One clue is that you gave 613538 as the document ID of both a summary document and a glossary term name document.

Comment entered 2014-03-26 15:51:19 by Osei-Poku, William (NIH/NCI) [C]

You're right. Thanks. It works with the correct IDs.
I think everything is working as expected on DEV.

Comment entered 2014-03-27 14:56:40 by Juthe, Robin (NIH/NCI) [E]

Still reviewing this, but please place each approved use on a separate line. Thanks.

Comment entered 2014-03-28 10:11:19 by Kline, Bob (NIH/NCI) [C]

A new line is now started for each approved use.

Comment entered 2014-03-31 14:58:05 by Kline, Bob (NIH/NCI) [C]

Does this need to be installed anywhere in the Admin menus (didn't see any requirements for that), or will you just bookmark the URL for this report?

Comment entered 2014-03-31 19:17:51 by Juthe, Robin (NIH/NCI) [E]

Yes, please install it on the Media Reports page under Management Reports. Thanks.

Comment entered 2014-03-31 22:34:56 by Kline, Bob (NIH/NCI) [C]

Done.

Comment entered 2014-04-01 18:15:35 by Juthe, Robin (NIH/NCI) [E]

Hi Bob,

The summary types should be the following:

ENGLISH
All English, Adult Treatment, Cancer Genetics, Complementary and Alternative Medicine, Pediatric Treatment, Screening and Prevention, Supportive and Palliative Care.

SPANISH
All Spanish, Adult Treatment, Pediatric Treatment, Screening and Prevention, Supportive and Palliative Care.

These values match up with the boards and are consistent with how we've designed other similar reports (see screenshot in the requirements doc).

Thanks.

Comment entered 2014-04-03 23:23:03 by Kline, Bob (NIH/NCI) [C]

I have rewritten that part of the request form and report to use boards instead of summary types. Please test carefully, as it's tricky code (largely because Spanish summaries don't know which boards are responsible for them, so you have to go find the English counterpart summary first, and then figure out which board is responsible for it). I made the labels on the form match what's being shown and selected, so the users (and other programmers using this as a model) don't fall into the same trap I did of thinking we should be looking at the SummaryType element.

Comment entered 2014-04-04 17:13:31 by Juthe, Robin (NIH/NCI) [E]

Verified on DEV. I also verified copy/paste from Chrome into Word - that worked well. Thank you!

Comment entered 2014-04-08 12:38:15 by Juthe, Robin (NIH/NCI) [E]

For consistency with other reports (PDQ Board roster & Summaries Type of Change), could you please swap the format options to list Web Page first and Excel Workbook second and make the Web Page the default format? Thank you.

Comment entered 2014-04-09 16:25:05 by Juthe, Robin (NIH/NCI) [E]

Another note for testing on QA: The Excel report must be run in Chrome or Firefox.

Comment entered 2014-04-10 10:33:18 by Osei-Poku, William (NIH/NCI) [C]

Excel reports work in IE on PROD and QA. The fix for the Excel issues did not work on DEV for some reason and CBIIT continues to troubleshoot the problem.

Comment entered 2014-04-15 13:51:48 by Juthe, Robin (NIH/NCI) [E]

The Global versions of this report (all permission requests for Eng/Spn, all denied requests) are not working. The column headings come up but no data appears. The specific versions are pulling in the data.

Comment entered 2014-04-15 14:16:42 by Kline, Bob (NIH/NCI) [C]

Query term definitions were missing. I have plugged in the missing definitions and the Media documents are being reindexed. Should work OK later this evening or tomorrow morning.

Comment entered 2014-04-15 14:17:31 by Juthe, Robin (NIH/NCI) [E]

Thanks, Bob! I'll try again later.

Comment entered 2014-04-15 14:50:07 by Juthe, Robin (NIH/NCI) [E]

It's working now. That was quick 🙂

Comment entered 2014-04-18 17:55:01 by Juthe, Robin (NIH/NCI) [E]

Verified on QA.

Comment entered 2014-04-30 17:03:48 by Juthe, Robin (NIH/NCI) [E]

The interface for the permissions report is messed up on prod. The first two boxes (option 1 & 2) fall off the page on the right. I've attached a screenshot. Thanks.

Comment entered 2014-04-30 17:32:00 by Kline, Bob (NIH/NCI) [C]

Someone has gone in and set IE on PROD to use a non-standard way of displaying standard HTML (you'll notice that every other browser does it right). Try clicking on the Page menu, select Compatibility View Settings, uncheck the "Display intranet sites in Compatibility View" box, and let me know if that doesn't help.

Comment entered 2014-04-30 17:39:35 by Juthe, Robin (NIH/NCI) [E]

Like magic! I unchecked that setting and it looks fine now. Thanks!

Comment entered 2014-05-01 09:44:02 by Juthe, Robin (NIH/NCI) [E]

Verified on prod.

Attachments
File Name Posted User
Media Permissions Report Specs.doc 2014-02-27 10:20:42
screenshot-1.jpg 2014-04-30 17:03:48

Elapsed: 0:00:00.000520