Commit e472eb2e authored by Brett Walker's avatar Brett Walker Committed by Matthias Käppler

Convert old graphql types to newer types

in prep for interpreter
parent 4b78115b
......@@ -88,57 +88,6 @@ Graphql/OldTypes:
- 'ee/app/graphql/ee/types/merge_request_type.rb'
- 'ee/app/graphql/ee/types/namespace_type.rb'
- 'ee/app/graphql/ee/types/project_type.rb'
- 'ee/app/graphql/mutations/app_sec/fuzzing/api/ci_configuration/create.rb'
- 'ee/app/graphql/mutations/boards/epic_boards/create.rb'
- 'ee/app/graphql/mutations/boards/epics/create.rb'
- 'ee/app/graphql/mutations/boards/lists/update_limit_metrics.rb'
- 'ee/app/graphql/mutations/boards/scoped_issue_board_arguments.rb'
- 'ee/app/graphql/mutations/boards/update_epic_user_preferences.rb'
- 'ee/app/graphql/mutations/clusters/agent_tokens/create.rb'
- 'ee/app/graphql/mutations/clusters/agents/create.rb'
- 'ee/app/graphql/mutations/compliance_management/frameworks/create.rb'
- 'ee/app/graphql/mutations/concerns/mutations/shared_epic_arguments.rb'
- 'ee/app/graphql/mutations/dast/profiles/create.rb'
- 'ee/app/graphql/mutations/dast/profiles/run.rb'
- 'ee/app/graphql/mutations/dast/profiles/update.rb'
- 'ee/app/graphql/mutations/dast_on_demand_scans/create.rb'
- 'ee/app/graphql/mutations/dast_scanner_profiles/create.rb'
- 'ee/app/graphql/mutations/dast_scanner_profiles/delete.rb'
- 'ee/app/graphql/mutations/dast_scanner_profiles/update.rb'
- 'ee/app/graphql/mutations/dast_site_profiles/create.rb'
- 'ee/app/graphql/mutations/dast_site_profiles/delete.rb'
- 'ee/app/graphql/mutations/dast_site_profiles/update.rb'
- 'ee/app/graphql/mutations/dast_site_tokens/create.rb'
- 'ee/app/graphql/mutations/dast_site_validations/create.rb'
- 'ee/app/graphql/mutations/dast_site_validations/revoke.rb'
- 'ee/app/graphql/mutations/epics/add_issue.rb'
- 'ee/app/graphql/mutations/epics/base.rb'
- 'ee/app/graphql/mutations/epics/set_subscription.rb'
- 'ee/app/graphql/mutations/gitlab_subscriptions/activate.rb'
- 'ee/app/graphql/mutations/incident_management/escalation_policy/create.rb'
- 'ee/app/graphql/mutations/incident_management/escalation_policy/update.rb'
- 'ee/app/graphql/mutations/incident_management/oncall_rotation/create.rb'
- 'ee/app/graphql/mutations/incident_management/oncall_rotation/destroy.rb'
- 'ee/app/graphql/mutations/incident_management/oncall_rotation/update.rb'
- 'ee/app/graphql/mutations/incident_management/oncall_schedule/create.rb'
- 'ee/app/graphql/mutations/incident_management/oncall_schedule/destroy.rb'
- 'ee/app/graphql/mutations/incident_management/oncall_schedule/update.rb'
- 'ee/app/graphql/mutations/issues/common_ee_mutation_arguments.rb'
- 'ee/app/graphql/mutations/issues/promote_to_epic.rb'
- 'ee/app/graphql/mutations/issues/set_weight.rb'
- 'ee/app/graphql/mutations/iterations/cadences/create.rb'
- 'ee/app/graphql/mutations/iterations/cadences/update.rb'
- 'ee/app/graphql/mutations/iterations/create.rb'
- 'ee/app/graphql/mutations/iterations/update.rb'
- 'ee/app/graphql/mutations/quality_management/test_cases/create.rb'
- 'ee/app/graphql/mutations/requirements_management/base_requirement.rb'
- 'ee/app/graphql/mutations/requirements_management/export_requirements.rb'
- 'ee/app/graphql/mutations/requirements_management/update_requirement.rb'
- 'ee/app/graphql/mutations/security/ci_configuration/configure_dependency_scanning.rb'
- 'ee/app/graphql/mutations/security_policy/assign_security_policy_project.rb'
- 'ee/app/graphql/mutations/security_policy/commit_scan_execution_policy.rb'
- 'ee/app/graphql/mutations/security_policy/create_security_policy_project.rb'
- 'ee/app/graphql/mutations/vulnerabilities/dismiss.rb'
- 'ee/app/graphql/resolvers/alert_management/payload_alert_field_resolver.rb'
- 'ee/app/graphql/resolvers/clusters/agents_resolver.rb'
- 'ee/app/graphql/resolvers/concerns/common_requirement_arguments.rb'
......
......@@ -8,11 +8,11 @@ module EE
extend ::Gitlab::Utils::Override
prepended do
argument :merge_pipelines_enabled, GraphQL::BOOLEAN_TYPE,
argument :merge_pipelines_enabled, GraphQL::Types::Boolean,
required: false,
description: 'Indicates if merge pipelines are enabled for the project.'
argument :merge_trains_enabled, GraphQL::BOOLEAN_TYPE,
argument :merge_trains_enabled, GraphQL::Types::Boolean,
required: false,
description: 'Indicates if merge trains are enabled for the project.'
end
......
......@@ -7,16 +7,16 @@ module EE
extend ::Gitlab::Utils::Override
prepended do
argument :iteration_id, [::GraphQL::ID_TYPE, null: true],
argument :iteration_id, [::GraphQL::Types::ID, null: true],
required: false,
description: 'List of iteration Global IDs applied to the issue.'
argument :iteration_wildcard_id, ::Types::IterationWildcardIdEnum,
required: false,
description: 'Filter by iteration ID wildcard.'
argument :epic_id, GraphQL::STRING_TYPE,
argument :epic_id, GraphQL::Types::String,
required: false,
description: 'ID of an epic associated with the issues, "none" and "any" values are supported.'
argument :weight, GraphQL::STRING_TYPE,
argument :weight, GraphQL::Types::String,
required: false,
description: 'Weight applied to the issue, "none" and "any" values are supported.'
end
......
......@@ -7,12 +7,12 @@ module EE
extend ::Gitlab::Utils::Override
prepended do
argument :has_code_coverage, GraphQL::BOOLEAN_TYPE,
argument :has_code_coverage, GraphQL::Types::Boolean,
required: false,
default_value: false,
description: 'Returns only the projects which have code coverage.'
argument :has_vulnerabilities, GraphQL::BOOLEAN_TYPE,
argument :has_vulnerabilities, GraphQL::Types::Boolean,
required: false,
default_value: false,
description: 'Returns only the projects which have vulnerabilities.'
......
......@@ -10,15 +10,15 @@ module EE
description: 'Milestone of the list.'
field :iteration, ::Types::IterationType, null: true,
description: 'Iteration of the list.'
field :max_issue_count, GraphQL::INT_TYPE, null: true,
field :max_issue_count, GraphQL::Types::Int, null: true,
description: 'Maximum number of issues in the list.'
field :max_issue_weight, GraphQL::INT_TYPE, null: true,
field :max_issue_weight, GraphQL::Types::Int, null: true,
description: 'Maximum weight of issues in the list.'
field :assignee, ::Types::UserType, null: true,
description: 'Assignee in the list.'
field :limit_metric, ::EE::Types::ListLimitMetricEnum, null: true,
description: 'The current limit metric for the list.'
field :total_weight, GraphQL::INT_TYPE, null: true,
field :total_weight, GraphQL::Types::Int, null: true,
description: 'Total weight of all issues in the list.'
def milestone
......
......@@ -23,7 +23,7 @@ module EE
field :iteration, type: ::Types::IterationType, null: true,
description: 'The board iteration.'
field :weight, type: GraphQL::INT_TYPE, null: true,
field :weight, type: GraphQL::Types::Int, null: true,
description: 'Weight of the board.'
end
end
......
......@@ -11,11 +11,11 @@ module EE
required: false,
description: 'Filter by epic ID. Incompatible with epicWildcardId.'
argument :iteration_title, GraphQL::STRING_TYPE,
argument :iteration_title, GraphQL::Types::String,
required: false,
description: 'Filter by iteration title.'
argument :weight, GraphQL::STRING_TYPE,
argument :weight, GraphQL::Types::String,
required: false,
description: 'Filter by weight.'
......
......@@ -7,7 +7,7 @@ module EE
prepended do
%i[epics].each do |feature|
field "#{feature}_enabled", GraphQL::BOOLEAN_TYPE, null: true,
field "#{feature}_enabled", GraphQL::Types::Boolean, null: true,
description: "Indicates if #{feature.to_s.humanize} are enabled for namespace"
define_method "#{feature}_enabled" do
......@@ -83,7 +83,7 @@ module EE
description: 'Group statistics.',
method: :itself
field :billable_members_count, ::GraphQL::INT_TYPE,
field :billable_members_count, ::GraphQL::Types::Int,
null: true,
description: 'The number of billable users in the group.'
......
......@@ -6,7 +6,7 @@ module EE
extend ActiveSupport::Concern
prepended do
field :weight, GraphQL::INT_TYPE, null: false, description: 'Total weight of issues collection.'
field :weight, GraphQL::Types::Int, null: false, description: 'Total weight of issues collection.'
end
def weight
......
......@@ -12,17 +12,17 @@ module EE
field :iteration, ::Types::IterationType, null: true,
description: 'Iteration of the issue.'
field :weight, GraphQL::INT_TYPE, null: true,
field :weight, GraphQL::Types::Int, null: true,
description: 'Weight of the issue.'
field :blocked, GraphQL::BOOLEAN_TYPE, null: false,
field :blocked, GraphQL::Types::Boolean, null: false,
description: 'Indicates the issue is blocked.'
field :blocking_count, GraphQL::INT_TYPE, null: false,
field :blocking_count, GraphQL::Types::Int, null: false,
method: :blocking_issues_count,
description: 'Count of issues this issue is blocking.'
field :blocked_by_count, GraphQL::INT_TYPE, null: true,
field :blocked_by_count, GraphQL::Types::Int, null: true,
description: 'Count of issues blocking this issue.'
field :blocked_by_issues, ::Types::IssueType.connection_type, null: true,
......@@ -32,7 +32,7 @@ module EE
field :health_status, ::Types::HealthStatusEnum, null: true,
description: 'Current health status.'
field :status_page_published_incident, GraphQL::BOOLEAN_TYPE, null: true,
field :status_page_published_incident, GraphQL::Types::Boolean, null: true,
description: 'Indicates whether an issue is published to the status page.'
field :sla_due_at, ::Types::TimeType, null: true,
......
......@@ -7,13 +7,13 @@ module EE
extend ActiveSupport::Concern
prepended do
argument :epic_id, GraphQL::STRING_TYPE,
argument :epic_id, GraphQL::Types::String,
required: false,
description: 'ID of an epic not associated with the issues.'
argument :weight, GraphQL::STRING_TYPE,
argument :weight, GraphQL::Types::String,
required: false,
description: 'Weight not applied to the issue.'
argument :iteration_id, [::GraphQL::ID_TYPE],
argument :iteration_id, [::GraphQL::Types::ID],
required: false,
description: 'List of iteration Global IDs not applied to the issue.'
argument :iteration_wildcard_id, ::Types::IterationWildcardIdEnum,
......
......@@ -6,20 +6,20 @@ module EE
extend ActiveSupport::Concern
prepended do
field :approved, GraphQL::BOOLEAN_TYPE, method: :approved?, null: false, calls_gitaly: true,
field :approved, GraphQL::Types::Boolean, method: :approved?, null: false, calls_gitaly: true,
description: 'Indicates if the merge request has all the required approvals. Returns true if no required approvals are configured.'
field :approvals_left, GraphQL::INT_TYPE, null: true, calls_gitaly: true,
field :approvals_left, GraphQL::Types::Int, null: true, calls_gitaly: true,
description: 'Number of approvals left.'
field :approvals_required, GraphQL::INT_TYPE, null: true,
field :approvals_required, GraphQL::Types::Int, null: true,
description: 'Number of approvals required.'
field :merge_trains_count, GraphQL::INT_TYPE, null: true,
field :merge_trains_count, GraphQL::Types::Int, null: true,
description: 'Number of merge requests in the merge train.'
field :has_security_reports, GraphQL::BOOLEAN_TYPE,
field :has_security_reports, GraphQL::Types::Boolean,
null: false, calls_gitaly: true,
method: :has_security_reports?,
description: 'Indicates if the source branch has any security reports.'
field :security_reports_up_to_date_on_target_branch, GraphQL::BOOLEAN_TYPE,
field :security_reports_up_to_date_on_target_branch, GraphQL::Types::Boolean,
null: false, calls_gitaly: true,
method: :security_reports_up_to_date?,
description: 'Indicates if the target branch security reports are out of date.'
......
......@@ -22,13 +22,13 @@ module EE
description: 'Total repository size of all projects in the root namespace in bytes.'
field :contains_locked_projects,
GraphQL::BOOLEAN_TYPE,
GraphQL::Types::Boolean,
null: false,
description: 'Includes at least one project where the repository size exceeds the limit.',
method: :contains_locked_projects?
field :repository_size_excess_project_count,
GraphQL::INT_TYPE,
GraphQL::Types::Int,
null: false,
description: 'Number of projects in the root namespace where the repository size exceeds the limit.'
......@@ -44,7 +44,7 @@ module EE
description: 'Total storage limit of the root namespace in bytes.'
field :is_temporary_storage_increase_enabled,
GraphQL::BOOLEAN_TYPE,
GraphQL::Types::Boolean,
null: false,
description: 'Status of the temporary storage increase.',
method: :temporary_storage_increase_enabled?
......
......@@ -48,7 +48,7 @@ module EE
description: 'Compliance frameworks associated with the project.',
null: true
field :security_dashboard_path, GraphQL::STRING_TYPE,
field :security_dashboard_path, GraphQL::Types::String,
description: "Path to project's security dashboard.",
null: true
......
......@@ -10,20 +10,20 @@ module Mutations
graphql_name 'ApiFuzzingCiConfigurationCreate'
argument :project_path, GraphQL::ID_TYPE,
argument :project_path, GraphQL::Types::ID,
required: true,
description: 'Full path of the project.'
argument :api_specification_file, GraphQL::STRING_TYPE,
argument :api_specification_file, GraphQL::Types::String,
required: true,
description: 'File path or URL to the file that defines the API surface for scanning. '\
'Must be in the format specified by the `scanMode` argument.'
argument :auth_password, GraphQL::STRING_TYPE,
argument :auth_password, GraphQL::Types::String,
required: false,
description: 'CI variable containing the password for authenticating with the target API.'
argument :auth_username, GraphQL::STRING_TYPE,
argument :auth_username, GraphQL::Types::String,
required: false,
description: 'CI variable containing the username for authenticating with the target API.'
......@@ -31,20 +31,20 @@ module Mutations
required: true,
description: 'The mode for API fuzzing scans.'
argument :scan_profile, GraphQL::STRING_TYPE,
argument :scan_profile, GraphQL::Types::String,
required: false,
description: 'Name of a default profile to use for scanning. Ex: Quick-10.'
argument :target, GraphQL::STRING_TYPE,
argument :target, GraphQL::Types::String,
required: true,
description: 'URL for the target of API fuzzing scans.'
field :configuration_yaml, GraphQL::STRING_TYPE,
field :configuration_yaml, GraphQL::Types::String,
null: true,
description: "A YAML snippet that can be inserted into the project's "\
'`.gitlab-ci.yml` to set up API fuzzing scans.'
field :gitlab_ci_yaml_edit_path, GraphQL::STRING_TYPE,
field :gitlab_ci_yaml_edit_path, GraphQL::Types::String,
null: true,
description: "The location at which the project's `.gitlab-ci.yml` file can be edited in the browser."
......
......@@ -12,7 +12,7 @@ module Mutations
authorize :admin_epic_board
argument :group_path, GraphQL::ID_TYPE,
argument :group_path, GraphQL::Types::ID,
required: false,
description: 'Full path of the group with which the resource is associated.'
......
......@@ -8,7 +8,7 @@ module Mutations
graphql_name 'BoardEpicCreate'
argument :group_path, GraphQL::ID_TYPE,
argument :group_path, GraphQL::Types::ID,
required: true,
description: 'Group the epic to create is in.'
......@@ -21,7 +21,7 @@ module Mutations
description: 'Global ID of the epic board list in which epic will be created.'
argument :title,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: true,
description: 'Title of the epic.'
......
......@@ -17,12 +17,12 @@ module Mutations
description: 'The new limit metric type for the list.'
argument :max_issue_count,
GraphQL::INT_TYPE,
GraphQL::Types::Int,
required: false,
description: 'The new maximum issue count limit.'
argument :max_issue_weight,
GraphQL::INT_TYPE,
GraphQL::Types::Int,
required: false,
description: 'The new maximum issue weight limit.'
......
......@@ -6,7 +6,7 @@ module Mutations
extend ActiveSupport::Concern
prepended do
argument :labels, [GraphQL::STRING_TYPE],
argument :labels, [GraphQL::Types::String],
required: false,
description: copy_field_description(::Types::IssueType, :labels)
......
......@@ -26,7 +26,7 @@ module Mutations
description: 'ID of iteration to be assigned to the board.'
argument :weight,
GraphQL::INT_TYPE,
GraphQL::Types::Int,
required: false,
description: 'Weight value to be assigned to the board.'
end
......
......@@ -16,7 +16,7 @@ module Mutations
description: 'ID of an epic to set preferences for.'
argument :collapsed,
GraphQL::BOOLEAN_TYPE,
GraphQL::Types::Boolean,
required: true,
description: 'Whether the epic should be collapsed in the board.'
......
......@@ -16,17 +16,17 @@ module Mutations
description: 'Global ID of the cluster agent that will be associated with the new token.'
argument :description,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: false,
description: 'Description of the token.'
argument :name,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: true,
description: 'Name of the token.'
field :secret,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
null: true,
description: "Token secret value. Make sure you save it - you won't be able to access it again."
......
......@@ -10,11 +10,11 @@ module Mutations
graphql_name 'CreateClusterAgent'
argument :project_path, GraphQL::ID_TYPE,
argument :project_path, GraphQL::Types::ID,
required: true,
description: 'Full path of the associated project for this cluster agent.'
argument :name, GraphQL::STRING_TYPE,
argument :name, GraphQL::Types::String,
required: true,
description: 'Name of the cluster agent.'
......
......@@ -11,7 +11,7 @@ module Mutations
null: true,
description: 'The created compliance framework.'
argument :namespace_path, GraphQL::ID_TYPE,
argument :namespace_path, GraphQL::Types::ID,
required: true,
description: 'Full path of the namespace to add the compliance framework to.'
......
......@@ -5,50 +5,50 @@ module Mutations
extend ActiveSupport::Concern
prepended do
argument :group_path, GraphQL::ID_TYPE,
argument :group_path, GraphQL::Types::ID,
required: true,
description: "The group the epic to mutate is in."
argument :title,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: false,
description: 'The title of the epic.'
argument :description,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: false,
description: 'The description of the epic.'
argument :confidential,
GraphQL::BOOLEAN_TYPE,
GraphQL::Types::Boolean,
required: false,
description: 'Indicates if the epic is confidential.'
argument :start_date_fixed,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: false,
description: 'The start date of the epic.'
argument :due_date_fixed,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: false,
description: 'The end date of the epic.'
argument :start_date_is_fixed,
GraphQL::BOOLEAN_TYPE,
GraphQL::Types::Boolean,
required: false,
description: 'Indicates start date should be sourced from start_date_fixed field not the issue milestones.'
argument :due_date_is_fixed,
GraphQL::BOOLEAN_TYPE,
GraphQL::Types::Boolean,
required: false,
description: 'Indicates end date should be sourced from due_date_fixed field not the issue milestones.'
argument :add_label_ids,
[GraphQL::ID_TYPE],
[GraphQL::Types::ID],
required: false,
description: 'The IDs of labels to be added to the epic.'
argument :remove_label_ids,
[GraphQL::ID_TYPE],
[GraphQL::Types::ID],
required: false,
description: 'The IDs of labels to be removed from the epic.'
end
......
......@@ -12,24 +12,24 @@ module Mutations
null: true,
description: 'The created profile.'
field :pipeline_url, GraphQL::STRING_TYPE,
field :pipeline_url, GraphQL::Types::String,
null: true,
description: 'The URL of the pipeline that was created. Requires `runAfterCreate` to be set to `true`.'
argument :full_path, GraphQL::ID_TYPE,
argument :full_path, GraphQL::Types::ID,
required: true,
description: 'The project the profile belongs to.'
argument :name, GraphQL::STRING_TYPE,
argument :name, GraphQL::Types::String,
required: true,
description: 'The name of the profile.'
argument :description, GraphQL::STRING_TYPE,
argument :description, GraphQL::Types::String,
required: false,
description: 'The description of the profile. Defaults to an empty string.',
default_value: ''
argument :branch_name, GraphQL::STRING_TYPE,
argument :branch_name, GraphQL::Types::String,
required: false,
description: 'The associated branch.'
......@@ -41,7 +41,7 @@ module Mutations
required: true,
description: 'ID of the scanner profile to be associated.'
argument :run_after_create, GraphQL::BOOLEAN_TYPE,
argument :run_after_create, GraphQL::Types::Boolean,
required: false,
description: 'Run scan using profile after creation. Defaults to false.',
default_value: false
......
......@@ -10,11 +10,11 @@ module Mutations
ProfileID = ::Types::GlobalIDType[::Dast::Profile]
field :pipeline_url, GraphQL::STRING_TYPE,
field :pipeline_url, GraphQL::Types::String,
null: true,
description: 'URL of the pipeline that was created.'
argument :full_path, GraphQL::ID_TYPE,
argument :full_path, GraphQL::Types::ID,
required: true,
description: 'Full path for the project the scanner profile belongs to.'
......
......@@ -16,7 +16,7 @@ module Mutations
null: true,
description: 'The updated profile.'
field :pipeline_url, GraphQL::STRING_TYPE,
field :pipeline_url, GraphQL::Types::String,
null: true,
description: 'The URL of the pipeline that was created. Requires the input ' \
'argument `runAfterUpdate` to be set to `true` when calling the ' \
......@@ -26,20 +26,20 @@ module Mutations
required: true,
description: 'ID of the profile to be deleted.'
argument :full_path, GraphQL::ID_TYPE,
argument :full_path, GraphQL::Types::ID,
required: true,
description: 'The project the profile belongs to.'
argument :name, GraphQL::STRING_TYPE,
argument :name, GraphQL::Types::String,
required: false,
description: 'The name of the profile.'
argument :description, GraphQL::STRING_TYPE,
argument :description, GraphQL::Types::String,
required: false,
description: 'The description of the profile. Defaults to an empty string.',
default_value: ''
argument :branch_name, GraphQL::STRING_TYPE,
argument :branch_name, GraphQL::Types::String,
required: false,
description: 'The associated branch.'
......@@ -51,7 +51,7 @@ module Mutations
required: false,
description: 'ID of the scanner profile to be associated.'
argument :run_after_update, GraphQL::BOOLEAN_TYPE,
argument :run_after_update, GraphQL::Types::Boolean,
required: false,
description: 'Run scan using profile after update. Defaults to false.',
default_value: false
......
......@@ -9,11 +9,11 @@ module Mutations
graphql_name 'DastOnDemandScanCreate'
field :pipeline_url, GraphQL::STRING_TYPE,
field :pipeline_url, GraphQL::Types::String,
null: true,
description: 'URL of the pipeline that was created.'
argument :full_path, GraphQL::ID_TYPE,
argument :full_path, GraphQL::Types::ID,
required: true,
description: 'The project the site profile belongs to.'
......
......@@ -11,19 +11,19 @@ module Mutations
null: true,
description: 'ID of the scanner profile.'
argument :full_path, GraphQL::ID_TYPE,
argument :full_path, GraphQL::Types::ID,
required: true,
description: 'The project the scanner profile belongs to.'
argument :profile_name, GraphQL::STRING_TYPE,
argument :profile_name, GraphQL::Types::String,
required: true,
description: 'The name of the scanner profile.'
argument :spider_timeout, GraphQL::INT_TYPE,
argument :spider_timeout, GraphQL::Types::Int,
required: false,
description: 'The maximum number of minutes allowed for the spider to traverse the site.'
argument :target_timeout, GraphQL::INT_TYPE,
argument :target_timeout, GraphQL::Types::Int,
required: false,
description: 'The maximum number of seconds allowed for the site under test to respond to a request.'
......@@ -33,13 +33,13 @@ module Mutations
'Either a Passive Scan or an Active Scan.',
default_value: 'passive'
argument :use_ajax_spider, GraphQL::BOOLEAN_TYPE,
argument :use_ajax_spider, GraphQL::Types::Boolean,
required: false,
description: 'Indicates if the AJAX spider should be used to crawl the target site. ' \
'True to run the AJAX spider in addition to the traditional spider, and false to run only the traditional spider.',
default_value: false
argument :show_debug_messages, GraphQL::BOOLEAN_TYPE,
argument :show_debug_messages, GraphQL::Types::Boolean,
required: false,
description: 'Indicates if debug messages should be included in DAST console output. ' \
'True to include the debug messages.',
......
......@@ -9,7 +9,7 @@ module Mutations
ScannerProfileID = ::Types::GlobalIDType[::DastScannerProfile]
argument :full_path, GraphQL::ID_TYPE,
argument :full_path, GraphQL::Types::ID,
required: true,
description: 'Full path for the project the scanner profile belongs to.'
......
......@@ -11,7 +11,7 @@ module Mutations
null: true,
description: 'ID of the scanner profile.'
argument :full_path, GraphQL::ID_TYPE,
argument :full_path, GraphQL::Types::ID,
required: true,
description: 'The project the scanner profile belongs to.'
......@@ -19,15 +19,15 @@ module Mutations
required: true,
description: 'ID of the scanner profile to be updated.'
argument :profile_name, GraphQL::STRING_TYPE,
argument :profile_name, GraphQL::Types::String,
required: true,
description: 'The name of the scanner profile.'
argument :spider_timeout, GraphQL::INT_TYPE,
argument :spider_timeout, GraphQL::Types::Int,
required: true,
description: 'The maximum number of minutes allowed for the spider to traverse the site.'
argument :target_timeout, GraphQL::INT_TYPE,
argument :target_timeout, GraphQL::Types::Int,
required: true,
description: 'The maximum number of seconds allowed for the site under test to respond to a request.'
......@@ -36,12 +36,12 @@ module Mutations
description: 'Indicates the type of DAST scan that will run. ' \
'Either a Passive Scan or an Active Scan.'
argument :use_ajax_spider, GraphQL::BOOLEAN_TYPE,
argument :use_ajax_spider, GraphQL::Types::Boolean,
required: false,
description: 'Indicates if the AJAX spider should be used to crawl the target site. ' \
'True to run the AJAX spider in addition to the traditional spider, and false to run only the traditional spider.'
argument :show_debug_messages, GraphQL::BOOLEAN_TYPE,
argument :show_debug_messages, GraphQL::Types::Boolean,
required: false,
description: 'Indicates if debug messages should be included in DAST console output. ' \
'True to include the debug messages.'
......
......@@ -11,15 +11,15 @@ module Mutations
null: true,
description: 'ID of the site profile.'
argument :full_path, GraphQL::ID_TYPE,
argument :full_path, GraphQL::Types::ID,
required: true,
description: 'The project the site profile belongs to.'
argument :profile_name, GraphQL::STRING_TYPE,
argument :profile_name, GraphQL::Types::String,
required: true,
description: 'The name of the site profile.'
argument :target_url, GraphQL::STRING_TYPE,
argument :target_url, GraphQL::Types::String,
required: false,
description: 'The URL of the target to be scanned.'
......@@ -27,12 +27,12 @@ module Mutations
required: false,
description: 'The type of target to be scanned.'
argument :excluded_urls, [GraphQL::STRING_TYPE],
argument :excluded_urls, [GraphQL::Types::String],
required: false,
default_value: [],
description: 'The URLs to skip during an authenticated scan. Defaults to `[]`.'
argument :request_headers, GraphQL::STRING_TYPE,
argument :request_headers, GraphQL::Types::String,
required: false,
description: 'Comma-separated list of request header names and values to be ' \
'added to every request made by DAST.'
......
......@@ -5,7 +5,7 @@ module Mutations
class Delete < BaseMutation
graphql_name 'DastSiteProfileDelete'
argument :full_path, GraphQL::ID_TYPE,
argument :full_path, GraphQL::Types::ID,
required: true,
description: 'The project the site profile belongs to.'
......
......@@ -13,7 +13,7 @@ module Mutations
null: true,
description: 'ID of the site profile.'
argument :full_path, GraphQL::ID_TYPE,
argument :full_path, GraphQL::Types::ID,
required: true,
description: 'The project the site profile belongs to.'
......@@ -21,11 +21,11 @@ module Mutations
required: true,
description: 'ID of the site profile to be updated.'
argument :profile_name, GraphQL::STRING_TYPE,
argument :profile_name, GraphQL::Types::String,
required: true,
description: 'The name of the site profile.'
argument :target_url, GraphQL::STRING_TYPE,
argument :target_url, GraphQL::Types::String,
required: false,
description: 'The URL of the target to be scanned.'
......@@ -33,11 +33,11 @@ module Mutations
required: false,
description: 'The type of target to be scanned.'
argument :excluded_urls, [GraphQL::STRING_TYPE],
argument :excluded_urls, [GraphQL::Types::String],
required: false,
description: 'The URLs to skip during an authenticated scan.'
argument :request_headers, GraphQL::STRING_TYPE,
argument :request_headers, GraphQL::Types::String,
required: false,
description: 'Comma-separated list of request header names and values to be ' \
'added to every request made by DAST.'
......
......@@ -11,7 +11,7 @@ module Mutations
null: true,
description: 'ID of the site token.'
field :token, GraphQL::STRING_TYPE,
field :token, GraphQL::Types::String,
null: true,
description: 'Token string.'
......@@ -19,11 +19,11 @@ module Mutations
null: true,
description: 'The current validation status of the target.'
argument :full_path, GraphQL::ID_TYPE,
argument :full_path, GraphQL::Types::ID,
required: true,
description: 'The project the site token belongs to.'
argument :target_url, GraphQL::STRING_TYPE,
argument :target_url, GraphQL::Types::String,
required: false,
description: 'The URL of the target to be validated.'
......
......@@ -15,7 +15,7 @@ module Mutations
null: true,
description: 'The current validation status.'
argument :full_path, GraphQL::ID_TYPE,
argument :full_path, GraphQL::Types::ID,
required: true,
description: 'The project the site profile belongs to.'
......@@ -23,7 +23,7 @@ module Mutations
required: true,
description: 'ID of the site token.'
argument :validation_path, GraphQL::STRING_TYPE,
argument :validation_path, GraphQL::Types::String,
required: true,
description: 'The path to be requested during validation.'
......
......@@ -7,11 +7,11 @@ module Mutations
graphql_name 'DastSiteValidationRevoke'
argument :full_path, GraphQL::ID_TYPE,
argument :full_path, GraphQL::Types::ID,
required: true,
description: 'The project the site validation belongs to.'
argument :normalized_target_url, GraphQL::STRING_TYPE,
argument :normalized_target_url, GraphQL::Types::String,
required: true,
description: 'Normalized URL of the target to be revoked.'
......
......@@ -9,11 +9,11 @@ module Mutations
authorize :admin_epic
argument :project_path, GraphQL::ID_TYPE,
argument :project_path, GraphQL::Types::ID,
required: true,
description: 'The full path of the project the issue belongs to.'
argument :issue_iid, GraphQL::STRING_TYPE,
argument :issue_iid, GraphQL::Types::String,
required: true,
description: 'The IID of the issue to be added.'
......
......@@ -5,11 +5,11 @@ module Mutations
class Base < ::Mutations::BaseMutation
include Mutations::ResolvesIssuable
argument :iid, GraphQL::ID_TYPE,
argument :iid, GraphQL::Types::ID,
required: true,
description: "The IID of the epic to mutate."
argument :group_path, GraphQL::ID_TYPE,
argument :group_path, GraphQL::Types::ID,
required: true,
description: 'The group the epic to mutate belongs to.'
......
......@@ -7,7 +7,7 @@ module Mutations
authorize :read_epic
argument :subscribed_state, GraphQL::BOOLEAN_TYPE,
argument :subscribed_state, GraphQL::Types::Boolean,
required: true,
description: 'The desired state of the subscription.'
......
......@@ -7,7 +7,7 @@ module Mutations
authorize :manage_subscription
argument :activation_code, GraphQL::STRING_TYPE,
argument :activation_code, GraphQL::Types::String,
required: true,
description: 'Activation code received after purchasing a GitLab subscription.'
......
......@@ -8,15 +8,15 @@ module Mutations
graphql_name 'EscalationPolicyCreate'
argument :project_path, GraphQL::ID_TYPE,
argument :project_path, GraphQL::Types::ID,
required: true,
description: 'The project to create the escalation policy for.'
argument :name, GraphQL::STRING_TYPE,
argument :name, GraphQL::Types::String,
required: true,
description: 'The name of the escalation policy.'
argument :description, GraphQL::STRING_TYPE,
argument :description, GraphQL::Types::String,
required: false,
description: 'The description of the escalation policy.'
......
......@@ -10,11 +10,11 @@ module Mutations
required: true,
description: 'The ID of the on-call schedule to create the on-call rotation in.'
argument :name, GraphQL::STRING_TYPE,
argument :name, GraphQL::Types::String,
required: false,
description: 'The name of the escalation policy.'
argument :description, GraphQL::STRING_TYPE,
argument :description, GraphQL::Types::String,
required: false,
description: 'The description of the escalation policy.'
......
......@@ -8,16 +8,16 @@ module Mutations
graphql_name 'OncallRotationCreate'
argument :project_path, GraphQL::ID_TYPE,
argument :project_path, GraphQL::Types::ID,
required: true,
description: 'The project to create the on-call schedule in.'
argument :schedule_iid, GraphQL::STRING_TYPE,
argument :schedule_iid, GraphQL::Types::String,
required: true,
description: 'The IID of the on-call schedule to create the on-call rotation in.',
as: :iid
argument :name, GraphQL::STRING_TYPE,
argument :name, GraphQL::Types::String,
required: true,
description: 'The name of the on-call rotation.'
......
......@@ -6,11 +6,11 @@ module Mutations
class Destroy < Base
graphql_name 'OncallRotationDestroy'
argument :project_path, GraphQL::ID_TYPE,
argument :project_path, GraphQL::Types::ID,
required: true,
description: 'The project to remove the on-call schedule from.'
argument :schedule_iid, GraphQL::STRING_TYPE,
argument :schedule_iid, GraphQL::Types::String,
required: true,
description: 'The IID of the on-call schedule to the on-call rotation belongs to.'
......
......@@ -12,7 +12,7 @@ module Mutations
required: true,
description: 'The ID of the on-call schedule to create the on-call rotation in.'
argument :name, GraphQL::STRING_TYPE,
argument :name, GraphQL::Types::String,
required: false,
description: 'The name of the on-call rotation.'
......
......@@ -8,19 +8,19 @@ module Mutations
graphql_name 'OncallScheduleCreate'
argument :project_path, GraphQL::ID_TYPE,
argument :project_path, GraphQL::Types::ID,
required: true,
description: 'The project to create the on-call schedule in.'
argument :name, GraphQL::STRING_TYPE,
argument :name, GraphQL::Types::String,
required: true,
description: 'The name of the on-call schedule.'
argument :description, GraphQL::STRING_TYPE,
argument :description, GraphQL::Types::String,
required: false,
description: 'The description of the on-call schedule.'
argument :timezone, GraphQL::STRING_TYPE,
argument :timezone, GraphQL::Types::String,
required: true,
description: 'The timezone of the on-call schedule.'
......
......@@ -6,11 +6,11 @@ module Mutations
class Destroy < OncallScheduleBase
graphql_name 'OncallScheduleDestroy'
argument :project_path, GraphQL::ID_TYPE,
argument :project_path, GraphQL::Types::ID,
required: true,
description: 'The project to remove the on-call schedule from.'
argument :iid, GraphQL::STRING_TYPE,
argument :iid, GraphQL::Types::String,
required: true,
description: 'The on-call schedule internal ID to remove.'
......
......@@ -6,23 +6,23 @@ module Mutations
class Update < OncallScheduleBase
graphql_name 'OncallScheduleUpdate'
argument :project_path, GraphQL::ID_TYPE,
argument :project_path, GraphQL::Types::ID,
required: true,
description: 'The project to update the on-call schedule in.'
argument :iid, GraphQL::STRING_TYPE,
argument :iid, GraphQL::Types::String,
required: true,
description: 'The on-call schedule internal ID to update.'
argument :name, GraphQL::STRING_TYPE,
argument :name, GraphQL::Types::String,
required: false,
description: 'The name of the on-call schedule.'
argument :description, GraphQL::STRING_TYPE,
argument :description, GraphQL::Types::String,
required: false,
description: 'The description of the on-call schedule.'
argument :timezone, GraphQL::STRING_TYPE,
argument :timezone, GraphQL::Types::String,
required: false,
description: 'The timezone of the on-call schedule.'
......
......@@ -11,7 +11,7 @@ module Mutations
required: false,
description: 'The desired health status.'
argument :weight, GraphQL::INT_TYPE,
argument :weight, GraphQL::Types::Int,
required: false,
description: 'The weight of the issue.'
end
......
......@@ -7,7 +7,7 @@ module Mutations
graphql_name 'PromoteToEpic'
argument :group_path, GraphQL::ID_TYPE,
argument :group_path, GraphQL::Types::ID,
required: false,
description: 'The group the promoted epic will belong to.'
......
......@@ -6,7 +6,7 @@ module Mutations
graphql_name 'IssueSetWeight'
argument :weight,
GraphQL::INT_TYPE,
GraphQL::Types::Int,
required: false,
description: 'The desired weight for the issue. ' \
'If set to null, weight is removed.'
......
......@@ -10,31 +10,31 @@ module Mutations
authorize :create_iteration_cadence
argument :group_path, GraphQL::ID_TYPE, required: true,
argument :group_path, GraphQL::Types::ID, required: true,
description: "The group where the iteration cadence is created."
argument :title, GraphQL::STRING_TYPE, required: false,
argument :title, GraphQL::Types::String, required: false,
description: copy_field_description(Types::Iterations::CadenceType, :title)
argument :duration_in_weeks, GraphQL::INT_TYPE, required: false,
argument :duration_in_weeks, GraphQL::Types::Int, required: false,
description: copy_field_description(Types::Iterations::CadenceType, :duration_in_weeks)
argument :iterations_in_advance, GraphQL::INT_TYPE, required: false,
argument :iterations_in_advance, GraphQL::Types::Int, required: false,
description: copy_field_description(Types::Iterations::CadenceType, :iterations_in_advance)
argument :start_date, Types::TimeType, required: false,
description: copy_field_description(Types::Iterations::CadenceType, :start_date)
argument :automatic, GraphQL::BOOLEAN_TYPE, required: true,
argument :automatic, GraphQL::Types::Boolean, required: true,
description: copy_field_description(Types::Iterations::CadenceType, :automatic)
argument :active, GraphQL::BOOLEAN_TYPE, required: true,
argument :active, GraphQL::Types::Boolean, required: true,
description: copy_field_description(Types::Iterations::CadenceType, :active)
argument :roll_over, GraphQL::BOOLEAN_TYPE, required: false,
argument :roll_over, GraphQL::Types::Boolean, required: false,
description: copy_field_description(Types::Iterations::CadenceType, :roll_over)
argument :description, GraphQL::STRING_TYPE, required: false,
argument :description, GraphQL::Types::String, required: false,
description: copy_field_description(Types::Iterations::CadenceType, :description)
field :iteration_cadence, Types::Iterations::CadenceType, null: true,
......
......@@ -11,28 +11,28 @@ module Mutations
argument :id, ::Types::GlobalIDType[::Iterations::Cadence], required: true,
description: copy_field_description(Types::Iterations::CadenceType, :id)
argument :title, GraphQL::STRING_TYPE, required: false,
argument :title, GraphQL::Types::String, required: false,
description: copy_field_description(Types::Iterations::CadenceType, :title)
argument :duration_in_weeks, GraphQL::INT_TYPE, required: false,
argument :duration_in_weeks, GraphQL::Types::Int, required: false,
description: copy_field_description(Types::Iterations::CadenceType, :duration_in_weeks)
argument :iterations_in_advance, GraphQL::INT_TYPE, required: false,
argument :iterations_in_advance, GraphQL::Types::Int, required: false,
description: copy_field_description(Types::Iterations::CadenceType, :iterations_in_advance)
argument :start_date, Types::TimeType, required: false,
description: copy_field_description(Types::Iterations::CadenceType, :start_date)
argument :automatic, GraphQL::BOOLEAN_TYPE, required: false,
argument :automatic, GraphQL::Types::Boolean, required: false,
description: copy_field_description(Types::Iterations::CadenceType, :automatic)
argument :active, GraphQL::BOOLEAN_TYPE, required: false,
argument :active, GraphQL::Types::Boolean, required: false,
description: copy_field_description(Types::Iterations::CadenceType, :active)
argument :roll_over, GraphQL::BOOLEAN_TYPE, required: false,
argument :roll_over, GraphQL::Types::Boolean, required: false,
description: copy_field_description(Types::Iterations::CadenceType, :roll_over)
argument :description, GraphQL::STRING_TYPE, required: false,
argument :description, GraphQL::Types::String, required: false,
description: copy_field_description(Types::Iterations::CadenceType, :description)
field :iteration_cadence, Types::Iterations::CadenceType, null: true,
......
......@@ -21,22 +21,22 @@ module Mutations
description: 'Global ID of the iterations cadence to be assigned to newly created iteration.'
argument :title,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: false,
description: 'The title of the iteration.'
argument :description,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: false,
description: 'The description of the iteration.'
argument :start_date,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: false,
description: 'The start date of the iteration.'
argument :due_date,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: false,
description: 'The end date of the iteration.'
......
......@@ -15,34 +15,34 @@ module Mutations
null: true,
description: 'Updated iteration.'
argument :group_path, GraphQL::ID_TYPE,
argument :group_path, GraphQL::Types::ID,
required: true,
description: 'Group of the iteration.'
# rubocop:disable Graphql/IDType
argument :id,
GraphQL::ID_TYPE,
GraphQL::Types::ID,
required: true,
description: 'Global ID of the iteration.'
# rubocop:enable Graphql/IDType
argument :title,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: false,
description: 'Title of the iteration.'
argument :description,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: false,
description: 'Description of the iteration.'
argument :start_date,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: false,
description: 'Start date of the iteration.'
argument :due_date,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: false,
description: 'End date of the iteration.'
......
......@@ -10,20 +10,20 @@ module Mutations
authorize :create_test_case
argument :title, GraphQL::STRING_TYPE,
argument :title, GraphQL::Types::String,
required: true,
description: 'The test case title.'
argument :description, GraphQL::STRING_TYPE,
argument :description, GraphQL::Types::String,
required: false,
description: 'The test case description.'
argument :label_ids,
[GraphQL::ID_TYPE],
[GraphQL::Types::ID],
required: false,
description: 'The IDs of labels to be added to the test case.'
argument :project_path, GraphQL::ID_TYPE,
argument :project_path, GraphQL::Types::ID,
required: true,
description: 'The project full path to create the test case.'
......
......@@ -9,15 +9,15 @@ module Mutations
null: true,
description: 'Requirement after mutation.'
argument :title, GraphQL::STRING_TYPE,
argument :title, GraphQL::Types::String,
required: false,
description: 'Title of the requirement.'
argument :description, GraphQL::STRING_TYPE,
argument :description, GraphQL::Types::String,
required: false,
description: 'Description of the requirement.'
argument :project_path, GraphQL::ID_TYPE,
argument :project_path, GraphQL::Types::ID,
required: true,
description: 'Full project path the requirement is associated with.'
end
......
......@@ -10,11 +10,11 @@ module Mutations
authorize :export_requirements
argument :project_path, GraphQL::ID_TYPE,
argument :project_path, GraphQL::Types::ID,
required: true,
description: 'Full project path the requirements are associated with.'
argument :selected_fields, [GraphQL::STRING_TYPE],
argument :selected_fields, [GraphQL::Types::String],
required: false,
description: 'List of selected requirements fields to be exported.'
......
......@@ -11,7 +11,7 @@ module Mutations
required: false,
description: 'State of the requirement.'
argument :iid, GraphQL::STRING_TYPE,
argument :iid, GraphQL::Types::String,
required: true,
description: 'The IID of the requirement to update.'
......
......@@ -9,7 +9,7 @@ module Mutations
authorize :update_security_orchestration_policy_project
argument :project_path, GraphQL::ID_TYPE,
argument :project_path, GraphQL::Types::ID,
required: true,
description: 'Full path of the project.'
......
......@@ -9,11 +9,11 @@ module Mutations
authorize :security_orchestration_policies
argument :project_path, GraphQL::ID_TYPE,
argument :project_path, GraphQL::Types::ID,
required: true,
description: 'Full path of the project.'
argument :policy_yaml, GraphQL::STRING_TYPE,
argument :policy_yaml, GraphQL::Types::String,
required: true,
description: 'YAML snippet of the policy.'
......@@ -23,7 +23,7 @@ module Mutations
description: 'Changes the operation mode.'
field :branch,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
null: true,
description: 'Name of the branch to which the policy changes are committed.'
......
......@@ -9,7 +9,7 @@ module Mutations
authorize :update_security_orchestration_policy_project
argument :project_path, GraphQL::ID_TYPE,
argument :project_path, GraphQL::Types::ID,
required: true,
description: 'Full path of the project.'
......
......@@ -17,7 +17,7 @@ module Mutations
description: 'ID of the vulnerability to be dismissed.'
argument :comment,
GraphQL::STRING_TYPE,
GraphQL::Types::String,
required: false,
description: 'Comment why vulnerability should be dismissed.'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment