Method: Autocomplete::RoutesFinder#execute

Defined in:
app/finders/autocomplete/routes_finder.rb

#executeObject



15
16
17
18
19
20
21
22
23
24
# File 'app/finders/autocomplete/routes_finder.rb', line 15

def execute
  return Route.none if @search.blank?

  Route
    .for_routable(routables)
    .sort_by_path_length
    .fuzzy_search(@search, [:path])
    .allow_cross_joins_across_databases(url: 'https://gitlab.com/gitlab-org/gitlab/-/issues/421843')
    .limit(LIMIT)
end