Skip to content
Snippets Groups Projects

Add cron worker to automatically rollout zoekt exact code search to paid namespaces

Merged John Mason requested to merge jm-namespace-assignment-service into master
1 unresolved thread
Compare and
16 files
+ 1278
3
Compare changes
  • Side-by-side
  • Inline
Files
16
+ 1
0
@@ -230,6 +230,7 @@ class Namespace < ApplicationRecord
scope :by_name, ->(name) { where('name LIKE ?', "#{sanitize_sql_like(name)}%") }
scope :ordered_by_name, -> { order(:name) }
scope :top_level, -> { by_parent(nil) }
scope :with_project_statistics, -> { includes(projects: :statistics) }
scope :with_statistics, -> do
namespace_statistic_columns = STATISTICS_COLUMNS.map { |column| sum_project_statistics_column(column) }
Loading