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
f4517f3a
Commit
f4517f3a
authored
Dec 21, 2019
by
raju249
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete code from controller for API
parent
67fa5d23
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
34 deletions
+0
-34
app/controllers/projects/error_tracking_controller.rb
app/controllers/projects/error_tracking_controller.rb
+0
-15
app/models/error_tracking/project_error_tracking_setting.rb
app/models/error_tracking/project_error_tracking_setting.rb
+0
-7
app/services/error_tracking/project_settings_service.rb
app/services/error_tracking/project_settings_service.rb
+0
-12
No files found.
app/controllers/projects/error_tracking_controller.rb
View file @
f4517f3a
...
...
@@ -38,21 +38,6 @@ class Projects::ErrorTrackingController < Projects::ErrorTracking::BaseControlle
private
def
render_sentry_project_settings_json
service
=
ErrorTracking
::
ProjectSettingsService
.
new
(
project
,
current_user
)
result
=
service
.
execute
return
if
handle_errors
(
result
)
render
json:
{
project_name:
result
[
:project_name
],
sentry_api_url:
result
[
:sentry_api_url
]
}
end
def
render_index_json
service
=
ErrorTracking
::
ListIssuesService
.
new
(
project
,
...
...
app/models/error_tracking/project_error_tracking_setting.rb
View file @
f4517f3a
...
...
@@ -85,13 +85,6 @@ module ErrorTracking
end
end
def
sentry_project_settings
{
project_name:
self
.
project_name
,
sentry_api_url:
self
.
sentry_external_url
}
end
def
list_sentry_projects
{
projects:
sentry_client
.
projects
}
end
...
...
app/services/error_tracking/project_settings_service.rb
deleted
100644 → 0
View file @
67fa5d23
# frozen_string_literal: true
module
ErrorTracking
class
ProjectSettingsService
<
ErrorTracking
::
BaseService
private
def
fetch
project_error_tracking_setting
.
sentry_project_settings
end
end
end
\ No newline at end of file
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