CDR Tickets

Issue Number 4320
Summary GovDelivery Reports with Incorrect Date Range
Created 2017-10-02 14:38:06
Issue Type Bug
Submitted By Englisch, Volker (NIH/NCI) [C]
Assigned To Englisch, Volker (NIH/NCI) [C]
Status Closed
Resolved 2017-10-19 15:25:38
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.215124
Description

The GovDelivery reports ran on Sunday, Oct. 1st as scheduled. However, instead of running the report for the date range of 2017-09-24 through 2017-10-01 the report was running for the week before that (17th through 24th).

Comment entered 2017-10-02 15:06:12 by Englisch, Volker (NIH/NCI) [C]

I reran the report on PROD specifying the date range manually. In addition, I modified the parameters to exclude the running of the GD trials report since this is now obsolete.

Comment entered 2017-10-12 12:27:13 by Englisch, Volker (NIH/NCI) [C]

I was able to identify the root of the problem but I'm not able to properly explain it and I'll leave that up to . :-)
As far as I can the the problem is the usage of class variables instead of instance variables for the definition of the date range values. Class variables are set only when the scheduler is started while instance variables are set when the report runs.

I'm currently testing the changes on DEV.

Comment entered 2017-10-19 15:25:21 by Englisch, Volker (NIH/NCI) [C]

The changes fixed the problem and the report was running with the correct date range now. The changes have been included as part of Fermi:

Comment entered 2017-10-24 11:01:30 by Juthe, Robin (NIH/NCI) [E]

How do you recommend we test this?

Comment entered 2017-10-24 11:40:12 by Englisch, Volker (NIH/NCI) [C]

We can submit this report manually from the scheduler on two different days. The date range for both reports should be different. With the current report the date range would be identical unless the scheduler has been restarted.

Comment entered 2017-10-24 11:44:22 by Juthe, Robin (NIH/NCI) [E]

Ah, okay - that makes sense. Would you have time to submit this report today (and again tomorrow or Thursday)? If possible, could it be sent to you, me, Margaret, and Diana only so we don't confuse anyone else? Thanks!

Comment entered 2017-10-24 11:53:49 by Englisch, Volker (NIH/NCI) [C]

Since you haven't asked me for any favors in the last two weeks I think I can do that. :-)

Comment entered 2017-10-26 12:02:20 by Juthe, Robin (NIH/NCI) [E]

Verified on QA.

Comment entered 2017-12-04 18:23:47 by Englisch, Volker (NIH/NCI) [C]

Last Sunday the GovDelivery report ran for the first time since Fermi is on PROD without a specific date range specified and the report picked the correct range automatically.

Closing this ticket.

Elapsed: 0:00:00.001371