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
api.rb
api_guard.rb
award_emoji.rb
boards.rb
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
environments.rb
files.rb
groups.rb
helpers.rb
internal.rb
issues.rb
keys.rb
labels.rb Grapify the labels API 2016-10-24 16:52:34 +02:00
lint.rb
members.rb
merge_request_diffs.rb
merge_requests.rb
milestones.rb
namespaces.rb
notes.rb
notification_settings.rb
pipelines.rb
project_hooks.rb
project_snippets.rb
projects.rb
repositories.rb
runners.rb
services.rb
session.rb
settings.rb
sidekiq_metrics.rb
subscriptions.rb
system_hooks.rb
tags.rb Grapify tags API 2016-10-26 10:34:16 +02:00
templates.rb
todos.rb
triggers.rb
users.rb Get rid of extra .page call 2016-10-24 22:56:27 +03:00
variables.rb
version.rb