Don't store full blob path in ES filename field
This verifies the changed indexer behaviour from https://gitlab.com/gitlab-org/gitlab-elasticsearch-indexer/merge_requests/44 We're also renaming the blob-related code to use `path` rather than `filename`, to be consistent with the `Path` field in the ES index, and the intention of this code (which deals with full paths, rather than just filenames). This also removes the `Elasticsearch::Git::LiteBlob` class, which isn't used anymore and a leftover from the Ruby indexer which was removed in https://gitlab.com/gitlab-org/gitlab/merge_requests/15641
显示
- GITLAB_ELASTICSEARCH_INDEXER_VERSION 1 个添加, 1 个删除GITLAB_ELASTICSEARCH_INDEXER_VERSION
- app/helpers/search_helper.rb 3 个添加, 2 个删除app/helpers/search_helper.rb
- app/views/search/results/_blob.html.haml 2 个添加, 2 个删除app/views/search/results/_blob.html.haml
- app/views/search/results/_blob_data.html.haml 1 个添加, 1 个删除app/views/search/results/_blob_data.html.haml
- app/views/search/results/_wiki_blob.html.haml 1 个添加, 1 个删除app/views/search/results/_wiki_blob.html.haml
- doc/api/search.md 19 个添加, 0 个删除doc/api/search.md
- ee/app/helpers/ee/search_helper.rb 3 个添加, 3 个删除ee/app/helpers/ee/search_helper.rb
- ee/changelogs/unreleased/7832-only-store-basename-in-filename.yml 5 个添加, 0 个删除...elogs/unreleased/7832-only-store-basename-in-filename.yml
- ee/lib/elasticsearch/git/lite_blob.rb 0 个添加, 27 个删除ee/lib/elasticsearch/git/lite_blob.rb
- ee/lib/gitlab/elastic/search_results.rb 4 个添加, 4 个删除ee/lib/gitlab/elastic/search_results.rb
- ee/spec/helpers/search_helper_spec.rb 1 个添加, 1 个删除ee/spec/helpers/search_helper_spec.rb
- ee/spec/lib/gitlab/elastic/search_results_spec.rb 1 个添加, 1 个删除ee/spec/lib/gitlab/elastic/search_results_spec.rb
- ee/spec/models/concerns/elastic/repository_spec.rb 8 个添加, 0 个删除ee/spec/models/concerns/elastic/repository_spec.rb
- ee/spec/requests/api/search_spec.rb 3 个添加, 3 个删除ee/spec/requests/api/search_spec.rb
- lib/api/entities.rb 6 个添加, 1 个删除lib/api/entities.rb
- lib/gitlab/file_finder.rb 9 个添加, 8 个删除lib/gitlab/file_finder.rb
- lib/gitlab/search/found_blob.rb 25 个添加, 29 个删除lib/gitlab/search/found_blob.rb
- lib/gitlab/wiki_file_finder.rb 3 个添加, 3 个删除lib/gitlab/wiki_file_finder.rb
- spec/fixtures/api/schemas/public_api/v4/blobs.json 2 个添加, 1 个删除spec/fixtures/api/schemas/public_api/v4/blobs.json
- spec/lib/gitlab/file_finder_spec.rb 2 个添加, 2 个删除spec/lib/gitlab/file_finder_spec.rb
加载中
想要评论请 注册 或 登录