Add # frozen_string_literal: true
This commit is contained in:
parent
0a9d771bcb
commit
e6d2465d97
13 changed files with 27 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class PrometheusMetric < ActiveRecord::Base
|
||||
belongs_to :project, validate: true, inverse_of: :prometheus_metrics
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require_relative '../importers/common_metrics_importer.rb'
|
||||
|
||||
::Importers::CommonMetricsImporter.new.execute
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require_relative '../importers/common_metrics_importer.rb'
|
||||
|
||||
::Importers::CommonMetricsImporter.new.execute
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class CreatePrometheusMetrics < ActiveRecord::Migration
|
||||
DOWNTIME = false
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddCommonToPrometheusMetrics < ActiveRecord::Migration
|
||||
include Gitlab::Database::MigrationHelpers
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class ChangeProjectIdForPrometheusMetrics < ActiveRecord::Migration
|
||||
include Gitlab::Database::MigrationHelpers
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
class AddIndexOnDefaultPrometheusMetrics < ActiveRecord::Migration
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddIndexOnCommonForPrometheusMetrics < ActiveRecord::Migration
|
||||
include Gitlab::Database::MigrationHelpers
|
||||
|
||||
DOWNTIME = false
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class ImportCommonMetrics < ActiveRecord::Migration
|
||||
include Gitlab::Database::MigrationHelpers
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
require Rails.root.join("db", "importers", "common_metrics_importer.rb")
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
FactoryBot.define do
|
||||
factory :prometheus_metric, class: PrometheusMetric do
|
||||
title 'title'
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
describe Gitlab::Prometheus::MetricGroup do
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'spec_helper'
|
||||
require Rails.root.join('db', 'migrate', '20180831164909_import_common_metrics.rb')
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
describe PrometheusMetric do
|
||||
|
|
Loading…
Reference in a new issue