BigW Consortium Gitlab

Commit 278be18c by 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
File.join(storage_path, relative_path)
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
Gitlab::ImportExport::ImportExportReader.new.project_tree
end
......
module Gitlab
module ImportExport
class AttributesFinder
def initialize(included_attributes:, excluded_attributes:)
@included_attributes = included_attributes || {}
@excluded_attributes = excluded_attributes || {}
......
......@@ -22,7 +22,6 @@ included_attributes:
- :path
- :description
- :issues_enabled
- :wall_enabled
- :merge_requests_enabled
- :wiki_enabled
- :snippets_enabled
......
......@@ -17,11 +17,11 @@ module Gitlab
private
def build_hash(model_list)
model_list.map do |model_object_hash|
if model_object_hash.is_a?(Hash)
build_json_config_hash(model_object_hash)
model_list.map do |model_objects|
if model_objects.is_a?(Hash)
build_json_config_hash(model_objects)
else
@attributes_parser.find(model_object_hash)
@attributes_parser.find(model_objects)
end
end
end
......
......@@ -3,7 +3,6 @@
"path": "gitlabhq",
"description": null,
"issues_enabled": true,
"wall_enabled": false,
"merge_requests_enabled": true,
"wiki_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