Commit 922a4d38 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'update-delete-annotiation-id' into 'master'

Update the annotation delete code for GlobalID

See merge request gitlab-org/gitlab!48916
parents 032a105a ee93545c
...@@ -21,7 +21,6 @@ Graphql/IDType: ...@@ -21,7 +21,6 @@ Graphql/IDType:
Exclude: Exclude:
- 'ee/app/graphql/ee/mutations/issues/update.rb' - 'ee/app/graphql/ee/mutations/issues/update.rb'
- 'app/graphql/mutations/boards/issues/issue_move_list.rb' - 'app/graphql/mutations/boards/issues/issue_move_list.rb'
- 'app/graphql/mutations/metrics/dashboard/annotations/delete.rb'
- 'app/graphql/resolvers/design_management/design_at_version_resolver.rb' - 'app/graphql/resolvers/design_management/design_at_version_resolver.rb'
- 'app/graphql/resolvers/design_management/design_resolver.rb' - 'app/graphql/resolvers/design_management/design_resolver.rb'
- 'app/graphql/resolvers/design_management/designs_resolver.rb' - 'app/graphql/resolvers/design_management/designs_resolver.rb'
......
...@@ -11,7 +11,7 @@ module Mutations ...@@ -11,7 +11,7 @@ module Mutations
argument :id, ::Types::GlobalIDType[::Metrics::Dashboard::Annotation], argument :id, ::Types::GlobalIDType[::Metrics::Dashboard::Annotation],
required: true, required: true,
description: 'The global ID of the annotation to delete' description: 'Global ID of the annotation to delete'
def resolve(id:) def resolve(id:)
annotation = authorized_find!(id: id) annotation = authorized_find!(id: id)
......
...@@ -5415,7 +5415,7 @@ input DeleteAnnotationInput { ...@@ -5415,7 +5415,7 @@ input DeleteAnnotationInput {
clientMutationId: String clientMutationId: String
""" """
The global ID of the annotation to delete Global ID of the annotation to delete
""" """
id: MetricsDashboardAnnotationID! id: MetricsDashboardAnnotationID!
} }
......
...@@ -14822,7 +14822,7 @@ ...@@ -14822,7 +14822,7 @@
"inputFields": [ "inputFields": [
{ {
"name": "id", "name": "id",
"description": "The global ID of the annotation to delete", "description": "Global ID of the annotation to delete",
"type": { "type": {
"kind": "NON_NULL", "kind": "NON_NULL",
"name": null, "name": null,
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