Class: Types::WorkItems::WidgetDefinitions::HierarchyType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::WorkItems::WidgetDefinitions::HierarchyType
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
#present, #unpresented
Instance Method Details
#allowed_child_types(parent:) ⇒ Object
36
37
38
|
# File 'app/graphql/types/work_items/widget_definitions/hierarchy_type.rb', line 36
def allowed_child_types(parent:)
parent.allowed_child_types(authorize: true, resource_parent: context[:resource_parent])
end
|
#allowed_parent_types(parent:) ⇒ Object
40
41
42
|
# File 'app/graphql/types/work_items/widget_definitions/hierarchy_type.rb', line 40
def allowed_parent_types(parent:)
parent.allowed_parent_types(authorize: true, resource_parent: context[:resource_parent])
end
|
#auto_expand_tree_on_move ⇒ Object
48
49
50
|
# File 'app/graphql/types/work_items/widget_definitions/hierarchy_type.rb', line 48
def auto_expand_tree_on_move
object.widget_options&.dig(object.widget_type.to_sym, :auto_expand_tree_on_move)
end
|
#propagates_milestone ⇒ Object
44
45
46
|
# File 'app/graphql/types/work_items/widget_definitions/hierarchy_type.rb', line 44
def propagates_milestone
object.widget_options&.dig(object.widget_type.to_sym, :propagates_milestone)
end
|