Commit f31acb08 authored by Mario Celi's avatar Mario Celi

Deprecate deleting iterations via the GraphQL API

Manual iteration cadences will be removed in the future
and only automatic iteration cadecnes will be allowed.
Automatic cadences will manage iterations automatically.

Changelog: deprecated
EE: true
parent ab63d511
...@@ -3234,6 +3234,10 @@ Input type: `iterationCreateInput` ...@@ -3234,6 +3234,10 @@ Input type: `iterationCreateInput`
### `Mutation.iterationDelete` ### `Mutation.iterationDelete`
WARNING:
**Deprecated** in 14.10.
Manual iteration management is deprecated. Only automatic iteration cadences will be supported in the future.
Input type: `IterationDeleteInput` Input type: `IterationDeleteInput`
#### Arguments #### Arguments
...@@ -5,7 +5,11 @@ module EE ...@@ -5,7 +5,11 @@ module EE
module DeprecatedMutations module DeprecatedMutations
extend ActiveSupport::Concern extend ActiveSupport::Concern
ITERATION_DEPRECATION_MESSAGE = 'Manual iteration management is deprecated. Only automatic iteration cadences will be supported in the future'
prepended do prepended do
mount_mutation ::Mutations::Iterations::Delete,
deprecated: { reason: ITERATION_DEPRECATION_MESSAGE, milestone: '14.10' }
mount_aliased_mutation 'CreateIteration', ::Mutations::Iterations::Create, mount_aliased_mutation 'CreateIteration', ::Mutations::Iterations::Create,
deprecated: { reason: 'Use iterationCreate', milestone: '14.0' } deprecated: { reason: 'Use iterationCreate', milestone: '14.0' }
end end
......
...@@ -23,7 +23,6 @@ module EE ...@@ -23,7 +23,6 @@ module EE
mount_mutation ::Mutations::Projects::SetLocked mount_mutation ::Mutations::Projects::SetLocked
mount_mutation ::Mutations::Iterations::Create mount_mutation ::Mutations::Iterations::Create
mount_mutation ::Mutations::Iterations::Update mount_mutation ::Mutations::Iterations::Update
mount_mutation ::Mutations::Iterations::Delete
mount_mutation ::Mutations::Iterations::Cadences::Create mount_mutation ::Mutations::Iterations::Cadences::Create
mount_mutation ::Mutations::Iterations::Cadences::Update mount_mutation ::Mutations::Iterations::Cadences::Update
mount_mutation ::Mutations::Iterations::Cadences::Destroy mount_mutation ::Mutations::Iterations::Cadences::Destroy
......
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