Commit a42d84ec authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Faster autocomplete without unused description

parent 25a5c848
...@@ -119,7 +119,7 @@ class ProjectsController < ApplicationController ...@@ -119,7 +119,7 @@ class ProjectsController < ApplicationController
} }
respond_to do |format| respond_to do |format|
format.json { render :json => @suggestions } format.json { render json: @suggestions }
end end
end end
......
...@@ -5,11 +5,11 @@ module Projects ...@@ -5,11 +5,11 @@ module Projects
end end
def issues def issues
@project.issues.opened.select([:iid, :title, :description]) @project.issues.opened.select([:iid, :title])
end end
def merge_requests def merge_requests
@project.merge_requests.opened.select([:iid, :title, :description]) @project.merge_requests.opened.select([:iid, :title])
end end
end end
end end
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