Commit 3fa80bd9 authored by Peter Leitzen's avatar Peter Leitzen Committed by Mayra Cabrera

Resolve "Expose `active` field in the Error Tracking API"

parent 954aaecf
---
title: Expose `active` field in the Error Tracking API
merge_request: 23150
author:
type: added
......@@ -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"
......
......@@ -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
......
......@@ -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
......
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