Commit ef85c510 authored by James Lopez's avatar James Lopez

corrected a couple of based on MR review

parent 43ee65e1
...@@ -16,8 +16,8 @@ class RemoveWrongImportUrlFromProjects < ActiveRecord::Migration ...@@ -16,8 +16,8 @@ class RemoveWrongImportUrlFromProjects < ActiveRecord::Migration
say("Projects and Github projects with a wrong URL. It also migrates Gitlab project credentials.") say("Projects and Github projects with a wrong URL. It also migrates Gitlab project credentials.")
in_transaction { process_projects_with_wrong_url } in_transaction { process_projects_with_wrong_url }
say("Migrating bitbucket credentials...")# TODO remove last param say("Migrating bitbucket credentials...")
in_transaction { process_project(import_type: 'bitbucket', unencrypted_data: ['repo', 'user_map']) } in_transaction { process_project(import_type: 'bitbucket') }
say("Migrating fogbugz credentials...") say("Migrating fogbugz credentials...")
in_transaction { process_project(import_type: 'fogbugz', unencrypted_data: ['repo', 'user_map']) } in_transaction { process_project(import_type: 'fogbugz', unencrypted_data: ['repo', 'user_map']) }
......
...@@ -8,7 +8,7 @@ module Gitlab ...@@ -8,7 +8,7 @@ module Gitlab
import_data = project.import_data.try(:data) import_data = project.import_data.try(:data)
repo_data = import_data['repo'] if import_data repo_data = import_data['repo'] if import_data
if defined?(repo_data) if repo_data
@repo = FogbugzImport::Repository.new(repo_data) @repo = FogbugzImport::Repository.new(repo_data)
@known_labels = Set.new @known_labels = Set.new
else else
...@@ -18,7 +18,6 @@ module Gitlab ...@@ -18,7 +18,6 @@ module Gitlab
def execute def execute
return true unless repo.valid? return true unless repo.valid?
Rails.logger.error import_data_credentials.inspect
client = Gitlab::FogbugzImport::Client.new(token: import_data_credentials['fb_session']['token'], uri: import_data_credentials['fb_session']['uri']) client = Gitlab::FogbugzImport::Client.new(token: import_data_credentials['fb_session']['token'], uri: import_data_credentials['fb_session']['uri'])
@cases = client.cases(@repo.id.to_i) @cases = client.cases(@repo.id.to_i)
......
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