Skip to content
Snippets Groups Projects

Resolve "SaaS Service Ping Metrics Failures causing null UMAU value"

All threads resolved!
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -723,7 +723,9 @@ def stage_manage_events(time_period)
@@ -723,7 +723,9 @@ def stage_manage_events(time_period)
else
else
# rubocop: disable CodeReuse/ActiveRecord
# rubocop: disable CodeReuse/ActiveRecord
# rubocop: disable UsageData/LargeTable
# rubocop: disable UsageData/LargeTable
estimate_batch_distinct_count(::Event.where(time_period), :author_id)
start = ::Event.where(time_period).select(:id).order(created_at: :asc).first&.id
 
finish = ::Event.where(time_period).select(:id).order(created_at: :asc).first&.id
 
estimate_batch_distinct_count(::Event.where(time_period), :author_id, start: start, finish: finish)
# rubocop: enable UsageData/LargeTable
# rubocop: enable UsageData/LargeTable
# rubocop: enable CodeReuse/ActiveRecord
# rubocop: enable CodeReuse/ActiveRecord
end
end
Loading