Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
84b02551
Commit
84b02551
authored
Sep 17, 2020
by
Philip Cunningham
Committed by
Dmytro Zaporozhets (DZ)
Sep 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark RunDASTScan mutation as deprecated
This functionality has been superseded by DastOnDemandScanCreate.
parent
3536da2a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
101 additions
and
57 deletions
+101
-57
doc/api/graphql/reference/gitlab_schema.graphql
doc/api/graphql/reference/gitlab_schema.graphql
+1
-1
doc/api/graphql/reference/gitlab_schema.json
doc/api/graphql/reference/gitlab_schema.json
+55
-55
ee/app/graphql/ee/types/deprecated_mutations.rb
ee/app/graphql/ee/types/deprecated_mutations.rb
+13
-0
ee/app/graphql/ee/types/mutation_type.rb
ee/app/graphql/ee/types/mutation_type.rb
+2
-1
ee/changelogs/unreleased/deprecate-non-site-profile-on-demand-dast-scans-238955.yml
...eprecate-non-site-profile-on-demand-dast-scans-238955.yml
+5
-0
ee/spec/graphql/types/mutation_type_spec.rb
ee/spec/graphql/types/mutation_type_spec.rb
+25
-0
No files found.
doc/api/graphql/reference/gitlab_schema.graphql
View file @
84b02551
...
...
@@ -10847,7 +10847,7 @@ type Mutation {
pipelineRetry
(
input
:
PipelineRetryInput
!):
PipelineRetryPayload
removeAwardEmoji
(
input
:
RemoveAwardEmojiInput
!):
RemoveAwardEmojiPayload
@
deprecated
(
reason
:
"
Use
awardEmojiRemove
.
Deprecated
in
13.2"
)
removeProjectFromSecurityDashboard
(
input
:
RemoveProjectFromSecurityDashboardInput
!):
RemoveProjectFromSecurityDashboardPayload
runDastScan
(
input
:
RunDASTScanInput
!):
RunDASTScanPayload
runDastScan
(
input
:
RunDASTScanInput
!):
RunDASTScanPayload
@
deprecated
(
reason
:
"
Use
DastOnDemandScanCreate
.
Deprecated
in
13.4"
)
todoMarkDone
(
input
:
TodoMarkDoneInput
!):
TodoMarkDonePayload
todoRestore
(
input
:
TodoRestoreInput
!):
TodoRestorePayload
todoRestoreMany
(
input
:
TodoRestoreManyInput
!):
TodoRestoreManyPayload
...
...
doc/api/graphql/reference/gitlab_schema.json
View file @
84b02551
...
...
@@ -31972,8 +31972,8 @@
"name": "RunDASTScanPayload",
"ofType": null
},
"isDeprecated":
fals
e,
"deprecationReason":
null
"isDeprecated":
tru
e,
"deprecationReason":
"Use DastOnDemandScanCreate. Deprecated in 13.4"
},
{
"name": "todoMarkDone",
...
...
@@ -44259,59 +44259,6 @@
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "variables",
"description": "List of supported variables",
"args": [
{
"name": "after",
"description": "Returns the elements in the list that come after the specified cursor.",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "before",
"description": "Returns the elements in the list that come before the specified cursor.",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": "Returns the first _n_ elements from the list.",
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "last",
"description": "Returns the last _n_ elements from the list.",
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "SastCiConfigurationEntityConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
...
...
@@ -44379,6 +44326,59 @@
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "variables",
"description": "List of supported variables",
"args": [
{
"name": "after",
"description": "Returns the elements in the list that come after the specified cursor.",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "before",
"description": "Returns the elements in the list that come before the specified cursor.",
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null
},
{
"name": "first",
"description": "Returns the first _n_ elements from the list.",
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
},
{
"name": "last",
"description": "Returns the last _n_ elements from the list.",
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"defaultValue": null
}
],
"type": {
"kind": "OBJECT",
"name": "SastCiConfigurationEntityConnection",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
ee/app/graphql/ee/types/deprecated_mutations.rb
0 → 100644
View file @
84b02551
# frozen_string_literal: true
module
EE
module
Types
module
DeprecatedMutations
extend
ActiveSupport
::
Concern
prepended
do
mount_mutation
::
Mutations
::
Pipelines
::
RunDastScan
,
deprecated:
{
reason:
'Use DastOnDemandScanCreate'
,
milestone:
'13.4'
}
end
end
end
end
ee/app/graphql/ee/types/mutation_type.rb
View file @
84b02551
...
...
@@ -27,7 +27,6 @@ module EE
mount_mutation
::
Mutations
::
Boards
::
Lists
::
UpdateLimitMetrics
mount_mutation
::
Mutations
::
InstanceSecurityDashboard
::
AddProject
mount_mutation
::
Mutations
::
InstanceSecurityDashboard
::
RemoveProject
mount_mutation
::
Mutations
::
Pipelines
::
RunDastScan
mount_mutation
::
Mutations
::
DastOnDemandScans
::
Create
mount_mutation
::
Mutations
::
DastSiteProfiles
::
Create
mount_mutation
::
Mutations
::
DastSiteProfiles
::
Update
...
...
@@ -38,6 +37,8 @@ module EE
mount_mutation
::
Mutations
::
Security
::
CiConfiguration
::
ConfigureSast
mount_mutation
::
Mutations
::
Namespaces
::
IncreaseStorageTemporarily
mount_mutation
::
Mutations
::
QualityManagement
::
TestCases
::
Create
prepend
(
Types
::
DeprecatedMutations
)
end
end
end
...
...
ee/changelogs/unreleased/deprecate-non-site-profile-on-demand-dast-scans-238955.yml
0 → 100644
View file @
84b02551
---
title
:
Mark RunDASTScan mutation as deprecated
merge_request
:
42544
author
:
type
:
deprecated
ee/spec/graphql/types/mutation_type_spec.rb
0 → 100644
View file @
84b02551
# frozen_string_literal: true
require
'spec_helper'
RSpec
.
describe
GitlabSchema
.
types
[
'Mutation'
]
do
describe
'deprecated mutations'
do
using
RSpec
::
Parameterized
::
TableSyntax
where
(
:field_name
,
:reason
,
:milestone
)
do
'RunDastScan'
|
'Use DastOnDemandScanCreate'
|
'13.4'
end
with_them
do
let
(
:field
)
{
get_field
(
field_name
)
}
let
(
:deprecation_reason
)
{
"
#{
reason
}
. Deprecated in
#{
milestone
}
"
}
it
{
expect
(
field
).
to
be_present
}
it
{
expect
(
field
.
deprecation_reason
).
to
eq
(
deprecation_reason
)
}
end
end
def
get_field
(
name
)
described_class
.
fields
[
GraphqlHelpers
.
fieldnamerize
(
name
.
camelize
)]
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment