diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-18 13:34:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-18 13:34:06 +0300 |
commit | 859a6fb938bb9ee2a317c46dfa4fcc1af49608f0 (patch) | |
tree | d7f2700abe6b4ffcb2dcfc80631b2d87d0609239 /app/graphql/types/projects | |
parent | 446d496a6d000c73a304be52587cd9bbc7493136 (diff) |
Add latest changes from gitlab-org/gitlab@13-9-stable-eev13.9.0-rc42
Diffstat (limited to 'app/graphql/types/projects')
4 files changed, 7 insertions, 7 deletions
diff --git a/app/graphql/types/projects/service_type.rb b/app/graphql/types/projects/service_type.rb index 4ae7cb77904..9ce325c4655 100644 --- a/app/graphql/types/projects/service_type.rb +++ b/app/graphql/types/projects/service_type.rb @@ -9,9 +9,9 @@ module Types # TODO: Add all the fields that we want to expose for the project services integrations # https://gitlab.com/gitlab-org/gitlab/-/issues/213088 field :type, GraphQL::STRING_TYPE, null: true, - description: 'Class name of the service' + description: 'Class name of the service.' field :active, GraphQL::BOOLEAN_TYPE, null: true, - description: 'Indicates if the service is active' + description: 'Indicates if the service is active.' definition_methods do def resolve_type(object, context) diff --git a/app/graphql/types/projects/service_type_enum.rb b/app/graphql/types/projects/service_type_enum.rb index 34e06c67be6..fcb36fc233d 100644 --- a/app/graphql/types/projects/service_type_enum.rb +++ b/app/graphql/types/projects/service_type_enum.rb @@ -6,7 +6,7 @@ module Types graphql_name 'ServiceType' ::Service.available_services_types(include_dev: false).each do |service_type| - value service_type.underscore.upcase, value: service_type + value service_type.underscore.upcase, value: service_type, description: "#{service_type} type" end end end diff --git a/app/graphql/types/projects/services/jira_project_type.rb b/app/graphql/types/projects/services/jira_project_type.rb index ccf9107f398..90abce2b4c3 100644 --- a/app/graphql/types/projects/services/jira_project_type.rb +++ b/app/graphql/types/projects/services/jira_project_type.rb @@ -8,12 +8,12 @@ module Types graphql_name 'JiraProject' field :key, GraphQL::STRING_TYPE, null: false, - description: 'Key of the Jira project' + description: 'Key of the Jira project.' field :project_id, GraphQL::INT_TYPE, null: false, - description: 'ID of the Jira project', + description: 'ID of the Jira project.', method: :id field :name, GraphQL::STRING_TYPE, null: true, - description: 'Name of the Jira project' + description: 'Name of the Jira project.' end # rubocop:enable Graphql/AuthorizeTypes end diff --git a/app/graphql/types/projects/services/jira_service_type.rb b/app/graphql/types/projects/services/jira_service_type.rb index cb0712249e3..425a283c674 100644 --- a/app/graphql/types/projects/services/jira_service_type.rb +++ b/app/graphql/types/projects/services/jira_service_type.rb @@ -13,7 +13,7 @@ module Types field :projects, Types::Projects::Services::JiraProjectType.connection_type, null: true, - description: 'List of all Jira projects fetched through Jira REST API', + description: 'List of all Jira projects fetched through Jira REST API.', resolver: Resolvers::Projects::JiraProjectsResolver end end |