Commit eabd4c8c authored by Ash McKenzie's avatar Ash McKenzie

Merge branch 'ld-graphql-docs-add-dots' into 'master'

Add . to end of auto-generated GraphQL docs

See merge request gitlab-org/gitlab!42172
parents 66762b6a 0e366816
...@@ -7,7 +7,7 @@ module Types ...@@ -7,7 +7,7 @@ module Types
# a plain hash. # a plain hash.
class DeleteJobsResponseType < BaseObject # rubocop:disable Graphql/AuthorizeTypes class DeleteJobsResponseType < BaseObject # rubocop:disable Graphql/AuthorizeTypes
graphql_name 'DeleteJobsResponse' graphql_name 'DeleteJobsResponse'
description 'The response from the AdminSidekiqQueuesDeleteJobs mutation.' description 'The response from the AdminSidekiqQueuesDeleteJobs mutation'
field :completed, field :completed,
GraphQL::BOOLEAN_TYPE, GraphQL::BOOLEAN_TYPE,
......
...@@ -4,7 +4,7 @@ module Types ...@@ -4,7 +4,7 @@ module Types
module AwardEmojis module AwardEmojis
class AwardEmojiType < BaseObject class AwardEmojiType < BaseObject
graphql_name 'AwardEmoji' graphql_name 'AwardEmoji'
description 'An emoji awarded by a user.' description 'An emoji awarded by a user'
authorize :read_emoji authorize :read_emoji
......
...@@ -6,7 +6,7 @@ module Types ...@@ -6,7 +6,7 @@ module Types
graphql_name 'DesignAtVersion' graphql_name 'DesignAtVersion'
description 'A design pinned to a specific version. ' \ description 'A design pinned to a specific version. ' \
'The image field reflects the design as of the associated version.' 'The image field reflects the design as of the associated version'
authorize :read_design authorize :read_design
...@@ -23,7 +23,7 @@ module Types ...@@ -23,7 +23,7 @@ module Types
field :design, field :design,
Types::DesignManagement::DesignType, Types::DesignManagement::DesignType,
null: false, null: false,
description: 'The underlying design.' description: 'The underlying design'
def cached_stateful_version(_parent) def cached_stateful_version(_parent)
version version
......
...@@ -4,7 +4,7 @@ module Types ...@@ -4,7 +4,7 @@ module Types
module DesignManagement module DesignManagement
class DesignCollectionType < BaseObject class DesignCollectionType < BaseObject
graphql_name 'DesignCollection' graphql_name 'DesignCollection'
description 'A collection of designs.' description 'A collection of designs'
authorize :read_design authorize :read_design
......
...@@ -4,7 +4,7 @@ module Types ...@@ -4,7 +4,7 @@ module Types
module ErrorTracking module ErrorTracking
class SentryDetailedErrorType < ::Types::BaseObject class SentryDetailedErrorType < ::Types::BaseObject
graphql_name 'SentryDetailedError' graphql_name 'SentryDetailedError'
description 'A Sentry error.' description 'A Sentry error'
present_using SentryErrorPresenter present_using SentryErrorPresenter
......
...@@ -4,7 +4,7 @@ module Types ...@@ -4,7 +4,7 @@ module Types
module ErrorTracking module ErrorTracking
class SentryErrorCollectionType < ::Types::BaseObject class SentryErrorCollectionType < ::Types::BaseObject
graphql_name 'SentryErrorCollection' graphql_name 'SentryErrorCollection'
description 'An object containing a collection of Sentry errors, and a detailed error.' description 'An object containing a collection of Sentry errors, and a detailed error'
authorize :read_sentry_issue authorize :read_sentry_issue
...@@ -21,7 +21,7 @@ module Types ...@@ -21,7 +21,7 @@ module Types
required: false required: false
argument :sort, argument :sort,
String, String,
description: 'Attribute to sort on. Options are frequency, first_seen, last_seen. last_seen is default.', description: 'Attribute to sort on. Options are frequency, first_seen, last_seen. last_seen is default',
required: false required: false
end end
field :detailed_error, Types::ErrorTracking::SentryDetailedErrorType, field :detailed_error, Types::ErrorTracking::SentryDetailedErrorType,
......
...@@ -5,7 +5,7 @@ module Types ...@@ -5,7 +5,7 @@ module Types
# rubocop: disable Graphql/AuthorizeTypes # rubocop: disable Graphql/AuthorizeTypes
class SentryErrorStackTraceEntryType < ::Types::BaseObject class SentryErrorStackTraceEntryType < ::Types::BaseObject
graphql_name 'SentryErrorStackTraceEntry' graphql_name 'SentryErrorStackTraceEntry'
description 'An object containing a stack trace entry for a Sentry error.' description 'An object containing a stack trace entry for a Sentry error'
field :function, GraphQL::STRING_TYPE, field :function, GraphQL::STRING_TYPE,
null: true, null: true,
......
...@@ -4,7 +4,7 @@ module Types ...@@ -4,7 +4,7 @@ module Types
module ErrorTracking module ErrorTracking
class SentryErrorStackTraceType < ::Types::BaseObject class SentryErrorStackTraceType < ::Types::BaseObject
graphql_name 'SentryErrorStackTrace' graphql_name 'SentryErrorStackTrace'
description 'An object containing a stack trace entry for a Sentry error.' description 'An object containing a stack trace entry for a Sentry error'
authorize :read_sentry_issue authorize :read_sentry_issue
......
...@@ -5,7 +5,7 @@ module Types ...@@ -5,7 +5,7 @@ module Types
# rubocop: disable Graphql/AuthorizeTypes # rubocop: disable Graphql/AuthorizeTypes
class SentryErrorType < ::Types::BaseObject class SentryErrorType < ::Types::BaseObject
graphql_name 'SentryError' graphql_name 'SentryError'
description 'A Sentry error. A simplified version of SentryDetailedError.' description 'A Sentry error. A simplified version of SentryDetailedError'
present_using SentryErrorPresenter present_using SentryErrorPresenter
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Types module Types
class IssueStatusCountsType < BaseObject class IssueStatusCountsType < BaseObject
graphql_name 'IssueStatusCountsType' graphql_name 'IssueStatusCountsType'
description "Represents total number of issues for the represented statuses." description 'Represents total number of issues for the represented statuses'
authorize :read_issue authorize :read_issue
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Types module Types
class MilestoneType < BaseObject class MilestoneType < BaseObject
graphql_name 'Milestone' graphql_name 'Milestone'
description 'Represents a milestone.' description 'Represents a milestone'
present_using MilestonePresenter present_using MilestonePresenter
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Types module Types
class MutationOperationModeEnum < BaseEnum class MutationOperationModeEnum < BaseEnum
graphql_name 'MutationOperationMode' graphql_name 'MutationOperationMode'
description 'Different toggles for changing mutator behavior.' description 'Different toggles for changing mutator behavior'
# Suggested param name for the enum: `operation_mode` # Suggested param name for the enum: `operation_mode`
......
...@@ -731,7 +731,7 @@ type AlertTodoCreatePayload { ...@@ -731,7 +731,7 @@ type AlertTodoCreatePayload {
} }
""" """
An emoji awarded by a user. An emoji awarded by a user
""" """
type AwardEmoji { type AwardEmoji {
""" """
...@@ -1448,7 +1448,7 @@ type Branch { ...@@ -1448,7 +1448,7 @@ type Branch {
} }
""" """
Represents the total number of issues and their weights for a particular day. Represents the total number of issues and their weights for a particular day
""" """
type BurnupChartDailyTotals { type BurnupChartDailyTotals {
""" """
...@@ -3139,7 +3139,7 @@ enum DastScanTypeEnum { ...@@ -3139,7 +3139,7 @@ enum DastScanTypeEnum {
} }
""" """
Represents a DAST scanner profile. Represents a DAST scanner profile
""" """
type DastScannerProfile { type DastScannerProfile {
""" """
...@@ -3359,7 +3359,7 @@ type DastScannerProfileUpdatePayload { ...@@ -3359,7 +3359,7 @@ type DastScannerProfileUpdatePayload {
} }
""" """
Represents a DAST Site Profile. Represents a DAST Site Profile
""" """
type DastSiteProfile { type DastSiteProfile {
""" """
...@@ -3626,7 +3626,7 @@ type DeleteAnnotationPayload { ...@@ -3626,7 +3626,7 @@ type DeleteAnnotationPayload {
} }
""" """
The response from the AdminSidekiqQueuesDeleteJobs mutation. The response from the AdminSidekiqQueuesDeleteJobs mutation
""" """
type DeleteJobsResponse { type DeleteJobsResponse {
""" """
...@@ -3816,11 +3816,11 @@ type Design implements CurrentUserTodos & DesignFields & Noteable { ...@@ -3816,11 +3816,11 @@ type Design implements CurrentUserTodos & DesignFields & Noteable {
} }
""" """
A design pinned to a specific version. The image field reflects the design as of the associated version. A design pinned to a specific version. The image field reflects the design as of the associated version
""" """
type DesignAtVersion implements DesignFields { type DesignAtVersion implements DesignFields {
""" """
The underlying design. The underlying design
""" """
design: Design! design: Design!
...@@ -3916,7 +3916,7 @@ type DesignAtVersionEdge { ...@@ -3916,7 +3916,7 @@ type DesignAtVersionEdge {
} }
""" """
A collection of designs. A collection of designs
""" """
type DesignCollection { type DesignCollection {
""" """
...@@ -5106,7 +5106,7 @@ type EnvironmentEdge { ...@@ -5106,7 +5106,7 @@ type EnvironmentEdge {
} }
""" """
Represents an epic. Represents an epic
""" """
type Epic implements CurrentUserTodos & Noteable { type Epic implements CurrentUserTodos & Noteable {
""" """
...@@ -5603,7 +5603,7 @@ type EpicConnection { ...@@ -5603,7 +5603,7 @@ type EpicConnection {
} }
""" """
Counts of descendent epics. Counts of descendent epics
""" """
type EpicDescendantCount { type EpicDescendantCount {
""" """
...@@ -6203,7 +6203,7 @@ enum EpicSort { ...@@ -6203,7 +6203,7 @@ enum EpicSort {
} }
""" """
State of an epic. State of an epic
""" """
enum EpicState { enum EpicState {
all all
...@@ -8703,7 +8703,7 @@ enum IssueState { ...@@ -8703,7 +8703,7 @@ enum IssueState {
} }
""" """
Represents total number of issues for the represented statuses. Represents total number of issues for the represented statuses
""" """
type IssueStatusCountsType { type IssueStatusCountsType {
""" """
...@@ -8743,7 +8743,7 @@ enum IssueType { ...@@ -8743,7 +8743,7 @@ enum IssueType {
} }
""" """
Represents an iteration object. Represents an iteration object
""" """
type Iteration implements TimeboxBurnupTimeSeriesInterface { type Iteration implements TimeboxBurnupTimeSeriesInterface {
""" """
...@@ -10606,7 +10606,7 @@ type MetricsDashboardAnnotationEdge { ...@@ -10606,7 +10606,7 @@ type MetricsDashboardAnnotationEdge {
} }
""" """
Represents a milestone. Represents a milestone
""" """
type Milestone implements TimeboxBurnupTimeSeriesInterface { type Milestone implements TimeboxBurnupTimeSeriesInterface {
""" """
...@@ -10868,7 +10868,7 @@ type Mutation { ...@@ -10868,7 +10868,7 @@ type Mutation {
} }
""" """
Different toggles for changing mutator behavior. Different toggles for changing mutator behavior
""" """
enum MutationOperationMode { enum MutationOperationMode {
""" """
...@@ -14236,7 +14236,7 @@ type Query { ...@@ -14236,7 +14236,7 @@ type Query {
} }
""" """
State of a Geo registry. State of a Geo registry
""" """
enum RegistryState { enum RegistryState {
""" """
...@@ -14968,7 +14968,7 @@ enum RequirementState { ...@@ -14968,7 +14968,7 @@ enum RequirementState {
} }
""" """
Counts of requirements by their state. Counts of requirements by their state
""" """
type RequirementStatesCount { type RequirementStatesCount {
""" """
...@@ -15556,7 +15556,7 @@ type SecurityReportSummarySection { ...@@ -15556,7 +15556,7 @@ type SecurityReportSummarySection {
} }
""" """
The type of the security scanner. The type of the security scanner
""" """
enum SecurityScannerType { enum SecurityScannerType {
CONTAINER_SCANNING CONTAINER_SCANNING
...@@ -15588,7 +15588,7 @@ type SecurityScanners { ...@@ -15588,7 +15588,7 @@ type SecurityScanners {
} }
""" """
A Sentry error. A Sentry error
""" """
type SentryDetailedError { type SentryDetailedError {
""" """
...@@ -15733,7 +15733,7 @@ type SentryDetailedError { ...@@ -15733,7 +15733,7 @@ type SentryDetailedError {
} }
""" """
A Sentry error. A simplified version of SentryDetailedError. A Sentry error. A simplified version of SentryDetailedError
""" """
type SentryError { type SentryError {
""" """
...@@ -15823,7 +15823,7 @@ type SentryError { ...@@ -15823,7 +15823,7 @@ type SentryError {
} }
""" """
An object containing a collection of Sentry errors, and a detailed error. An object containing a collection of Sentry errors, and a detailed error
""" """
type SentryErrorCollection { type SentryErrorCollection {
""" """
...@@ -15876,7 +15876,7 @@ type SentryErrorCollection { ...@@ -15876,7 +15876,7 @@ type SentryErrorCollection {
searchTerm: String searchTerm: String
""" """
Attribute to sort on. Options are frequency, first_seen, last_seen. last_seen is default. Attribute to sort on. Options are frequency, first_seen, last_seen. last_seen is default
""" """
sort: String sort: String
): SentryErrorConnection ): SentryErrorConnection
...@@ -15935,7 +15935,7 @@ type SentryErrorFrequency { ...@@ -15935,7 +15935,7 @@ type SentryErrorFrequency {
} }
""" """
An object containing a stack trace entry for a Sentry error. An object containing a stack trace entry for a Sentry error
""" """
type SentryErrorStackTrace { type SentryErrorStackTrace {
""" """
...@@ -15970,7 +15970,7 @@ type SentryErrorStackTraceContext { ...@@ -15970,7 +15970,7 @@ type SentryErrorStackTraceContext {
} }
""" """
An object containing a stack trace entry for a Sentry error. An object containing a stack trace entry for a Sentry error
""" """
type SentryErrorStackTraceEntry { type SentryErrorStackTraceEntry {
""" """
...@@ -16670,7 +16670,7 @@ type TerraformStateRegistryEdge { ...@@ -16670,7 +16670,7 @@ type TerraformStateRegistryEdge {
} }
""" """
Represents a requirement test report. Represents a requirement test report
""" """
type TestReport { type TestReport {
""" """
...@@ -18623,7 +18623,7 @@ type VulnerabilitiesCountByDayEdge { ...@@ -18623,7 +18623,7 @@ type VulnerabilitiesCountByDayEdge {
} }
""" """
Represents a vulnerability. Represents a vulnerability
""" """
type Vulnerability { type Vulnerability {
""" """
...@@ -18786,7 +18786,7 @@ enum VulnerabilityGrade { ...@@ -18786,7 +18786,7 @@ enum VulnerabilityGrade {
} }
""" """
Represents a vulnerability identifier. Represents a vulnerability identifier
""" """
type VulnerabilityIdentifier { type VulnerabilityIdentifier {
""" """
...@@ -18811,7 +18811,7 @@ type VulnerabilityIdentifier { ...@@ -18811,7 +18811,7 @@ type VulnerabilityIdentifier {
} }
""" """
Represents an issue link of a vulnerability. Represents an issue link of a vulnerability
""" """
type VulnerabilityIssueLink { type VulnerabilityIssueLink {
""" """
...@@ -18866,7 +18866,7 @@ type VulnerabilityIssueLinkEdge { ...@@ -18866,7 +18866,7 @@ type VulnerabilityIssueLinkEdge {
} }
""" """
The type of the issue link related to a vulnerability. The type of the issue link related to a vulnerability
""" """
enum VulnerabilityIssueLinkType { enum VulnerabilityIssueLinkType {
CREATED CREATED
...@@ -19074,7 +19074,7 @@ type VulnerabilityPermissions { ...@@ -19074,7 +19074,7 @@ type VulnerabilityPermissions {
} }
""" """
The type of the security scan that found the vulnerability. The type of the security scan that found the vulnerability
""" """
enum VulnerabilityReportType { enum VulnerabilityReportType {
CONTAINER_SCANNING CONTAINER_SCANNING
...@@ -19086,7 +19086,7 @@ enum VulnerabilityReportType { ...@@ -19086,7 +19086,7 @@ enum VulnerabilityReportType {
} }
""" """
Represents a vulnerability scanner. Represents a vulnerability scanner
""" """
type VulnerabilityScanner { type VulnerabilityScanner {
""" """
...@@ -19181,7 +19181,7 @@ type VulnerabilitySeveritiesCount { ...@@ -19181,7 +19181,7 @@ type VulnerabilitySeveritiesCount {
} }
""" """
The severity of the vulnerability. The severity of the vulnerability
""" """
enum VulnerabilitySeverity { enum VulnerabilitySeverity {
CRITICAL CRITICAL
...@@ -19208,7 +19208,7 @@ enum VulnerabilitySort { ...@@ -19208,7 +19208,7 @@ enum VulnerabilitySort {
} }
""" """
The state of the vulnerability. The state of the vulnerability
""" """
enum VulnerabilityState { enum VulnerabilityState {
CONFIRMED CONFIRMED
......
This diff is collapsed.
...@@ -4,7 +4,7 @@ module Types ...@@ -4,7 +4,7 @@ module Types
# rubocop: disable Graphql/AuthorizeTypes # rubocop: disable Graphql/AuthorizeTypes
class BurnupChartDailyTotalsType < BaseObject class BurnupChartDailyTotalsType < BaseObject
graphql_name 'BurnupChartDailyTotals' graphql_name 'BurnupChartDailyTotals'
description 'Represents the total number of issues and their weights for a particular day.' description 'Represents the total number of issues and their weights for a particular day'
field :date, GraphQL::Types::ISO8601Date, null: false, field :date, GraphQL::Types::ISO8601Date, null: false,
description: 'Date for burnup totals' description: 'Date for burnup totals'
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Types module Types
class DastScannerProfileType < BaseObject class DastScannerProfileType < BaseObject
graphql_name 'DastScannerProfile' graphql_name 'DastScannerProfile'
description 'Represents a DAST scanner profile.' description 'Represents a DAST scanner profile'
authorize :create_on_demand_dast_scan authorize :create_on_demand_dast_scan
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Types module Types
class DastSiteProfileType < BaseObject class DastSiteProfileType < BaseObject
graphql_name 'DastSiteProfile' graphql_name 'DastSiteProfile'
description 'Represents a DAST Site Profile.' description 'Represents a DAST Site Profile'
authorize :create_on_demand_dast_scan authorize :create_on_demand_dast_scan
......
...@@ -4,7 +4,7 @@ module Types ...@@ -4,7 +4,7 @@ module Types
# rubocop: disable Graphql/AuthorizeTypes # rubocop: disable Graphql/AuthorizeTypes
class EpicDescendantCountType < BaseObject class EpicDescendantCountType < BaseObject
graphql_name 'EpicDescendantCount' graphql_name 'EpicDescendantCount'
description 'Counts of descendent epics.' description 'Counts of descendent epics'
field :opened_epics, GraphQL::INT_TYPE, null: true, description: 'Number of opened child epics' field :opened_epics, GraphQL::INT_TYPE, null: true, description: 'Number of opened child epics'
field :closed_epics, GraphQL::INT_TYPE, null: true, description: 'Number of closed child epics' field :closed_epics, GraphQL::INT_TYPE, null: true, description: 'Number of closed child epics'
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Types module Types
class EpicStateEnum < BaseEnum class EpicStateEnum < BaseEnum
graphql_name 'EpicState' graphql_name 'EpicState'
description 'State of an epic.' description 'State of an epic'
value 'all' value 'all'
value 'opened' value 'opened'
......
...@@ -5,7 +5,7 @@ module Types ...@@ -5,7 +5,7 @@ module Types
include ::Gitlab::Graphql::Aggregations::Epics::Constants include ::Gitlab::Graphql::Aggregations::Epics::Constants
graphql_name 'Epic' graphql_name 'Epic'
description 'Represents an epic.' description 'Represents an epic'
authorize :read_epic authorize :read_epic
......
...@@ -4,7 +4,7 @@ module Types ...@@ -4,7 +4,7 @@ module Types
module Geo module Geo
class RegistryStateEnum < BaseEnum class RegistryStateEnum < BaseEnum
graphql_name 'RegistryState' graphql_name 'RegistryState'
description 'State of a Geo registry.' description 'State of a Geo registry'
value 'PENDING', value: :pending, description: 'Registry waiting to be synced' value 'PENDING', value: :pending, description: 'Registry waiting to be synced'
value 'STARTED', value: :started, description: 'Registry currently syncing' value 'STARTED', value: :started, description: 'Registry currently syncing'
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Types module Types
class IterationType < BaseObject class IterationType < BaseObject
graphql_name 'Iteration' graphql_name 'Iteration'
description 'Represents an iteration object.' description 'Represents an iteration object'
present_using IterationPresenter present_using IterationPresenter
......
...@@ -5,7 +5,7 @@ module Types ...@@ -5,7 +5,7 @@ module Types
# rubocop: disable Graphql/AuthorizeTypes # rubocop: disable Graphql/AuthorizeTypes
class RequirementStatesCountType < BaseObject class RequirementStatesCountType < BaseObject
graphql_name 'RequirementStatesCount' graphql_name 'RequirementStatesCount'
description 'Counts of requirements by their state.' description 'Counts of requirements by their state'
field :opened, GraphQL::INT_TYPE, null: true, description: 'Number of opened requirements' field :opened, GraphQL::INT_TYPE, null: true, description: 'Number of opened requirements'
field :archived, GraphQL::INT_TYPE, null: true, description: 'Number of archived requirements' field :archived, GraphQL::INT_TYPE, null: true, description: 'Number of archived requirements'
......
...@@ -4,7 +4,7 @@ module Types ...@@ -4,7 +4,7 @@ module Types
module RequirementsManagement module RequirementsManagement
class TestReportType < BaseObject class TestReportType < BaseObject
graphql_name 'TestReport' graphql_name 'TestReport'
description 'Represents a requirement test report.' description 'Represents a requirement test report'
authorize :read_requirement authorize :read_requirement
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Types module Types
class SecurityScannerTypeEnum < BaseEnum class SecurityScannerTypeEnum < BaseEnum
graphql_name 'SecurityScannerType' graphql_name 'SecurityScannerType'
description 'The type of the security scanner.' description 'The type of the security scanner'
::Security::SecurityJobsFinder.allowed_job_types.each do |scanner| ::Security::SecurityJobsFinder.allowed_job_types.each do |scanner|
value scanner.upcase.to_s value scanner.upcase.to_s
......
...@@ -5,7 +5,7 @@ module Types ...@@ -5,7 +5,7 @@ module Types
# rubocop: disable Graphql/AuthorizeTypes # rubocop: disable Graphql/AuthorizeTypes
class IssueLinkType < BaseObject class IssueLinkType < BaseObject
graphql_name 'VulnerabilityIssueLink' graphql_name 'VulnerabilityIssueLink'
description 'Represents an issue link of a vulnerability.' description 'Represents an issue link of a vulnerability'
field :id, GraphQL::ID_TYPE, null: false, field :id, GraphQL::ID_TYPE, null: false,
description: 'GraphQL ID of the vulnerability' description: 'GraphQL ID of the vulnerability'
......
...@@ -4,7 +4,7 @@ module Types ...@@ -4,7 +4,7 @@ module Types
module Vulnerability module Vulnerability
class IssueLinkTypeEnum < BaseEnum class IssueLinkTypeEnum < BaseEnum
graphql_name 'VulnerabilityIssueLinkType' graphql_name 'VulnerabilityIssueLinkType'
description 'The type of the issue link related to a vulnerability.' description 'The type of the issue link related to a vulnerability'
::Vulnerabilities::IssueLink.link_types.keys.each do |link_type| ::Vulnerabilities::IssueLink.link_types.keys.each do |link_type|
value link_type.to_s.upcase, value: link_type.to_s value link_type.to_s.upcase, value: link_type.to_s
......
...@@ -4,7 +4,7 @@ module Types ...@@ -4,7 +4,7 @@ module Types
# rubocop: disable Graphql/AuthorizeTypes # rubocop: disable Graphql/AuthorizeTypes
class VulnerabilityIdentifierType < BaseObject class VulnerabilityIdentifierType < BaseObject
graphql_name 'VulnerabilityIdentifier' graphql_name 'VulnerabilityIdentifier'
description 'Represents a vulnerability identifier.' description 'Represents a vulnerability identifier'
field :name, GraphQL::STRING_TYPE, null: true, field :name, GraphQL::STRING_TYPE, null: true,
description: 'Name of the vulnerability identifier' description: 'Name of the vulnerability identifier'
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Types module Types
class VulnerabilityReportTypeEnum < BaseEnum class VulnerabilityReportTypeEnum < BaseEnum
graphql_name 'VulnerabilityReportType' graphql_name 'VulnerabilityReportType'
description 'The type of the security scan that found the vulnerability.' description 'The type of the security scan that found the vulnerability'
::Vulnerabilities::Finding::REPORT_TYPES.keys.each do |report_type| ::Vulnerabilities::Finding::REPORT_TYPES.keys.each do |report_type|
value report_type.to_s.upcase, value: report_type.to_s value report_type.to_s.upcase, value: report_type.to_s
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Types module Types
class VulnerabilityScannerType < BaseObject class VulnerabilityScannerType < BaseObject
graphql_name 'VulnerabilityScanner' graphql_name 'VulnerabilityScanner'
description 'Represents a vulnerability scanner.' description 'Represents a vulnerability scanner'
authorize :read_vulnerability_scanner authorize :read_vulnerability_scanner
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Types module Types
class VulnerabilitySeverityEnum < BaseEnum class VulnerabilitySeverityEnum < BaseEnum
graphql_name 'VulnerabilitySeverity' graphql_name 'VulnerabilitySeverity'
description 'The severity of the vulnerability.' description 'The severity of the vulnerability'
::Vulnerabilities::Finding::SEVERITY_LEVELS.keys.each do |severity| ::Vulnerabilities::Finding::SEVERITY_LEVELS.keys.each do |severity|
value severity.to_s.upcase, value: severity.to_s value severity.to_s.upcase, value: severity.to_s
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Types module Types
class VulnerabilityStateEnum < BaseEnum class VulnerabilityStateEnum < BaseEnum
graphql_name 'VulnerabilityState' graphql_name 'VulnerabilityState'
description 'The state of the vulnerability.' description 'The state of the vulnerability'
::Vulnerability.states.keys.each do |state| ::Vulnerability.states.keys.each do |state|
value state.to_s.upcase, value: state.to_s value state.to_s.upcase, value: state.to_s
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Types module Types
class VulnerabilityType < BaseObject class VulnerabilityType < BaseObject
graphql_name 'Vulnerability' graphql_name 'Vulnerability'
description 'Represents a vulnerability.' description 'Represents a vulnerability'
authorize :read_vulnerability authorize :read_vulnerability
......
...@@ -25,7 +25,7 @@ module Gitlab ...@@ -25,7 +25,7 @@ module Gitlab
content = "### #{object[:name]}\n" content = "### #{object[:name]}\n"
if object[:description].present? if object[:description].present?
content += "\n#{object[:description]}\n" content += "\n#{object[:description]}.\n"
end end
content content
......
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