Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/fixtures/development/17_cycle_analytics.rb')
-rw-r--r--db/fixtures/development/17_cycle_analytics.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/fixtures/development/17_cycle_analytics.rb b/db/fixtures/development/17_cycle_analytics.rb
index 4f6bfc5c82a..fa890531861 100644
--- a/db/fixtures/development/17_cycle_analytics.rb
+++ b/db/fixtures/development/17_cycle_analytics.rb
@@ -50,6 +50,17 @@ class Gitlab::Seeder::CycleAnalytics
end
def seed!
+ unless project.repository_exists?
+ puts
+ puts 'WARNING'
+ puts '======='
+ puts "Seeding #{self.class} is not possible because the given project (#{project.full_path}) doesn't have a repository."
+ puts 'Try specifying a project with working repository or omit the VSA_SEED_PROJECT_ID parameter so the seed script will automatically create one.'
+ puts
+
+ return
+ end
+
create_developers!
create_issues!
@@ -169,6 +180,7 @@ class Gitlab::Seeder::CycleAnalytics
)
project = FactoryBot.create(
:project,
+ :repository,
name: "Value Stream Management Project #{suffix}",
path: "vsmp-#{suffix}",
creator: admin,