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
c4f7787b
Commit
c4f7787b
authored
Dec 18, 2019
by
raju249
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add settings service for fetching data from error tracking settings model
parent
a7c5d1ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
app/controllers/projects/error_tracking_controller.rb
app/controllers/projects/error_tracking_controller.rb
+15
-1
app/models/error_tracking/project_error_tracking_setting.rb
app/models/error_tracking/project_error_tracking_setting.rb
+7
-0
No files found.
app/controllers/projects/error_tracking_controller.rb
View file @
c4f7787b
...
...
@@ -35,10 +35,24 @@ class Projects::ErrorTrackingController < Projects::ErrorTracking::BaseControlle
render
json:
{
result:
result
}
end
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 @
c4f7787b
...
...
@@ -85,6 +85,13 @@ 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
...
...
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