gitlab-org--gitlab-foss/app/services/test_hooks
Francisco Javier López dde69bfb2a Added list_pages method to avoid loading all wiki pages content
Inside a wiki, when we show the sidebar or browse to the `pages`,
all page contents are retrieved from Gitaly and that is a waste
of resources, since no content from that pages are going to be
showed.

This MR introduces the method `ProjectWiki#list_pages`,
which uses new wiki_list_pages RPC call to retrieve
pages without content

Also in the `WikisController` we're using the method to show
pages in the sidebar and also on the `pages` page.
2019-04-25 04:19:07 +00:00
..
base_service.rb
project_service.rb Added list_pages method to avoid loading all wiki pages content 2019-04-25 04:19:07 +00:00
system_service.rb Externalize strings detected by rubocop-i18n 2019-04-15 12:25:48 +00:00