Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/repository/blob_type.rb')
-rw-r--r--app/graphql/types/repository/blob_type.rb44
1 files changed, 22 insertions, 22 deletions
diff --git a/app/graphql/types/repository/blob_type.rb b/app/graphql/types/repository/blob_type.rb
index 8ed97d7e663..b6a1a91fd7a 100644
--- a/app/graphql/types/repository/blob_type.rb
+++ b/app/graphql/types/repository/blob_type.rb
@@ -8,67 +8,67 @@ module Types
graphql_name 'RepositoryBlob'
- field :id, GraphQL::ID_TYPE, null: false,
+ field :id, GraphQL::Types::ID, null: false,
description: 'ID of the blob.'
- field :oid, GraphQL::STRING_TYPE, null: false, method: :id,
+ field :oid, GraphQL::Types::String, null: false, method: :id,
description: 'OID of the blob.'
- field :path, GraphQL::STRING_TYPE, null: false,
+ field :path, GraphQL::Types::String, null: false,
description: 'Path of the blob.'
- field :name, GraphQL::STRING_TYPE,
+ field :name, GraphQL::Types::String,
description: 'Blob name.',
null: true
- field :mode, type: GraphQL::STRING_TYPE,
+ field :mode, type: GraphQL::Types::String,
description: 'Blob mode.',
null: true
- field :lfs_oid, GraphQL::STRING_TYPE, null: true,
+ field :lfs_oid, GraphQL::Types::String, null: true,
calls_gitaly: true,
description: 'LFS OID of the blob.'
- field :web_path, GraphQL::STRING_TYPE, null: true,
+ field :web_path, GraphQL::Types::String, null: true,
description: 'Web path of the blob.'
- field :ide_edit_path, GraphQL::STRING_TYPE, null: true,
+ field :ide_edit_path, GraphQL::Types::String, null: true,
description: 'Web path to edit this blob in the Web IDE.'
- field :fork_and_edit_path, GraphQL::STRING_TYPE, null: true,
+ field :fork_and_edit_path, GraphQL::Types::String, null: true,
description: 'Web path to edit this blob using a forked project.'
- field :ide_fork_and_edit_path, GraphQL::STRING_TYPE, null: true,
+ field :ide_fork_and_edit_path, GraphQL::Types::String, null: true,
description: 'Web path to edit this blob in the Web IDE using a forked project.'
- field :size, GraphQL::INT_TYPE, null: true,
+ field :size, GraphQL::Types::Int, null: true,
description: 'Size (in bytes) of the blob.'
- field :raw_size, GraphQL::INT_TYPE, null: true,
+ field :raw_size, GraphQL::Types::Int, null: true,
description: 'Size (in bytes) of the blob, or the blob target if stored externally.'
- field :raw_blob, GraphQL::STRING_TYPE, null: true, method: :data,
+ field :raw_blob, GraphQL::Types::String, null: true, method: :data,
description: 'The raw content of the blob.'
- field :raw_text_blob, GraphQL::STRING_TYPE, null: true, method: :text_only_data,
+ field :raw_text_blob, GraphQL::Types::String, null: true, method: :text_only_data,
description: 'The raw content of the blob, if the blob is text data.'
- field :stored_externally, GraphQL::BOOLEAN_TYPE, null: true, method: :stored_externally?,
+ field :stored_externally, GraphQL::Types::Boolean, null: true, method: :stored_externally?,
description: "Whether the blob's content is stored externally (for instance, in LFS)."
- field :edit_blob_path, GraphQL::STRING_TYPE, null: true,
+ field :edit_blob_path, GraphQL::Types::String, null: true,
description: 'Web path to edit the blob in the old-style editor.'
- field :raw_path, GraphQL::STRING_TYPE, null: true,
+ field :raw_path, GraphQL::Types::String, null: true,
description: 'Web path to download the raw blob.'
- field :external_storage_url, GraphQL::STRING_TYPE, null: true,
+ field :external_storage_url, GraphQL::Types::String, null: true,
description: 'Web path to download the raw blob via external storage, if enabled.'
- field :replace_path, GraphQL::STRING_TYPE, null: true,
+ field :replace_path, GraphQL::Types::String, null: true,
description: 'Web path to replace the blob content.'
- field :file_type, GraphQL::STRING_TYPE, null: true,
+ field :file_type, GraphQL::Types::String, null: true,
description: 'The expected format of the blob based on the extension.'
field :simple_viewer, type: Types::BlobViewerType,
@@ -79,12 +79,12 @@ module Types
description: 'Blob content rich viewer.',
null: true
- field :plain_data, GraphQL::STRING_TYPE,
+ field :plain_data, GraphQL::Types::String,
description: 'Blob plain highlighted data.',
null: true,
calls_gitaly: true
- field :can_modify_blob, GraphQL::BOOLEAN_TYPE, null: true, method: :can_modify_blob?,
+ field :can_modify_blob, GraphQL::Types::Boolean, null: true, method: :can_modify_blob?,
calls_gitaly: true,
description: 'Whether the current user can modify the blob.'