GraphQL DeleteExternalService query takes ~20 seconds or returns 5XX errors
Created by: quinnkeast
Problem
Hallway testing for Cloud revealed that when removing code host connections, it hangs badly. DeleteExternalService
requests take ~20 seconds or 502.
Steps to reproduce
In Admin API:
-
Make sure your user has
allowUserExternalServicePublic
tag set -
Get an ID for existing external service
// Query
query ExternalServices($first: Int, $after: String, $namespace: ID) {
externalServices(first: $first, after: $after, namespace: $namespace) {
nodes {
...ListExternalServiceFields
}
}
}
fragment ListExternalServiceFields on ExternalService {
id
kind
displayName
warning
lastSyncError
}
// Variables
{"user": "<your user id>", "first": 1}
-
⚠ ️ Delete external service🐢
// Query
mutation DeleteExternalService($externalService: ID!) {
deleteExternalService(externalService: $externalService) {
alwaysNil
}
}
// Variables
{"externalService": "<your external service id>"}