CDR Tickets

Issue Number 5078
Summary [DIS] Drug Reference - Email report of links to be deleted
Created 2021-12-16 17:10:03
Issue Type Task
Submitted By Shields, Victoria (NIH/NCI) [E]
Assigned To Kline, Bob (NIH/NCI) [C]
Status Closed
Resolved 2022-02-07 10:42:54
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.307095
Description

Christina would like a report that will tell her which DrugReference blocks will be deleted so she can manually edit anything that shouldn't be deleted.

The report should be generated on the 1st of the month and should include links that will be deleted the following month. It sent via email to Christina and Mary.

Comment entered 2021-12-16 17:33:00 by Kline, Bob (NIH/NCI) [C]

So have you decided whether you're going to be adding the date of the blog posts or the date of the links (that is, whether we will removing links to old blog posts or old links to blog posts) and what the "sell-by" date's interval will be? This report will need that information.

Comment entered 2022-01-06 14:11:13 by Kline, Bob (NIH/NCI) [C]

Robin says we should use the date of the link.

Comment entered 2022-01-07 09:31:01 by Kline, Bob (NIH/NCI) [C]

Does "should be generated on the 1st of the month" mean a user will run this report and mail it to Christina and Mary? Or did you mean to request this as a report to be implemented under the scheduler?

Comment entered 2022-01-07 10:13:48 by Juthe, Robin (NIH/NCI) [E]

We'd like this report to be implemented using the scheduler such that it's an automated, emailed report each month. Thanks.

Comment entered 2022-01-07 12:24:12 by Kline, Bob (NIH/NCI) [C]

Have you decided in which release you would like this feature included?

Comment entered 2022-01-13 13:51:48 by Kline, Bob (NIH/NCI) [C]

Moved into Ohm at the status meeting.

Comment entered 2022-01-20 13:22:04 by Kline, Bob (NIH/NCI) [C]

Have you decided how old a link should be before we decide it should be removed?

Comment entered 2022-01-20 14:09:21 by Juthe, Robin (NIH/NCI) [E]

the links should be removed after 3 years/36 months.

Comment entered 2022-01-20 15:43:27 by Kline, Bob (NIH/NCI) [C]

Should the report also include links which should be deleted before the following month? For example, links which were reported earlier as expiring but for some reason haven't been deleted yet. Say a link was added January 1, 2020. On December 1, 2022 the link is reported as among those which will be deleted in January of the following year. But for some reason the link doesn't get deleted until the middle of March of that year. Should the link be included on the reports generated in January, February, and March?

Comment entered 2022-01-20 17:16:47 by Kline, Bob (NIH/NCI) [C]

Also, unless you instruct otherwise, the job will not be rounding to the nearest month when it calculates the cutoff. So if it is run manually from the scheduler in the middle of the month, the cutoff will be different than it was when run on the first of the month, and different from what it will be for the next scheduled run.

Comment entered 2022-01-21 09:53:19 by Kline, Bob (NIH/NCI) [C]

Implemented and installed on DEV to run at 9am on the 1st of every month. I can run manual jobs on request as needed for testing. On DEV and QA I set the distribution group to Robin, Victoria, and myself. On the upper tiers Christina and Mary will get the report.

Comment entered 2022-02-01 09:47:31 by Kline, Bob (NIH/NCI) [C]

Fixed a bug in the join SQL.

Comment entered 2022-02-03 10:29:04 by Osei-Poku, William (NIH/NCI) [C]

Hi  Can you please add me to the scheduled report on DEV and QA ? Thanks!

Comment entered 2022-02-03 12:33:40 by Kline, Bob (NIH/NCI) [C]

I added you to the Expiring Links Notification group on DEV and QA, but you're aware you have the permissions you need to modify group membership yourself, right?

Comment entered 2022-02-03 14:21:30 by Kline, Bob (NIH/NCI) [C]

Please change the subject line to Drug Information Summaries Expiring Links.

Comment entered 2022-02-07 10:42:54 by Kline, Bob (NIH/NCI) [C]

Subject line modified as requested.

Comment entered 2022-06-13 12:37:20 by Osei-Poku, William (NIH/NCI) [C]

Verified on DEV. Thanks!

Comment entered 2022-06-23 09:35:39 by Osei-Poku, William (NIH/NCI) [C]

Please manually generate this report on QA for testing. Thanks!

Comment entered 2022-06-23 10:18:18 by Kline, Bob (NIH/NCI) [C]

Done.

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

Verified on QA. Thanks!

Elapsed: 0:00:00.000632