gitlab-org--gitlab-foss/lib/api
Joshua Welsh ce4760bbd5
Fixes various errors when adding deploy keys caused by not exiting the control flow.
When adding a deploy key that already exists in the project the existing key would not be returned, resulting in an attempt to create a new one, which in turn caused a 500 error due to an ActiveRecord exception.

When adding a deploy key that exists within another project the key would be joined to the project, but would also attempt to create a new one, which resulted in a 400 error due to the key already existing.

Fixes #22741
Fixes #21754

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-26 12:54:47 +02:00
..
helpers
access_requests.rb Use Grape DSL to document methods and their params 2016-10-05 11:20:27 +02:00
api.rb Merge branch 'api-order-mounts' into 'master' 2016-10-13 16:03:22 +00:00
api_guard.rb
award_emoji.rb
boards.rb Add support to group labels on issues board API 2016-10-19 14:58:26 -02:00
branches.rb Implement second round of review comments from @DouweM. 2016-10-24 11:33:38 +05:30
broadcast_messages.rb
builds.rb Grapify builds API 2016-10-24 13:06:17 +02:00
commit_statuses.rb Don't use Hash#slice since it's not supported in Ruby 2.1 2016-10-20 19:08:46 +02:00
commits.rb Added path parameter to Commits API 2016-10-24 16:43:52 +02:00
deploy_keys.rb Fixes various errors when adding deploy keys caused by not exiting the control flow. 2016-10-26 12:54:47 +02:00
deployments.rb
entities.rb Added Issue Board API support 2016-10-05 13:12:07 -03:00
environments.rb
files.rb
groups.rb
helpers.rb Validate label params against all labels available to project on the API 2016-10-19 14:58:26 -02:00
internal.rb
issues.rb
keys.rb
labels.rb Grapify the labels API 2016-10-24 16:52:34 +02:00
lint.rb
members.rb Use Grape DSL to document methods and their params 2016-10-05 11:20:27 +02:00
merge_request_diffs.rb
merge_requests.rb Move label management to services on merge requests API 2016-10-19 14:58:26 -02:00
milestones.rb
namespaces.rb
notes.rb
notification_settings.rb
pipelines.rb
project_hooks.rb
project_snippets.rb
projects.rb Merge branch 'api-fix-project-group-sharing' into 'security' 2016-10-11 20:36:26 +02:00
repositories.rb
runners.rb
services.rb
session.rb
settings.rb
sidekiq_metrics.rb
subscriptions.rb
system_hooks.rb API: Fix Sytem hooks delete behavior 2016-10-14 14:16:27 +02:00
tags.rb Grapify tags API 2016-10-26 10:34:16 +02:00
templates.rb Create a new /templates API namespace 2016-10-12 11:09:41 +02:00
todos.rb Grapify todos API 2016-10-14 09:22:50 +02:00
triggers.rb
users.rb Get rid of extra .page call 2016-10-24 22:56:27 +03:00
variables.rb GrapeDSL for variables 2016-10-13 09:55:50 +02:00
version.rb API: Version information 2016-10-12 16:47:35 +02:00