Commit ee93545c authored by Shreyas Agarwal's avatar Shreyas Agarwal

Update the delete code for GlobalID

parent 355cc7e6
...@@ -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)
......
...@@ -5395,7 +5395,7 @@ input DeleteAnnotationInput { ...@@ -5395,7 +5395,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!
} }
......
...@@ -14754,7 +14754,7 @@ ...@@ -14754,7 +14754,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