Commit 541231a0 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch '337432-remove-including_project_and_with_prometheus_integration-scopes' into 'master'

Remove unused including_project & with_prometheus_integration scopes

See merge request gitlab-org/gitlab!73929
parents 7db1a691 3b6a68b2
......@@ -134,7 +134,6 @@ module EE
joins(:ci_feature_usages).where(ci_feature_usages: join_conditions).group(:id)
end
scope :including_project, ->(project) { where(id: project) }
scope :with_wiki_enabled, -> { with_feature_enabled(:wiki) }
scope :within_shards, -> (shard_names) { where(repository_storage: Array(shard_names)) }
scope :verification_failed_repos, -> { joins(:repository_state).merge(ProjectRepositoryState.verification_failed_repos) }
......@@ -157,7 +156,6 @@ module EE
end
scope :with_slack_integration, -> { joins(:slack_integration) }
scope :with_slack_slash_commands_integration, -> { joins(:slack_slash_commands_integration) }
scope :with_prometheus_integration, -> { joins(:prometheus_integration) }
scope :aimed_for_deletion, -> (date) { where('marked_for_deletion_at <= ?', date).without_deleted }
scope :not_aimed_for_deletion, -> { where(marked_for_deletion_at: nil) }
scope :with_repos_templates, -> { where(namespace_id: ::Gitlab::CurrentSettings.current_application_settings.custom_project_templates_group_id) }
......
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