Class: Types::NamespaceType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/namespace_type.rb

Direct Known Subclasses

GroupType

Instance Method Summary collapse

Methods inherited from BaseObject

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

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#cross_project_pipeline_available?Boolean

Returns:

  • (Boolean)


81
82
83
# File 'app/graphql/types/namespace_type.rb', line 81

def cross_project_pipeline_available?
  object.licensed_feature_available?(:cross_project_pipelines)
end

#root_storage_statisticsObject



85
86
87
# File 'app/graphql/types/namespace_type.rb', line 85

def root_storage_statistics
  Gitlab::Graphql::Loaders::BatchRootStorageStatisticsLoader.new(object.id).find
end

#timelog_categoriesObject



77
78
79
# File 'app/graphql/types/namespace_type.rb', line 77

def timelog_categories
  object.timelog_categories if Feature.enabled?(:timelog_categories)
end