Add server-side pagination to SearchFilesByName
In prior versions, Wiki operations use SearchFilesByName RPC to
access files in Wiki repositories. Gitaly did not support limit
and offset. Rails has to fetch all available pages and perform
pagination from its side with Karinami. This commit adds those
fields to the corresponding request after Gitaly adds such
functionality.
Changelog: performance
Signed-off-by:
Quang-Minh Nguyen <qmnguyen@gitlab.com>
显示
- Gemfile 1 个添加, 1 个删除Gemfile
- Gemfile.checksum 1 个添加, 1 个删除Gemfile.checksum
- Gemfile.lock 2 个添加, 2 个删除Gemfile.lock
- app/models/wiki.rb 8 个添加, 8 个删除app/models/wiki.rb
- lib/gitlab/git/repository.rb 4 个添加, 4 个删除lib/gitlab/git/repository.rb
- lib/gitlab/gitaly_client/repository_service.rb 4 个添加, 4 个删除lib/gitlab/gitaly_client/repository_service.rb
- spec/support/shared_examples/models/wiki_shared_examples.rb 42 个添加, 7 个删除spec/support/shared_examples/models/wiki_shared_examples.rb
加载中
想要评论请 注册 或 登录