Class: Types::ContainerRepositoryType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::ContainerRepositoryType
show all
- Defined in:
- app/graphql/types/container_repository_type.rb
Instance Method Summary
collapse
Methods inherited from BaseObject
accepts, assignable?, authorization, authorize, authorized?, #current_user, #id
#present, #unpresented
Instance Method Details
#can_delete ⇒ Object
26
27
28
|
# File 'app/graphql/types/container_repository_type.rb', line 26
def can_delete
Ability.allowed?(current_user, :update_container_image, object)
end
|
34
35
36
37
38
|
# File 'app/graphql/types/container_repository_type.rb', line 34
def tags_count
object.tags_count
rescue Faraday::Error
raise ::Gitlab::Graphql::Errors::ResourceNotAvailable, 'We are having trouble connecting to the Container Registry. If this error persists, please review the troubleshooting documentation.'
end
|