Commit ab6a94ab authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'remove-issue-trackers-scope' into 'master'

Remove issue_trackers scope

See merge request gitlab-org/gitlab!38390
parents b8f5c54d 1d3d8e9f
......@@ -56,7 +56,7 @@ class Service < ApplicationRecord
validates :instance, uniqueness: { scope: :type }, if: -> { instance? }
validate :validate_is_instance_or_template
scope :issue_trackers, -> { where(category: 'issue_tracker') }
scope :external_issue_trackers, -> { where(category: 'issue_tracker').active }
scope :external_wikis, -> { where(type: 'ExternalWikiService').active }
scope :active, -> { where(active: true) }
scope :by_type, -> (type) { where(type: type) }
......@@ -76,7 +76,6 @@ class Service < ApplicationRecord
scope :wiki_page_hooks, -> { where(wiki_page_events: true, active: true) }
scope :deployment_hooks, -> { where(deployment_events: true, active: true) }
scope :alert_hooks, -> { where(alert_events: true, active: true) }
scope :external_issue_trackers, -> { issue_trackers.active }
scope :deployment, -> { where(category: 'deployment') }
default_value_for :category, 'common'
......
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