diff options
author | Reuben Pereira <rpereira@gitlab.com> | 2019-01-31 10:05:29 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-01-31 10:05:29 +0000 |
commit | 5841a7d5efe772a9a8f09144b84fcb9aee906c4c (patch) | |
tree | e966d385aea7c9a669ef7cd6d77a8874c14bb5de /app/serializers/error_tracking | |
parent | ab8b77a87c99a5b83050e2e9d588d4940288d754 (diff) | |
download | gitlab-ce-5841a7d5efe772a9a8f09144b84fcb9aee906c4c.tar.gz |
Update Sentry client to get project list
Diffstat (limited to 'app/serializers/error_tracking')
-rw-r--r-- | app/serializers/error_tracking/project_entity.rb | 7 | ||||
-rw-r--r-- | app/serializers/error_tracking/project_serializer.rb | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/app/serializers/error_tracking/project_entity.rb b/app/serializers/error_tracking/project_entity.rb new file mode 100644 index 00000000000..405d87ca0d0 --- /dev/null +++ b/app/serializers/error_tracking/project_entity.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +module ErrorTracking + class ProjectEntity < Grape::Entity + expose(*Gitlab::ErrorTracking::Project::ACCESSORS) + end +end diff --git a/app/serializers/error_tracking/project_serializer.rb b/app/serializers/error_tracking/project_serializer.rb new file mode 100644 index 00000000000..b2406f4d631 --- /dev/null +++ b/app/serializers/error_tracking/project_serializer.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +module ErrorTracking + class ProjectSerializer < BaseSerializer + entity ProjectEntity + end +end |