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)

55
56
57
# File 'app/graphql/types/namespace_type.rb', line 55

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

#root_storage_statisticsObject


59
60
61
# File 'app/graphql/types/namespace_type.rb', line 59

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