Issue Number | 3867 |
---|---|
Summary | PCIB Statistics Report |
Created | 2015-01-29 15:42:47 |
Issue Type | Improvement |
Submitted By | Englisch, Volker (NIH/NCI) [C] |
Assigned To | Englisch, Volker (NIH/NCI) [C] |
Status | Closed |
Resolved | 2016-01-29 14:58:34 |
Resolution | Fixed |
Path | /home/bkline/backups/jira/ocecdr/issue.146003 |
The PCIB statistics report is run as a scheduled job for Margaret. We created a web interface to allow this report to be run for different time periods than the default monthly run. CIAT voiced interest to being able to run this report as well and we want to ensure that the report run from the web sends a report to the logged on user while the automated job is submitted to Margaret.
We also want to restrict the job to be run only by users of the "ICRDB Statistics Notification" group.
I've modified the report as well as the web form to allow running the
report for a specified time frame and sending it to a specified email
address instead of sending the report to the default list of
recipients.
The report will still be submitted to the default list of recipients if
the email address field is left empty.
The following files have been updated:
RunPCIBStatReport.py
PCIBStatReport.py (renamed from ICRDBStatReport.py
The description of this ticket mentions to restrict the job to be run only by users of the ICRDB Statistics Notification group but I'm wondering if we really want to limit this report to only be run by the recipients of that group (currently Margaret, William, and Volker)
Ready for testing on DEV.
I don't think it needs to be restricted as long as people put their email address in so that the whole group doesn't get it every time anyone runs it. That was why we kept the initial group small. Can the person's email address be filled in by default?
Yes, that's how it is currently setup: If the person has an email address listed in the CDR the form with populate the field with the user's email address.
Then I think it is fine to not restrict it.
Volker, just noticed a couple of small things with this report.
1) Could you please change the name of this report in the e-mailed output from PCIB Status Report to PCIB Statistics Report? It says Statistics in the report menu but Status when you run it.
2) In the text that appears after your submit the report request, it should say "The report has been sent to you by email." (it says "send" now)
3) Should we remove the "(MB)" after the report name in the menu now that we're making it available to everyone?
Thanks!
"The report has been sent to you by email." (it says "send" now)
Just yesterday, I was discussing the importance of using proper grammar with my son. Please don't tell him. :-)
The following programs have been updated on DEV including the latest modifications:
R13789: BoardManagers.py (in cgi-bin/cdr)
R13791: RunPCIBStatReport.py (in cgi-bin/cdr)
R13792: PCIBStatsReport.py (in /cdr/publishing)
This is ready for review.
Verified on DEV. Thank you!
Verified on DEV. Thanks. Just a minor question. Can you put multiple emails in the email field so that the report goes to multiple people?
I don't think I've ever tried that. I'll have to check what the code is doing.
Don't bother, we are able to do that with other reports so I thought I would ask. I don't think this is a problem.
Verified on QA.
Verified on PROD.
Elapsed: 0:00:00.001827