Bugzilla – Attachment 125587 Details for
Bug 25429
`cleanup_database.pl` should remove resolved claims returned after X days
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25429: Require command line switch to enable, control DAYS via syspref
Bug-25429-Require-command-line-switch-to-enable-co.patch (text/plain), 1.97 KB, created by
Marcel de Rooy
on 2021-10-01 09:02:53 UTC
(
hide
)
Description:
Bug 25429: Require command line switch to enable, control DAYS via syspref
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-10-01 09:02:53 UTC
Size:
1.97 KB
patch
obsolete
>From 033407d88081baee5519a11dc39ba3ceed3e68aa Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 13 May 2021 09:28:36 -0400 >Subject: [PATCH] Bug 25429: Require command line switch to enable, control > DAYS via syspref >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > misc/cronjobs/cleanup_database.pl | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > >diff --git a/misc/cronjobs/cleanup_database.pl b/misc/cronjobs/cleanup_database.pl >index 0a4ab9b32f..84db2b9210 100755 >--- a/misc/cronjobs/cleanup_database.pl >+++ b/misc/cronjobs/cleanup_database.pl >@@ -109,7 +109,8 @@ Usage: $0 [-h|--help] [--confirm] [--sessions] [--sessdays DAYS] [-v|--verbose] > --pseudo-transactions-from YYYY-MM-DD and/or --pseudo-transactions-to YYYY-MM-DD > --labels DAYS Purge item label batches last added to more than DAYS days ago. > --cards DAY Purge card creator batches last added to more than DAYS days ago. >- >+ --return-claims Purge all resolved return claims older than the number of days specified in >+ the system preference CleanUpDatabaseReturnClaims. > USAGE > exit $_[0]; > } >@@ -129,7 +130,7 @@ my $pZ3950; > my $pListShareInvites; > my $pDebarments; > my $allDebarments; >-my $return_claims = C4::Context->preference('CleanUpDatabaseReturnClaims'); >+my $return_claims; > my $pExpSelfReg; > my $pUnvSelfReg; > my $fees_days; >@@ -186,6 +187,7 @@ GetOptions( > 'pseudo-transactions-to:s' => \$pPseudoTransactionsTo, > 'labels' => \$labels, > 'cards' => \$cards, >+ 'return-claims' => \$return_claims, > ) || usage(1); > > # Use default values >@@ -528,6 +530,7 @@ if ($pStatistics) { > } > } > >+$return_claims = C4::Context->preference('CleanUpDatabaseReturnClaims') if $return_claims; > if ($return_claims) { > print "Purging return claims older than $return_claims days.\n" if $verbose; > >-- >2.20.1
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 25429
:
104611
|
104612
|
104798
|
114601
|
114602
|
115042
|
115086
|
115087
|
115088
|
115089
|
115090
|
115907
|
115908
|
118880
|
118881
|
119219
|
120927
|
120928
|
120929
|
120930
|
125584
|
125585
|
125586
| 125587 |
125588