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
3fa80bd9
Commit
3fa80bd9
authored
Jan 16, 2020
by
Peter Leitzen
Committed by
Mayra Cabrera
Jan 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "Expose `active` field in the Error Tracking API"
parent
954aaecf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
0 deletions
+8
-0
changelogs/unreleased/197146-expose-active-field-in-the-error-tracking-api.yml
.../197146-expose-active-field-in-the-error-tracking-api.yml
+5
-0
doc/api/error_tracking.md
doc/api/error_tracking.md
+1
-0
lib/api/entities/error_tracking.rb
lib/api/entities/error_tracking.rb
+1
-0
spec/requests/api/error_tracking_spec.rb
spec/requests/api/error_tracking_spec.rb
+1
-0
No files found.
changelogs/unreleased/197146-expose-active-field-in-the-error-tracking-api.yml
0 → 100644
View file @
3fa80bd9
---
title
:
Expose `active` field in the Error Tracking API
merge_request
:
23150
author
:
type
:
added
doc/api/error_tracking.md
View file @
3fa80bd9
...
...
@@ -24,6 +24,7 @@ Example response:
```
json
{
"active"
:
true
,
"project_name"
:
"sample sentry project"
,
"sentry_external_url"
:
"https://sentry.io/myawesomeproject/project"
,
"api_url"
:
"https://sentry.io/api/0/projects/myawesomeproject/project"
...
...
lib/api/entities/error_tracking.rb
View file @
3fa80bd9
...
...
@@ -4,6 +4,7 @@ module API
module
Entities
module
ErrorTracking
class
ProjectSetting
<
Grape
::
Entity
expose
:enabled
,
as: :active
expose
:project_name
expose
:sentry_external_url
expose
:api_url
...
...
spec/requests/api/error_tracking_spec.rb
View file @
3fa80bd9
...
...
@@ -22,6 +22,7 @@ describe API::ErrorTracking do
expect
(
response
).
to
have_gitlab_http_status
(
:ok
)
expect
(
json_response
).
to
eq
(
'active'
=>
setting
.
enabled
,
'project_name'
=>
setting
.
project_name
,
'sentry_external_url'
=>
setting
.
sentry_external_url
,
'api_url'
=>
setting
.
api_url
...
...
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