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
path: root/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-03-02 15:10:52 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-03-02 15:10:52 +0300
commit2ce2a08284a698742c24d1b50fab5f77aa5c6321 (patch)
tree962381f5cf4a6bbdcfeeef78ff35e4707720de58 /db
parent26a21ebddbfd2f814738a725f62750bf913796e3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r--db/fixtures/development/29_usage_trends.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/fixtures/development/29_usage_trends.rb b/db/fixtures/development/29_usage_trends.rb
index 88f2ff210dd..f6496e5cd3d 100644
--- a/db/fixtures/development/29_usage_trends.rb
+++ b/db/fixtures/development/29_usage_trends.rb
@@ -9,7 +9,8 @@ Gitlab::Seeder.quiet do
model_class = Analytics::UsageTrends::Measurement
- measurements = model_class.identifiers.flat_map do |_, id|
+ # Skip generating data for billable_users, to avoid license check problems
+ measurements = model_class.identifiers.except(:billable_users).each_value.flat_map do |id|
recorded_at = 60.days.ago
current_count = rand(1_000_000)