Bugzilla – Attachment 75289 Details for
Bug 18821
TrackLastPatronActivity is a performance killer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18821 - (follow-up) adds POD to track_login_for_session, removes tab in Auth.t
Bug-18821---follow-up-adds-POD-to-trackloginforses.patch (text/plain), 1.58 KB, created by
Charles Farmer
on 2018-05-11 20:31:34 UTC
(
hide
)
Description:
Bug 18821 - (follow-up) adds POD to track_login_for_session, removes tab in Auth.t
Filename:
MIME Type:
Creator:
Charles Farmer
Created:
2018-05-11 20:31:34 UTC
Size:
1.58 KB
patch
obsolete
>From 96202cfa048a75029e5e2487094679de4c93f270 Mon Sep 17 00:00:00 2001 >From: Charles Farmer <charles.farmer@inLibro.com> >Date: Fri, 11 May 2018 16:27:39 -0400 >Subject: [PATCH] Bug 18821 - (follow-up) adds POD to track_login_for_session, > removes tab in Auth.t > >--- > C4/Auth.pm | 11 +++++++++++ > t/db_dependent/Auth.t | 2 +- > 2 files changed, 12 insertions(+), 1 deletion(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 614cb0a..00e92cc 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -2076,6 +2076,17 @@ sub getborrowernumber { > return 0; > } > >+=head2 track_login_for_session >+ >+ track_login_for_session( $userid, $session ); >+ >+C<$userid> the userid of the member >+C<$session> the CGI::Session object used to store the session's state. >+ >+Wraps the call to $patron->track_login, the method used to update borrowers.lastseen. >+ >+=cut >+ > sub track_login_for_session { > my ( $userid, $session ) = @_; > >diff --git a/t/db_dependent/Auth.t b/t/db_dependent/Auth.t >index cf80b50..a9b5b17 100644 >--- a/t/db_dependent/Auth.t >+++ b/t/db_dependent/Auth.t >@@ -94,7 +94,7 @@ subtest 'track_login_for_session() tests' => sub { > $patron->_result()->discard_changes(); > isnt( $patron->lastseen, undef, 'Patron should have last seen set when TrackLastPatronActivity = 1' ); > >- sleep(1); # We need to wait a tiny bit to make sure the timestamp will be different >+ sleep(1); # We need to wait a tiny bit to make sure the timestamp will be different > my $last_seen = $patron->lastseen; > C4::Auth::track_login_for_session( $userid, $session ); > $patron->_result()->discard_changes(); >-- >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 18821
:
64425
|
64426
|
65687
|
73175
|
73706
|
73863
|
73891
|
73892
|
73893
|
75139
|
75288
|
75289
|
75427
|
75632
|
75633
|
75634
|
75635
|
75727
|
75728
|
75729
|
75733