gitlab-org--gitlab-foss/lib/api/helpers/search_helpers.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
805 B
Ruby
Raw Normal View History

# 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.
%w(projects issues merge_requests milestones snippet_titles users)
end
def self.group_search_scopes
# This is a separate method so that EE can redefine it.
2018-09-17 08:54:32 -04:00
%w(projects issues merge_requests milestones users)
end
def self.project_search_scopes
# This is a separate method so that EE can redefine it.
2018-09-17 08:54:32 -04:00
%w(issues merge_requests milestones notes wiki_blobs commits blobs users)
end
def self.search_states
%w(all opened closed merged)
end
end
end
end
API::Helpers::SearchHelpers.prepend_mod_with('API::Helpers::SearchHelpers')