diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-02-03 23:21:10 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-02-03 23:36:53 +0800 |
commit | aaf382d52b87ba13f0cf904e076d9e3eac8d77d9 (patch) | |
tree | 710d9eea84c87b1d2272d28973bd1033acb473fa /spec/services/projects | |
parent | 806b038a44cda37fa7d8ba9afae4b7adb07afe94 (diff) | |
download | gitlab-ce-aaf382d52b87ba13f0cf904e076d9e3eac8d77d9.tar.gz |
Skip or retain project while deleting the project:
* Skip Ci::Build#update_project_statistics whenever there's no
project (i.e. we're deleting the project!)
* Retain the unscoped_project before deleting the build,
so that we could use the data to delete the artifacts.
Note that carrierwave uses `after_commit` for this,
so we need to retain it in the memory.
Closes #15005
Diffstat (limited to 'spec/services/projects')
0 files changed, 0 insertions, 0 deletions