Bugzilla – Attachment 55547 Details for
Bug 2389
overdue_notices.pl needs a test mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 2389: (followup) Add documentation and fix use case
Bug-2389-followup-Add-documentation-and-fix-use-ca.patch (text/plain), 1.79 KB, created by
Tomás Cohen Arazi (tcohen)
on 2016-09-13 17:43:13 UTC
(
hide
)
Description:
Bug 2389: (followup) Add documentation and fix use case
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2016-09-13 17:43:13 UTC
Size:
1.79 KB
patch
obsolete
>From 40c29c7ca8eef1459979a451d421692e92878ec6 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 13 Sep 2016 14:42:32 -0300 >Subject: [PATCH] Bug 2389: (followup) Add documentation and fix use case > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > misc/cronjobs/overdue_notices.pl | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl >index 0b9d623..cdff966 100755 >--- a/misc/cronjobs/overdue_notices.pl >+++ b/misc/cronjobs/overdue_notices.pl >@@ -69,6 +69,7 @@ overdue_notices.pl > -borcat <categorycode> category code that must be included > -borcatout <categorycode> category code that must be excluded > -t only include triggered overdues >+ --test Run in test mode. No changes will be made on the DB. > -list-all list all overdues > -date <yyyy-mm-dd> emulate overdues run for this date > -email <email_type> type of email that will be used. Can be 'email', 'emailpro' or 'B_email'. Repeatable. >@@ -159,6 +160,13 @@ the cron schedule to ensure proper behavior. > Add the --triggered option for daily cron, at the risk of no notice > being generated if the cron fails to run on time. > >+=item B<-test> >+ >+This option makes the script run in test mode. >+ >+In test mode, the script won't make any changes on the DB. This is usefull >+for debugging configurations. >+ > =item B<-list-all> > > Default items.content lists only those items that fall in the >@@ -813,7 +821,7 @@ END_SQL > attachments => [$attachment], > to_address => $admin_email_address, > } >- ); >+ ) unless $test_mode; > } > > } >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 2389
:
55143
|
55383
|
55547
|
55782
|
55783
|
55812
|
55813