Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
5a4f5763
Commit
5a4f5763
authored
May 02, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing issues with project members mapping. Also added some more JS magic to the import page
parent
b5f2a7e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+11
-0
lib/gitlab/import_export/import_export_reader.rb
lib/gitlab/import_export/import_export_reader.rb
+3
-1
lib/gitlab/import_export/project_tree_restorer.rb
lib/gitlab/import_export/project_tree_restorer.rb
+1
-0
No files found.
app/views/projects/new.html.haml
View file @
5a4f5763
...
...
@@ -131,3 +131,14 @@
var
_href
=
$
(
"
a.import_gitlab_project
"
).
attr
(
"
href
"
);
$
(
"
.import_gitlab_project
"
).
attr
(
"
href
"
,
_href
+
'
?namespace_id=
'
+
$
(
"
#project_namespace_id
"
).
val
()
+
'
&path=
'
+
$
(
"
#project_path
"
).
val
());
});
$
(
'
.import_gitlab_project
'
).
attr
(
'
disabled
'
,
true
)
$
(
'
.import_gitlab_project
'
).
attr
(
'
title
'
,
'
Project path required.
'
);
$
(
'
#project_path
'
).
keyup
(
function
(){
if
(
$
(
this
).
val
().
length
!=
0
)
{
$
(
'
.import_gitlab_project
'
).
attr
(
'
disabled
'
,
false
);
$
(
'
.import_gitlab_project
'
).
attr
(
'
title
'
,
''
);
}
else
{
$
(
'
.import_gitlab_project
'
).
attr
(
'
disabled
'
,
true
);
$
(
'
.import_gitlab_project
'
).
attr
(
'
title
'
,
'
Project path required.
'
);
}
})
lib/gitlab/import_export/import_export_reader.rb
View file @
5a4f5763
...
...
@@ -57,8 +57,10 @@ module Gitlab
end
def
add_new_class
(
current_key
,
included_classes_hash
,
value
)
only_except_hash
=
check_only_and_except
(
value
)
# TODO: refactor this
value
=
(
value
.
is_a?
(
Hash
)
?
value
.
merge
(
only_except_hash
)
:
{
value
=>
only_except_hash
})
if
only_except_hash
new_hash
=
{
include:
value
}
new_hash
.
merge!
(
check_only_and_except
(
value
))
included_classes_hash
[
current_key
]
=
new_hash
end
...
...
lib/gitlab/import_export/project_tree_restorer.rb
View file @
5a4f5763
...
...
@@ -49,6 +49,7 @@ module Gitlab
project
=
Gitlab
::
ImportExport
::
ProjectFactory
.
create
(
project_params:
project_params
,
user:
@user
)
project
.
path
=
@project_path
project
.
name
=
@project_path
project
.
save
project
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment