Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
entitlements-app (1.2.5)
entitlements-app (1.2.6)
concurrent-ruby (~> 1.3, >= 1.3.1)
dogstatsd-ruby (~> 5.7)
faraday (~> 2.0)
Expand Down
3 changes: 3 additions & 0 deletions lib/entitlements.rb
Original file line number Diff line number Diff line change
Expand Up @@ -491,13 +491,16 @@ def self.calculate_actions
calc_start = Time.now
actions = []
Entitlements.child_classes.map do |group_name, obj|
group_start = Time.now
logger.debug("Begin calculation for #{group_name}")
provider = Entitlements.config["groups"].fetch(group_name).fetch("type")
timed_operation(phase: "calculate", provider: provider, target: group_name) { obj.calculate }
if obj.change_count > 0
logger.debug "Group #{group_name.inspect} contributes #{obj.change_count} change(s)."
cache[:change_count] += obj.change_count
end
actions.concat(obj.actions)
logger.debug("Finished calculation for #{group_name} in #{Time.now - group_start}")
end
logger.debug("Finished all calculations in #{Time.now - calc_start}")
logger.debug("Finished all prefetch, validate, and calculation in #{Time.now - prep_start}")
Expand Down
2 changes: 1 addition & 1 deletion lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Entitlements
module Version
VERSION = "1.2.5"
VERSION = "1.2.6"
end
end
Loading