Class: Types::WorkItems::WidgetDefinitions::HierarchyType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/work_items/widget_definitions/hierarchy_type.rb

Overview

rubocop:disable Graphql/AuthorizeTypes – authorized in work item type entity rubocop:disable GraphQL/ExtractType – no need to extra allowed types into a seperate field

Instance Method Summary collapse

Methods inherited from BaseObject

accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#allowed_child_types(parent:) ⇒ Object



26
27
28
# File 'app/graphql/types/work_items/widget_definitions/hierarchy_type.rb', line 26

def allowed_child_types(parent:)
  parent.allowed_child_types(cache: true)
end

#allowed_parent_types(parent:) ⇒ Object



30
31
32
# File 'app/graphql/types/work_items/widget_definitions/hierarchy_type.rb', line 30

def allowed_parent_types(parent:)
  parent.allowed_parent_types(cache: true)
end