Issue Number | 4440 |
---|---|
Summary | [Publishing] Update Email Subject Line |
Created | 2018-03-14 14:51:22 |
Issue Type | Improvement |
Submitted By | Englisch, Volker (NIH/NCI) [C] |
Assigned To | Kline, Bob (NIH/NCI) [C] |
Status | Closed |
Resolved | 2018-06-07 13:43:51 |
Resolution | Fixed |
Path | /home/bkline/backups/jira/ocecdr/issue.222637 |
We're currently using two different email subject formats to identify
system generated messages:
a. [DEV] CDR Publishing Job 16381
b. [DEV] CDR Scheduler service restarted
c. CBIIT-DEV: Nightly Publishing Finished
d. CBIIT-DEV: Status and Error Report for Nightly Publishing
Please update our email notifications to use the format of the first two examples.
Code injecting "CBIIT-" at the front of subject lines:
d:/cdr/lib/Python/cdr.py: return u"CBIIT-%s: %s" % (_Control.TIER.name, text)
d:/cdr/lib/Python/cdr_stats.py: subject = "CBIIT-%s: %s" %(self.TIER.name, self.title)
d:/cdr/lib/Python/CTGovUpdateReportBatch.py: subj = "CBIIT-%s: CTGov Update Report has failed" % TIER.name
d:/cdr/lib/Python/CTGovUpdateReportBatch.py: subj = "CBIIT-%s: CTGov Update Report has completed" % TIER.name
d:/cdr/Scheduler/tasks/gov_delivery_reports.py: subject = "CBIIT-%s: %s" % (self.TIER.name, self.title)
d:/cdr/Scheduler/tasks/licensee_list.py: subject = "CBIIT-%s: %s" % (cdr.Tier().name, title)
d:/cdr/Scheduler/tasks/push_job_verifier.py: subject = "CBIIT-%s: Push job %d stalled" % (self.tier, job_id)
d:/cdr/Scheduler/tasks/push_job_verifier.py: subject = ("CBIIT-%s: Problems with loading of job %d "
d:/cdr/Scheduler/tasks/translation_jobs.py: subject = "CBIIT-%s: %s" % (cdr.Tier().name, control.title)
d:/cdr/Mailers/cdrmailer.py: subject = "CBIIT-%s: Emailer lookup table failure" % tier
d:/cdr/Mailers/cdrmailer.py: subject = "CBIIT-%s: CDR Mailer Job Status" % self.__TIER.name
d:/cdr/Publishing/CheckHotfixRemove.py: subject = "CBIIT-%s: %s" % args
d:/cdr/Publishing/CheckHotfixRemove.py: subject = "CBIIT-%s: %s" % args
d:/cdr/Publishing/GD_ChangedDocs.py: subject = "CBIIT-%s: %s (%s)" % (cdr.Tier().name, title, language)
d:/cdr/Publishing/GD_NewTrials.py: subject = "CBIIT-%s: %s" % (TIER.name, title)
d:/cdr/Publishing/LicenseeList.py: subject = "CBIIT-%s: %s" % args
d:/cdr/Publishing/PCIBStatsReport.py: subject = "CBIIT-%s: %s" % (cdr.Tier().name, title)
d:/cdr/Publishing/PubEmail.py:subject = "CBIIT-%s: %s" % (cdr.Tier().name, sys.argv[1])
d:/cdr/Publishing/SubmitPubJob.py: subject = 'CBIIT-%s: %s' % (TIER, header)
d:/cdr/Publishing/SubmitPubJob.py: subject = 'CBIIT-%s: Status and Error Report for %s Publishing' % args
d:/cdr/Publishing/SubmitPubJob.py: subject = '*** [CBIIT-%s] SubmitPubJob.py - Standard Failure' % TIER
~volker: This will require a release. Do you want to add it to Ising?
Subjects normalized on DEV.
https://github.com/NCIOCPL/cdr-publishing/commit/d674f8f
https://github.com/NCIOCPL/cdr-publishing/commit/428b5a2
https://github.com/NCIOCPL/cdr-lib/commit/ac3f0d5
https://github.com/NCIOCPL/cdr-scheduler/commit/2591ed7
https://github.com/NCIOCPL/cdr-publishing/commit/7a565bc
These changes look good on DEV.
These changes look good on QA.
The subject lines for our automated jobs are now synced up across all
tiers.
Closing ticket.
Elapsed: 0:00:00.001648