2019-07-07 11:18:12 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Helpers
|
|
|
|
module SearchHelpers
|
|
|
|
def self.global_search_scopes
|
|
|
|
# This is a separate method so that EE can redefine it.
|
2020-05-24 23:13:21 +05:30
|
|
|
%w(projects issues merge_requests milestones snippet_titles users)
|
2019-07-07 11:18:12 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def self.group_search_scopes
|
|
|
|
# This is a separate method so that EE can redefine it.
|
|
|
|
%w(projects issues merge_requests milestones users)
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.project_search_scopes
|
|
|
|
# This is a separate method so that EE can redefine it.
|
|
|
|
%w(issues merge_requests milestones notes wiki_blobs commits blobs users)
|
|
|
|
end
|
2020-11-24 15:15:51 +05:30
|
|
|
|
|
|
|
def self.search_states
|
|
|
|
%w(all opened closed merged)
|
|
|
|
end
|
2019-07-07 11:18:12 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-12-04 20:38:33 +05:30
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
API::Helpers::SearchHelpers.prepend_mod_with('API::Helpers::SearchHelpers')
|