);
for my $def ( @$defs ) {
- next if ($granularity && $def->granularity ne $granularity );
+ next if ($granularity && lc($def->granularity) ne lc($granularity) );
if ($def->usr_field && $def->opt_in_setting) {
my $ufield = $def->usr_field;
}
for my $def ( @$defs ) {
- next if ($granularity && $def->granularity ne $granularity );
+ next if ($granularity && lc($def->granularity) ne lc($granularity) );
my $date = DateTime->now->subtract( seconds => interval_to_seconds($def->delay) );
if (defined $granularity) {
if ($granflag) {
- $query->[0]->{'+atevdef'} = {granularity => $granularity};
+ $query->[0]->{'+atevdef'} = {granularity => {
+ '=' => {
+ transform => 'evergreen.lowercase',
+ value => lc($granularity)
+ }
+ }};
} else {
$query->[0]->{'+atevdef'} = {'-or' => [ {granularity => $granularity}, {granularity => undef} ] };
}
==== Upgrade Notes ====
-The 'granularity' field in the staff client Action Trigger Event
-Definition configuration interface (Admin -> Local Administration ->
-Notifications / Action Triggers) is now case sensitive. Previously,
-entering, for example, 'hourly' would be automatically modified to
-'Hourly'. Now, 'hourly' and 'Hourly' are each valid, distinct values.
+The --granularity setting of the action_trigger_runner.pl is now
+case insensitive. So events that have different settings for
+their 'granularity' field that only differ in case
+will be processed together.
-This is important because the granularitiy values configured on the
-server for processing action/trigger events are case sensitive as
-well.
+If you relied upon different events being processed seperately when
+their granularity setting differed only by case the you will need
+to modify your setup to use more distinct granularity settings.