diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-07 03:08:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-07 03:08:48 +0300 |
commit | 29e19880e22c31eef2d007647b0c46db8f0e7a04 (patch) | |
tree | 027c642958a2bec4983d0e6eed8690df57dfeeb6 /app/models/integration.rb | |
parent | 02c6800ac51fc1a504f527426d6cc5a780481a1d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/integration.rb')
-rw-r--r-- | app/models/integration.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/integration.rb b/app/models/integration.rb index 32aaee4b49e..3101d257d9e 100644 --- a/app/models/integration.rb +++ b/app/models/integration.rb @@ -96,6 +96,9 @@ class Integration < ApplicationRecord validate :validate_belongs_to_project_or_group scope :external_issue_trackers, -> { where(category: 'issue_tracker').active } + # TODO: Will be modified in 15.0 + # Details: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/74501#note_744393645 + scope :third_party_wikis, -> { where(type: %w[Integrations::Confluence Integrations::Shimo]).active } scope :by_name, ->(name) { by_type(integration_name_to_type(name)) } scope :external_wikis, -> { by_name(:external_wiki).active } scope :active, -> { where(active: true) } |