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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
1d7f2563
Commit
1d7f2563
authored
Aug 13, 2020
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move GID conversion to HAML
Also removed now obsolete test case
parent
bcfb40a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
11 deletions
+1
-11
ee/app/controllers/projects/dast_site_profiles_controller.rb
ee/app/controllers/projects/dast_site_profiles_controller.rb
+0
-2
ee/app/views/projects/dast_site_profiles/edit.html.haml
ee/app/views/projects/dast_site_profiles/edit.html.haml
+1
-1
ee/spec/requests/projects/dast_site_profiles_controller_spec.rb
...c/requests/projects/dast_site_profiles_controller_spec.rb
+0
-8
No files found.
ee/app/controllers/projects/dast_site_profiles_controller.rb
View file @
1d7f2563
...
@@ -12,8 +12,6 @@ module Projects
...
@@ -12,8 +12,6 @@ module Projects
.
dast_site_profiles
.
dast_site_profiles
.
with_dast_site
.
with_dast_site
.
find
(
params
[
:id
])
.
find
(
params
[
:id
])
@site_profile_gid
=
@site_profile
.
to_global_id
end
end
private
private
...
...
ee/app/views/projects/dast_site_profiles/edit.html.haml
View file @
1d7f2563
...
@@ -5,4 +5,4 @@
...
@@ -5,4 +5,4 @@
.js-dast-site-profile-form
{
data:
{
full_path:
@project
.
path_with_namespace
,
.js-dast-site-profile-form
{
data:
{
full_path:
@project
.
path_with_namespace
,
profiles_library_path:
project_profiles_path
(
@project
),
profiles_library_path:
project_profiles_path
(
@project
),
site_profile:
{
id:
@site_profile
_g
id
.
to_s
,
name:
@site_profile
.
name
,
target_url:
@site_profile
.
dast_site
.
url
}.
to_json
}
}
site_profile:
{
id:
@site_profile
.
to_global_
id
.
to_s
,
name:
@site_profile
.
name
,
target_url:
@site_profile
.
dast_site
.
url
}.
to_json
}
}
ee/spec/requests/projects/dast_site_profiles_controller_spec.rb
View file @
1d7f2563
...
@@ -89,13 +89,5 @@ RSpec.describe Projects::DastSiteProfilesController, type: :request do
...
@@ -89,13 +89,5 @@ RSpec.describe Projects::DastSiteProfilesController, type: :request do
it_behaves_like
'a GET request'
do
it_behaves_like
'a GET request'
do
let
(
:path
)
{
edit_path
}
let
(
:path
)
{
edit_path
}
end
end
it
'assigns DAST site profile global ID'
do
with_feature_available
with_user_authorized
get
edit_project_dast_site_profile_path
(
project
,
dast_site_profile
)
expect
(
assigns
(
:site_profile_gid
)).
to
eq
(
dast_site_profile
.
to_global_id
)
end
end
end
end
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