Class: Types::WorkItems::Widgets::ErrorTrackingType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::WorkItems::Widgets::ErrorTrackingType
- Defined in:
- app/graphql/types/work_items/widgets/error_tracking_type.rb
Overview
Disabling widget level authorization as it might be too granular and we already authorize the parent work item rubocop:disable Graphql/AuthorizeTypes – reason above
Instance Method Summary collapse
Methods inherited from BaseObject
accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id
Methods included from Gitlab::Graphql::Present
Instance Method Details
#stack_trace ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 |
# File 'app/graphql/types/work_items/widgets/error_tracking_type.rb', line 35 def stack_trace return [] if object.sentry_issue_identifier.nil? if latest_event_result[:status] == :success Gitlab::ErrorTracking::StackTraceHighlightDecorator .decorate(latest_event_result[:latest_event]) .stack_trace_entries else [] end end |
#status ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 |
# File 'app/graphql/types/work_items/widgets/error_tracking_type.rb', line 47 def status return :not_found if object.sentry_issue_identifier.nil? if latest_event_result[:status] == :success :success elsif latest_event_result[:http_status] == :no_content :retry else :error end end |