gitlab-org--gitlab-foss/spec
Rémy Coutable 9a7afd2a63 Merge branch '22655-deployments-don-t-always-have-keep-around-refs' into 'master'
Handle case where deployment ref no longer exists

## What does this MR do?

In 8.9, we didn't create keep-around refs for deployments. So it's possible that someone created a deployment (say, for testing), and then deleted the branch and all other references to that commit. That commit could then get GCed, and trying to view MRs on 8.11+ will show a 500. See https://gitlab.com/gitlab-org/gitlab-ce/issues/22655#note_16575020 for more details.

## Why was this MR needed?

If someone created a deployment on 8.9, then deleted all references to the commit for that deployment, we will throw an exception when checking if the deployment includes a commit.

Closes #22655.

See merge request !6855
2016-10-13 16:33:19 +00:00
..
config
controllers Merge branch 'use-language-colours-for-graph' into 'master' 2016-10-13 15:16:12 +00:00
factories Update Boards::CreateService to handle with the has_many association 2016-10-11 11:39:04 -03:00
features Merge branch 'feature/issues-board' into 'master' 2016-10-13 14:21:14 +00:00
finders Precalculate trending projects 2016-10-10 12:27:08 +02:00
fixtures Fix board relates specs 2016-10-11 11:47:56 -03:00
helpers refactors tests because of gitlab-test repository changes 2016-10-11 16:33:06 +01:00
initializers
javascripts Fixed JS tests 2016-10-11 16:07:53 +01:00
lib Merge branch '22591-Convert-UTF-8-Emoji-to-Gitlab-emoji' into 'master' 2016-10-13 16:02:27 +00:00
mailers refactors tests because of gitlab-test repository changes 2016-10-11 16:33:06 +01:00
models Merge branch '22655-deployments-don-t-always-have-keep-around-refs' into 'master' 2016-10-13 16:33:19 +00:00
policies Make guests unable to view MRs 2016-10-11 16:51:26 +03:00
requests Merge branch 'api-version' into 'master' 2016-10-12 18:38:02 +00:00
routing Merge branch 'atom-routes' into 'master' 2016-10-11 14:04:31 +00:00
services Merge branch 'feature/issues-board' into 'master' 2016-10-13 14:21:14 +00:00
support writes tests to verify the issue is solved and fixes breaking issues. 2016-10-09 23:20:45 +01:00
tasks/gitlab Add a new gitlab:users:clear_all_authentication_tokens task 2016-10-11 10:21:18 +02:00
uploaders
views Merge commit 'dev/security' into 'master' 2016-10-06 08:33:11 +02:00
workers Merge branch 'master' into feature/improve-mrwbs-and-todos-for-pipelines 2016-10-12 21:37:04 +02:00
factories_spec.rb
rails_helper.rb
simplecov_env.rb
spec_helper.rb Revert "Merge branch 'tests-use-tmpfs' into 'master'" 2016-10-12 14:45:26 +00:00
teaspoon_env.rb