Class: Types::NamespaceType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::NamespaceType
show all
- Defined in:
- app/graphql/types/namespace_type.rb
Instance Method Summary
collapse
Methods inherited from BaseObject
accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id
#present, #unpresented
Instance Method Details
#achievements_path ⇒ Object
125
126
127
128
129
|
# File 'app/graphql/types/namespace_type.rb', line 125
def achievements_path
return unless Feature.enabled?(:achievements, object)
::Gitlab::Routing.url_helpers.group_achievements_path(object) if object.is_a?(Group)
end
|
#cross_project_pipeline_available? ⇒ Boolean
135
136
137
|
# File 'app/graphql/types/namespace_type.rb', line 135
def cross_project_pipeline_available?
object.licensed_feature_available?(:cross_project_pipelines)
end
|
#root_storage_statistics ⇒ Object
#timelog_categories ⇒ Object
131
132
133
|
# File 'app/graphql/types/namespace_type.rb', line 131
def timelog_categories
object.timelog_categories if Feature.enabled?(:timelog_categories)
end
|