Skip to content

Commit b6c4adc

Browse files
committedOct 21, 2011
Fix bucket name truncation in the bucket log, and don't forget to check the delta interval when summarizing.
1 parent 9ef8f09 commit b6c4adc

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed
 

‎docs/changelog/7.x.x.txt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- fixed #12201: AssetReport - no selects.
55
- fixed #12269: Login / Loginbox with encryptlogin
66
- fixed #12271: Calendar List View does not always show labels
7+
- fixed Passive Analytics, UI, Progress Bar, server load.
78

89
7.10.23
910
- fixed #12225: Stock asset, multiple instances on a page

‎docs/upgrades/upgrade_7.10.23-7.10.24.pl

+13
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ BEGIN
3333
# upgrade functions go here
3434
addPALastLogTable($session);
3535
addForkRedirect($session);
36+
extendBucketName($session);
3637

3738
finish($session); # this line required
3839

@@ -68,6 +69,18 @@ sub addForkRedirect {
6869
print "DONE!\n" unless $quiet;
6970
}
7071

72+
#----------------------------------------------------------------------------
73+
# Describe what our function does
74+
sub extendBucketName {
75+
my $session = shift;
76+
print "\tExtend the size of the bucket name in the bucketLog table for Passive Analytics... " unless $quiet;
77+
# and here's our code
78+
$session->db->write(<<EOSQL);
79+
ALTER TABLE bucketLog CHANGE COLUMN Bucket Bucket CHAR(255)
80+
EOSQL
81+
print "DONE!\n" unless $quiet;
82+
}
83+
7184
#----------------------------------------------------------------------------
7285
# Describe what our function does
7386
#sub exampleFunction {

‎lib/WebGUI/Workflow/Activity/SummarizePassiveAnalytics.pm

+3-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ sub execute {
113113
$recordLast->execute([ (@{ $logLine }{qw/userId sessionId timeStamp url/}) ]);
114114
if ($lastLine->{timeStamp}) {
115115
my $delta = $logLine->{timeStamp} - $lastLine->{timeStamp};
116-
$deltaLog->execute([ (@{ $lastLine }{qw/userId assetId timeStamp url/}), $delta]);
116+
if ($delta <= $deltaInterval) {
117+
$deltaLog->execute([ (@{ $lastLine }{qw/userId assetId timeStamp url/}), $delta]);
118+
}
117119
}
118120
if (time() > $endTime) {
119121
$expired = 1;

‎t/supporting_collateral/passiveAnalyticsLog

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ user2 session21 200 /yelnats
66
user2 session21 202 /one/uno
77
user2 session21 205 /whatever
88
user2 session21 210 /something_else
9+
user2 session21 610 /something_else

0 commit comments

Comments
 (0)
Please sign in to comment.