Commit f4517f3a authored by raju249's avatar raju249

Delete code from controller for API

parent 67fa5d23
......@@ -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,
......
......@@ -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
......
# 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
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