Commit 348cf49b authored by Mikołaj Wawrzyniak's avatar Mikołaj Wawrzyniak

Merge branch '337432-count_by_project_id-scope' into 'master'

Remove unused count_by_project_id scope

See merge request gitlab-org/gitlab!73923
parents 6ac239fe d388bb76
......@@ -41,8 +41,6 @@ module AlertEventLifecycle
scope :firing, -> { where(status: status_value_for(:firing)) }
scope :resolved, -> { where(status: status_value_for(:resolved)) }
scope :count_by_project_id, -> { group(:project_id).count }
def self.status_value_for(name)
state_machines[:status].states[name].value
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment