ce4760bbd5
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> |
||
---|---|---|
.. | ||
access_requests_spec.rb | ||
api_helpers_spec.rb | ||
award_emoji_spec.rb | ||
boards_spec.rb | ||
branches_spec.rb | ||
broadcast_messages_spec.rb | ||
builds_spec.rb | ||
commit_statuses_spec.rb | ||
commits_spec.rb | ||
deploy_keys_spec.rb | ||
deployments_spec.rb | ||
doorkeeper_access_spec.rb | ||
environments_spec.rb | ||
files_spec.rb | ||
fork_spec.rb | ||
groups_spec.rb | ||
internal_spec.rb | ||
issues_spec.rb | ||
keys_spec.rb | ||
labels_spec.rb | ||
lint_spec.rb | ||
members_spec.rb | ||
merge_request_diffs_spec.rb | ||
merge_requests_spec.rb | ||
milestones_spec.rb | ||
namespaces_spec.rb | ||
notes_spec.rb | ||
notification_settings_spec.rb | ||
oauth_tokens_spec.rb | ||
pipelines_spec.rb | ||
project_hooks_spec.rb | ||
project_snippets_spec.rb | ||
projects_spec.rb | ||
repositories_spec.rb | ||
runners_spec.rb | ||
services_spec.rb | ||
session_spec.rb | ||
settings_spec.rb | ||
sidekiq_metrics_spec.rb | ||
system_hooks_spec.rb | ||
tags_spec.rb | ||
templates_spec.rb | ||
todos_spec.rb | ||
triggers_spec.rb | ||
users_spec.rb | ||
variables_spec.rb | ||
version_spec.rb |