Detect already enabled DeployKeys in EnableDeployKeyService
requested to merge markglenfletcher1/gitlab-ce:29673-500-internal-server-error-when-enabling-a-deploy-key-more-than-once-through-api into master
What does this MR do?
Detect already enabled DeployKeys in EnableDeployKeyService. Because the fix is in the service the v3,v4 APIs and the controller all benefit. The UI doesn't allow this to happen so the bug was reported from users of the API.
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
It's possible to attempt to add the same deploy key again via the API.
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Closes #29673 (closed)