Commit f53dacf0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Replace Project#name_with_namespace with full_name

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 674be13f
......@@ -47,7 +47,7 @@
#{ commit_text.html_safe }
- if show_project_name
%span.project_namespace
= project.name_with_namespace
= project.full_name
.commit-actions.flex-row.hidden-xs
- if request.xhr?
......
......@@ -16,7 +16,7 @@
- if @project
= file_name
- else
#{project.name_with_namespace}:
#{project.full_name}:
%i= file_name
- if blob.data
.file-content.code.term
......
......@@ -10,7 +10,7 @@
- if @project
= wiki_blob.basename
- else
#{project.name_with_namespace}:
#{project.full_name}:
%i= wiki_blob.basename
.file-content.code.term
= render 'shared/file_highlight', blob: wiki_blob, first_line_number: wiki_blob.startline
......@@ -18,7 +18,7 @@ module AuditLogsHelper
def admin_project_dropdown_label(default_label)
if @entity
@entity.name_with_namespace
@entity.full_name
else
default_label
end
......
- pretty_name = defined?(@project) ? @project.name_with_namespace : 'namespace / path'
- pretty_name = defined?(@project) ? @project.full_name : 'namespace / path'
- run_actions_text = "Perform common operations on GitLab project: #{pretty_name}"
.well
......
......@@ -17,14 +17,14 @@ class ElasticBatchProjectIndexerWorker
private
def run_indexer(project)
logger.info "Indexing #{project.name_with_namespace} (ID=#{project.id})..."
logger.info "Indexing #{project.full_name} (ID=#{project.id})..."
last_commit = project.index_status.try(:last_commit)
Gitlab::Elastic::Indexer.new(project).run(last_commit)
logger.info "Indexing #{project.name_with_namespace} (ID=#{project.id}) is done!"
logger.info "Indexing #{project.full_name} (ID=#{project.id}) is done!"
rescue => err
logger.warn("#{err.message} indexing #{project.name_with_namespace} (ID=#{project.id}), trace - #{err.backtrace}")
logger.warn("#{err.message} indexing #{project.full_name} (ID=#{project.id}), trace - #{err.backtrace}")
end
def build_relation(start, finish, update_index)
......
......@@ -46,7 +46,7 @@ namespace :gitlab do
projects.find_each do |project|
unless project.wiki.empty?
puts "Indexing wiki of #{project.name_with_namespace}..."
puts "Indexing wiki of #{project.full_name}..."
begin
project.wiki.index_blobs
......
......@@ -75,7 +75,7 @@ describe Project, elastic: true do
)
)
expected_hash['name_with_namespace'] = project.name_with_namespace
expected_hash['name_with_namespace'] = project.full_name
expected_hash['path_with_namespace'] = project.full_path
expect(project.as_indexed_json).to eq(expected_hash)
......
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