Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
e6d2465d
Commit
e6d2465d
authored
Sep 04, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `# frozen_string_literal: true`
parent
0a9d771b
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
27 additions
and
1 deletion
+27
-1
app/models/prometheus_metric.rb
app/models/prometheus_metric.rb
+2
-0
db/fixtures/development/99_common_metrics.rb
db/fixtures/development/99_common_metrics.rb
+2
-0
db/fixtures/production/999_common_metrics.rb
db/fixtures/production/999_common_metrics.rb
+2
-0
db/migrate/20180101160629_create_prometheus_metrics.rb
db/migrate/20180101160629_create_prometheus_metrics.rb
+2
-0
db/migrate/20180831164905_add_common_to_prometheus_metrics.rb
...igrate/20180831164905_add_common_to_prometheus_metrics.rb
+2
-0
db/migrate/20180831164906_change_project_id_for_prometheus_metrics.rb
...0180831164906_change_project_id_for_prometheus_metrics.rb
+2
-0
db/migrate/20180831164907_add_index_on_common_for_prometheus_metrics.rb
...80831164907_add_index_on_common_for_prometheus_metrics.rb
+3
-1
db/migrate/20180831164909_import_common_metrics.rb
db/migrate/20180831164909_import_common_metrics.rb
+2
-0
spec/db/importers/common_metrics_importer_spec.rb
spec/db/importers/common_metrics_importer_spec.rb
+2
-0
spec/factories/prometheus_metrics.rb
spec/factories/prometheus_metrics.rb
+2
-0
spec/lib/gitlab/prometheus/metric_group_spec.rb
spec/lib/gitlab/prometheus/metric_group_spec.rb
+2
-0
spec/migrations/import_common_metrics_spec.rb
spec/migrations/import_common_metrics_spec.rb
+2
-0
spec/models/prometheus_metric_spec.rb
spec/models/prometheus_metric_spec.rb
+2
-0
No files found.
app/models/prometheus_metric.rb
View file @
e6d2465d
# frozen_string_literal: true
class
PrometheusMetric
<
ActiveRecord
::
Base
belongs_to
:project
,
validate:
true
,
inverse_of: :prometheus_metrics
...
...
db/fixtures/development/99_common_metrics.rb
View file @
e6d2465d
# frozen_string_literal: true
require_relative
'../importers/common_metrics_importer.rb'
::
Importers
::
CommonMetricsImporter
.
new
.
execute
db/fixtures/production/999_common_metrics.rb
View file @
e6d2465d
# frozen_string_literal: true
require_relative
'../importers/common_metrics_importer.rb'
::
Importers
::
CommonMetricsImporter
.
new
.
execute
db/migrate/20180101160629_create_prometheus_metrics.rb
View file @
e6d2465d
# frozen_string_literal: true
class
CreatePrometheusMetrics
<
ActiveRecord
::
Migration
DOWNTIME
=
false
...
...
db/migrate/20180831164905_add_common_to_prometheus_metrics.rb
View file @
e6d2465d
# frozen_string_literal: true
class
AddCommonToPrometheusMetrics
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
...
...
db/migrate/20180831164906_change_project_id_for_prometheus_metrics.rb
View file @
e6d2465d
# frozen_string_literal: true
class
ChangeProjectIdForPrometheusMetrics
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
...
...
db/migrate/20180831164907_add_index_on_
default
_prometheus_metrics.rb
→
db/migrate/20180831164907_add_index_on_
common_for
_prometheus_metrics.rb
View file @
e6d2465d
class
AddIndexOnDefaultPrometheusMetrics
<
ActiveRecord
::
Migration
# frozen_string_literal: true
class
AddIndexOnCommonForPrometheusMetrics
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
...
...
db/migrate/20180831164909_import_common_metrics.rb
View file @
e6d2465d
# frozen_string_literal: true
class
ImportCommonMetrics
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
...
...
spec/db/importers/common_metrics_importer_spec.rb
View file @
e6d2465d
# frozen_string_literal: true
require
'rails_helper'
require
Rails
.
root
.
join
(
"db"
,
"importers"
,
"common_metrics_importer.rb"
)
...
...
spec/factories/prometheus_metrics.rb
View file @
e6d2465d
# frozen_string_literal: true
FactoryBot
.
define
do
factory
:prometheus_metric
,
class:
PrometheusMetric
do
title
'title'
...
...
spec/lib/gitlab/prometheus/metric_group_spec.rb
View file @
e6d2465d
# frozen_string_literal: true
require
'rails_helper'
describe
Gitlab
::
Prometheus
::
MetricGroup
do
...
...
spec/migrations/import_common_metrics_spec.rb
View file @
e6d2465d
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'migrate'
,
'20180831164909_import_common_metrics.rb'
)
...
...
spec/models/prometheus_metric_spec.rb
View file @
e6d2465d
# frozen_string_literal: true
require
'spec_helper'
describe
PrometheusMetric
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment