Commit 278be18c authored by James Lopez's avatar James Lopez

Merge branch 'feature/project-import' of gitlab.com:gitlab-org/gitlab-ce into...

Merge branch 'feature/project-import' of gitlab.com:gitlab-org/gitlab-ce into feature/project-export-ui-experimental
parents bd0c8ce4 e6fcd6d5
...@@ -6,14 +6,6 @@ module Gitlab ...@@ -6,14 +6,6 @@ module Gitlab
File.join(storage_path, relative_path) File.join(storage_path, relative_path)
end end
def project_attributes
%i(name path description issues_enabled wall_enabled merge_requests_enabled wiki_enabled snippets_enabled visibility_level archived)
end
def project_tree_list
project_tree.map {|r| r.is_a?(Hash) ? r.keys.first : r }
end
def project_tree def project_tree
Gitlab::ImportExport::ImportExportReader.new.project_tree Gitlab::ImportExport::ImportExportReader.new.project_tree
end end
......
module Gitlab module Gitlab
module ImportExport module ImportExport
class AttributesFinder class AttributesFinder
def initialize(included_attributes:, excluded_attributes:) def initialize(included_attributes:, excluded_attributes:)
@included_attributes = included_attributes || {} @included_attributes = included_attributes || {}
@excluded_attributes = excluded_attributes || {} @excluded_attributes = excluded_attributes || {}
......
...@@ -22,7 +22,6 @@ included_attributes: ...@@ -22,7 +22,6 @@ included_attributes:
- :path - :path
- :description - :description
- :issues_enabled - :issues_enabled
- :wall_enabled
- :merge_requests_enabled - :merge_requests_enabled
- :wiki_enabled - :wiki_enabled
- :snippets_enabled - :snippets_enabled
......
...@@ -17,11 +17,11 @@ module Gitlab ...@@ -17,11 +17,11 @@ module Gitlab
private private
def build_hash(model_list) def build_hash(model_list)
model_list.map do |model_object_hash| model_list.map do |model_objects|
if model_object_hash.is_a?(Hash) if model_objects.is_a?(Hash)
build_json_config_hash(model_object_hash) build_json_config_hash(model_objects)
else else
@attributes_parser.find(model_object_hash) @attributes_parser.find(model_objects)
end end
end end
end end
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
"path": "gitlabhq", "path": "gitlabhq",
"description": null, "description": null,
"issues_enabled": true, "issues_enabled": true,
"wall_enabled": false,
"merge_requests_enabled": true, "merge_requests_enabled": true,
"wiki_enabled": true, "wiki_enabled": true,
"snippets_enabled": true, "snippets_enabled": true,
......
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