diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-11-22 12:32:10 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-11-22 18:30:51 +0300 |
commit | 689658456f706be7278fbf50fcde9c7f43cd0655 (patch) | |
tree | e3102dc269a9b723757ab67e7e5cb418012a832f | |
parent | 418947b6ce3da1c62b6449c4782d3e979eb82a07 (diff) |
Cache allowed_ids
-rw-r--r-- | lib/gitlab/cycle_analytics/base_event_fetcher.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/cycle_analytics/base_event_fetcher.rb b/lib/gitlab/cycle_analytics/base_event_fetcher.rb index 62fc3ee3b5f..e3e3767cc75 100644 --- a/lib/gitlab/cycle_analytics/base_event_fetcher.rb +++ b/lib/gitlab/cycle_analytics/base_event_fetcher.rb @@ -56,7 +56,7 @@ module Gitlab end def allowed_ids - allowed_ids_finder_class + @allowed_ids ||= allowed_ids_finder_class .new(@options[:current_user], project_id: @project.id) .execute.where(id: event_result_ids).pluck(:id) end |